Forums / Install & configuration / Install Permissions directories

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

eZ debug

Timing: Jan 18 2025 19:29:01
Script start
Timing: Jan 18 2025 19:29:01
Module start 'content'
Timing: Jan 18 2025 19:29:02
Module end 'content'
Timing: Jan 18 2025 19:29:02
Script end

Main resources:

Total runtime1.0691 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 589.2578180.8281
Module start 'content' 0.00790.9199 770.0859543.5469
Module end 'content' 0.92780.1413 1,313.6328337.3828
Script end 1.0691  1,651.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.4124210.0002
Check MTime0.00160.1476210.0001
Mysql Total
Database connection0.00110.099510.0011
Mysqli_queries0.986492.26212000.0049
Looping result0.00230.21141980.0000
Template Total1.035796.920.5178
Template load0.00220.208720.0011
Template processing1.033496.660020.5167
Template load and register function0.00020.022410.0002
states
state_id_array0.00080.070610.0008
state_identifier_array0.00200.187720.0010
Override
Cache load0.00180.1714520.0000
Sytem overhead
Fetch class attribute can translate value0.00160.145730.0005
Fetch class attribute name0.00270.256560.0005
XML
Image XML parsing0.00090.081930.0003
class_abstraction
Instantiating content class attribute0.00000.001770.0000
General
dbfile0.00280.2632270.0001
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 28
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs