file permission

Issue #12 closed
Deddy Wahyu Sugiarto created an issue

i already try in my "shared hosting" and this is great scripts. But i found some difficulty, that is when i setup deploy. the extracted files permission, is set automatically to 600 and folder is set to 700 as well as the commit too. it lead me to internal server error 500. i hope user can setting the extracted files and directory permission in config.php

Thanks

Comments (4)

  1. Alexandru Lixandru repo owner

    As far as I understand it, when new files/folders are created by this script, their permission is set to 600/700. If the owner of these files is correctly set to the user under which the script runs (which should happen anyway, since the script is the one creating the files/folders), there should be no problems using this script. Permission matrix 600/700 means owner can read & write that resource, which is enough for the script to do its job. You need to check with the web-hosting folks if the owner is not properly set.

  2. Alexandru Lixandru repo owner

    It will also be helpful to see the 500 error message you see in the logs. Anyway, if this is a hosting-specific issue, the best way to go around this would be to configure the default permission matrix for your user, rather than modifying the PHP script to programmatically set permissions of files (especially because there are lots of file creation/modifications involved in the sync process).

  3. Deddy Wahyu Sugiarto reporter

    yes you are right. php can run properly with 600/700. When i deploy (first) setup to hosting, files like htaccess is set to 600 and causes 500 error message. it should be 644. this make me confuse for a while, but it clear now. thanks for your explanation

  4. Log in to comment