eZ Community » Forums » Install & configuration » I need help with chmod

I need help with chmod

I need help with chmod

Friday 06 December 2013 12:42:27 pm - 5 replies

I need help with chmod.
EzP.4.5 install in a hosting of ambient linux, install it with chmod 777,
the technicians of the hosting sent a note noticing me,  changed the chmod for 775.
I made the changes, and the site collapse, it doesn't work correctly.
please help.         

Friday 06 December 2013 1:01:13 pm

Hi Edixon,

775 is also ok as long as you set the group ownership to the web server process group. So if the web server runs under group www-data you need to set this for the var folder files. E.g. chgrp -R www-data var

This should be also known by the technicians. You just need to tell them the web server needs to write to the var folder

Friday 06 December 2013 2:57:18 pm

thanks for the reply.
How I can apply these settings through a via ftp or shh / shell?

Friday 06 December 2013 3:04:11 pm

Via FTP probably not happy.gif Emoticon

In ssh shell as already noted, from the ez root folder:

chgrp -R www-data var

But it depends on what is the group of the web server process.

What version of eZ do you use? If you use eZ 5 and new stack its more complicated.... 

Friday 06 December 2013 3:09:40 pm

use EzP.4.5

Monday 09 December 2013 3:29:15 am

One option would be to ask the hosting company to run the commands to set ownership of the files to that of the web server (apache, nobody, wwwdata, etc) and permissions as root. .


chown -R user.usergroup var/ settings/ design/ autoload/
chmod -R 770 var/ settings/ design/ autoload/

Once they do that, you will not be able to access the files except through the web interface, so it isn't good for a development environment, but it is much more secure for a production system.

A compromise would be to have the directories you need to work with (settings, design, autoload) owned by the account, but the var directory owned by the web server.

I have never split the ownership that way, so I am not sure it would work.

Another solution would be to run the site under FastCGI or with suPHP.  In those cases, the web server is running as the account owner, which makes everything much simpler.

Modified on Monday 09 December 2013 3:29:55 am by Betsy Gamrat


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from