During my first Drupal site build process, I received quite a few error messages, and I made a lot of stuff to 777. 'files' directory is one. 'modules' directory is another. You might remember I had 99/99 problem that won't let me chown, and file upload silently fail.
Now before I go live, I want to make sure all the permissions are set correctly. Other than settings.php permission setting, I can't find any mention of what others are supposed to be. Is there any list or general guide about this somewhere? I experienced a lot of stuff just don't work if 775, which is kinda puzzling.
I think my most concern right now is 'modules' directory, which I think I messed up the permission.
A-NO-NE Music wrote:
I think my most concern right now is 'modules' directory, which I think I messed up the permission.
I think simply making sure the web server can write to directories / files, and can read / execute code, should be enough. I usually "chgrp -R apache *; chmod -R g+w *" in my (local sandbox) setup, and everything works fine.
Regards, Stefan
Stefan Seefeld / 2007/06/13 / 03:00 PM wrote:
chmod -R g+w *" in my (local sandbox) setup, and everything works fine.
Hm, I wonder if my ISP is setup differently. When I saw Drupal admin GUI complains 'unable to write', they are set up to 644. I change them to 775 but still error. Only when I made them 777 the errors disappear. Believe me, I don't like 777.
the user that the webserver runs under should be the owner of directory like "files" and such. A-NO-NE Music wrote:
Stefan Seefeld / 2007/06/13 / 03:00 PM wrote:
chmod -R g+w *" in my (local sandbox) setup, and everything works fine.
Hm, I wonder if my ISP is setup differently. When I saw Drupal admin GUI complains 'unable to write', they are set up to 644. I change them to 775 but still error. Only when I made them 777 the errors disappear. Believe me, I don't like 777.
Eric Mckenna / 2007/06/13 / 03:22 PM wrote:
the user that the webserver runs under should be the owner of directory like "files" and such.
Owner is me. I think that part is OK now. Sorry, I am noob here, and I don't have CLI access. I can only do it from FTP client. I am thinking -R to both files and modules but not sure what permission I should use, or should I leave as 777?