Permissions and CHMOD

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
Woody60

Permissions and CHMOD

Post by Woody60 »

I am a total newbie to CMS and want to understand it thoroughly.  :)

However I have uploaded all files to my server as per Installation instructions, and then tried to change relevant permissions to 777 as instructed.
Am unable to do that and have received the following comments from their supprt:

"Please note that we are running SuExec, which means that your scripts will run as you (not as the web server), so you do not need to give world-writable permissions to any of your files and directories. Thus, world-writable permissions are no longer required; moreover, they compromise the security and privacy of your files. This is why scripts with world-writable permissions (or placed in directories with such permissions) will generate Server Error message on our servers.
You should use 664 or 775 permissions instead.

In case you will not be running scripts from those directories, and need to change the permissions to 777, you can do that using an FTP client that supports CHMOD.
Please note that if a script would need to write/read to a file in these directories, the permissions must not be 777. "

At this stage in the game, this might as well be in Chinese to me!!!

Could some one tell me what to do from this point on? If I follow their advice will it cause problems when I get to Step 8 of the installation?
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Permissions and CHMOD

Post by tsw »

permission 777 means everybody can read/write to that folder. If ISP runs apache as nobody all scripts will be run with those rights and the script wont have read write access to folders owned by your user without 777

As in your case your php scripts are run with your permissions (with the suexec) and everything you have rights on your php scripts have too.

You shouldnt have any trouble while installing as your php scripts will be using your rights on the server

hope this helps
billbest

Re: Permissions and CHMOD

Post by billbest »

hi

i have _just_ had this problem myself and it has taken me three weeks to sort...

i am running on a suexec system too and i have just-this-minute cracked this by doing the following:

chmod 711 tmp/templates_c
chmod 711 tmp/cache
chmod 711 uploads
chmod 711 uploads/images
chmod 711 modules
chmod 711 install
chmod 644 install/install.php
touch config.php
chmod 644 config.php


this worked for me - hope it works for you!

cheers

bill
sheffield, uk
billbest

Re: Permissions and CHMOD

Post by billbest »

hi

me again.

i just tried getting to the admin interface and got the same permissions errors as before so i just issued this:

chmod 771 admin

and i managed to continue okay.

so the upshot of this is that in case of continued permissions errors with a suexec system:

  • chmod relevant directories to 711
  • chmod relevant files to 644
  • be prepared to chmod files/directories that might have not been explicitly mentioned in the documentation

hope that helps

bill
sheffield, uk
Books

Re: Permissions and CHMOD

Post by Books »

billbest wrote: i just tried getting to the admin interface and got the same permissions errors as before so i just issued this:

chmod 771 admin
This is an old thread, but it really helped me.

I have one change to report. All the permissions settings suggested worked for me except for the last one, "chmod 771 admin". Chmod 771 didn't work on my server, but 711 did.

Thanks, Bill!

Books
Locked

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