Hi all ,
Is there a standard 'setup' for file and folder permissions after install ?
I know about config.php and those ones , but it is all the folders that you have to change when you install , to full permissions , so that the install can write to them .
Do you set them back to 775 , or do you leave them this way at 777 ? , or do you set this one to that , the other to some other , etc ?
Thank you for any help .
DA
Folder/File permissions after install
Re: Folder/File permissions after install
Personally I don't set permissions to 777 but make the webserver user owner of the files/folders it needs write access on.
I usually run a script before install:
Usually I only change permission on config.php after install and delete the install folder.
The tmp/cache tmp/templates_c and uploads folders must by writable by the webserver.
If you want to install modules using xml files or remove modules from the admin, then the modules folder (and contents) must be writable too.
I usually run a script before install:
Code: Select all
touch config.php
chown apache config.php
mkdir tmp tmp/cache tmp/templates_c uploads uploads/images
chown -R apache tmp/cache
chown -R apache tmp/templates_c
chown -R apache modules
chown -R apache uploads
The tmp/cache tmp/templates_c and uploads folders must by writable by the webserver.
If you want to install modules using xml files or remove modules from the admin, then the modules folder (and contents) must be writable too.
Last edited by Anonymous on Tue Sep 12, 2006 12:19 pm, edited 1 time in total.
Re: Folder/File permissions after install
Thanks for that Dee , but that is a little beyond me at the moment .
DA
DA