Folder/File permissions after install

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
DA
Forum Members
Forum Members
Posts: 51
Joined: Sun Jul 30, 2006 3:56 am

Folder/File permissions after install

Post by DA »

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
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm
Location: the Netherlands

Re: Folder/File permissions after install

Post by Dee »

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:

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
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.
Last edited by Anonymous on Tue Sep 12, 2006 12:19 pm, edited 1 time in total.
DA
Forum Members
Forum Members
Posts: 51
Joined: Sun Jul 30, 2006 3:56 am

Re: Folder/File permissions after install

Post by DA »

Thanks for that Dee , but that is a little beyond me at the moment .

DA
Locked

Return to “[locked] Installation, Setup and Upgrade”