Install Permissions directories

Author Message

Darly Coupet

Tuesday 23 December 2003 4:48:53 pm

I installed latest version of ezpublish on linux with php and mysql. virtual host with ISP.

During installation, the setup wizard created the following directories with ownership and group permissions of Apache web server (www).
/home/path/intarnet/design/intranet/
/home/path/intranet/settings/override/
/home/path/intranet/settings/siteaccess/intranet/
/home/path/intranet/settings/siteaccess/intranet_admin/
/home/path/intranet/var/intranet/

I am unable to access directories thru shell or ftp, because the directories have apache permissions and not the user permission for the domain.

How can I install or configure with ownership permissions assigned to user and group permission to apache (web server)?

Your comments are greatly appreciated.

Darly Coupet

Balazs Halasy

Wednesday 24 December 2003 4:35:39 am

This is a known and unfortunate problem. You'll have to contact the hosting provider and have them change the permissions for you (since you most likely will not be able to do this yourself). The hosting admin will have to do something like:

"chown user:group -R /path/to/ezpublish"

(where user is your username and group is your group)

Balazs

Darly Coupet

Wednesday 24 December 2003 10:01:16 am

I pasted Install documentation for Permissions, it recommends to change the permissions to your webserver username and groupname.

What is the best approach to assign directories permissions?

Permissions
If eZ publish is installed on a Linux/UNIX based system, then a couple of file permissions need to be changed. There exists a shell script that takes care of this. This script must be run, or else, eZ publish will not function properly. The script needs to be run from within the eZ publish directory, like this:

$ cd <ez-publish-directory>
$ bin/modfix.sh
The modfix script alters the permission settings of the following directories:

var/* (recursive)
settings/* (recursive)
design/* (recursive)

If you know the user and group of the webserver it is recommended to use a different set of permissions. Example:

chmod og+rwx -R var
chown -R nouser.nouser var
The nouser.nouser notation must be changed to your webserver username and groupname.

Darly Coupet

Wednesday 24 December 2003 10:03:24 am

This is comment from modfix.sh

*** WARNING WARNING WARNING WARNING ***
This script sets 777 as permissions in var/
THIS IS NOT SECURE!
Find the user and group for your web server and make them owner of all files in var/
You should be able to find this information in the configuration file for your web server.

For example:
If your web server user is apache and the group is apache, then run the following commands:
# chown -R apache.apache var/
# chmod -R 770 var/
"

Balazs Halasy

Thursday 25 December 2003 2:50:44 am

Hello again,

I think you're mixing the installation methods. There are three ways of installing eZ publish: normal, bundled and manual. The modfix.sh script should only be used when doing a manual installation of eZ publish. If you're installing in the regular/normal way (which is recommended - or if you're using the bundled installation), the setup wizard takes care of setting the permissions (and everything else that needs to be done). This means that you don't have to (and shouldn't) run the modfix.sh script. The install script changes some file-ownerships to the webserver user and sometimes it is not possible to edit these files as your regular user. This is a known problem. The solution (as pointed out earlier) is to login as root and changing the ownership manually (back to your own user).

Balazs

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.