Results 1 to 3 of 3
Hello,
On my webserver, the site url is /var/www/Symfony. Symfony/ is owned by root:root: The permissions are recursively 0777. If I try and change my permissions to 774 clients get ...
- 02-03-2012 #1Just Joined!
- Join Date
- Dec 2010
- Posts
- 33
Err 403 forbidden unless directory is Chmod 0777. What could be wrong?
Hello,
On my webserver, the site url is /var/www/Symfony. Symfony/ is owned by root:root: The permissions are recursively 0777. If I try and change my permissions to 774 clients get forbidden message. If I change it to 775, clients get all sorts of errors issued by the framework.
What should I check?
Thanks!
Kind regards,
MariusLast edited by kingoslo; 02-03-2012 at 02:52 PM.
- 2 Days Ago #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,977
If you need read+write+execute (777) permissions on the directory, and read+execute doesn't work (775) then chances are that your web application framework needs to be able to write data to that directory as non-owner, non-group user. The first permissions octet is for the owner, the second for the group, and the third for everyone else (other). Setting to 774 means that others cannot navigate to the directory, though they can read it. This link may help you understand Unix/Linux permissions better: http://www.thegeekstuff.com/2010/04/...y-permissions/
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 1 Day Ago #3
You will need to change the group. As this is an Ubuntu forum, I'll assume that you are running on Ubuntu ^_^ which means the group should be www-data. Run the command
after which you should be able to use more sensible permissions such as 755 but note there may be some directories that need to be 775 to allow the site to write to them.Code:chgrp -R www-data /var/www/Symfony
If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.


Reply With Quote