Quick Permissions Problem
Permalink
Hi folks. Can someone tell me how to make the site I'm working on locally (Mac) have the correct site wide permissions?
I thought I had set the whole site to 755 but I had an error when uploading to the server where some directories were group writable and the site wouldn't work. How can I make sure the whole site is set correctly (I don't know about shells I'm afraid).
Thanks in advance, any help very much appreciated.
John
I thought I had set the whole site to 755 but I had an error when uploading to the server where some directories were group writable and the site wouldn't work. How can I make sure the whole site is set correctly (I don't know about shells I'm afraid).
Thanks in advance, any help very much appreciated.
John
Thanks beebs, so do I make sure that the public_html/concrete5 folder is 755 but the /files /config and /packages are 775?
That sounds easy enough. Thanks for your help.
John
That sounds easy enough. Thanks for your help.
John
Correct, although you shouldn't have to touch the permissions at all in the main /concrete folder (unless a Zend library file needs permissions tweaking - but you'd only adjust the permissions for that one file).
You mentioned packages, I don't see nothing labeled packages? So I put every file in config to 775 but still I'm getting this message when I test.
The config/, packages/ and files/ directories must be writable by your web server. Now is this in the concrete folder? Unless I'm missing a folder? I'm not sure?
The config/, packages/ and files/ directories must be writable by your web server. Now is this in the concrete folder? Unless I'm missing a folder? I'm not sure?
You also mentioned something in the Zend folder may need to be changed. Do you know which file/folder exactly cause there's a lot of files there.
The three folders are located in you web root and need to be writable by the server and are NOT located in the /concrete/ folder, they are outside of it.
You don't need to make all the files within the directories writable, just the directories themselves. With the exception of /config/, there shouldn't be any files in these directories by default anyways.
The Zend file in question isn't actually part of Zend (my mistake); it's a basic Python script. Regardless, sometimes it needs its permissions changed as well. It's located in /concrete/libraries/3rdparty/htmldiff.py
You don't need to make all the files within the directories writable, just the directories themselves. With the exception of /config/, there shouldn't be any files in these directories by default anyways.
The Zend file in question isn't actually part of Zend (my mistake); it's a basic Python script. Regardless, sometimes it needs its permissions changed as well. It's located in /concrete/libraries/3rdparty/htmldiff.py
During a fresh install of C5, it will check to make sure that /files, /config, and /packages are writable by the server (in this case, 775; not 755).
Those are the only folders you need to worry about changing to permissions to 775 (sometimes a file in the Zend library needs changing too, but the process to fix any of these files/folders is the same).
If you don't have shell access you can try using FileZilla to adjust the permission levels.
Once you've connected just right-click on the folders mentioned and select "File permissions..." and tick all 3 boxes for "Owner permissions" and "Group permissions". Ensure that ONLY "Read" and "Execute" are selected in the "Public permissions" section. The numeric value should read 775.