Permissions

Author Message

Trond Åge Kvalø

Thursday 30 September 2004 5:47:46 am

Hi folks!

I find the permission problem one of the most difficult ones to comprehend in eZ publish.

If you install eZ publish on a server where you have root access, then no problem, you can chown and chmod as much as you want.

BUT, and this should stand out more in the documentation than it does today, if you're on a shared host environment with next to no control on the ownership you must ask your ISP to give you the needed permissions. And that may even not be enough.

I have asked my ISP to grant the webserver the ownership of the var/ design/ and settings/ directories, the webserver apparently run under the same username and group as I am when I am logged in via SSH.

So apparently I should be able to chown my files with myusername:mygroup and then set e.g. chmod 700 or something similar to avoid the files being read/writable by others. But I still get permission denied errors in the debug. The only solution I've seen sofar is to chmod 777 everything that the webserver needs access to.

Some of the directories and files are owned by nobody:nobody, but my ISP has reassured me that the webserver is running as myusername:mygroup.

Can anyone please take the time explain how the permission system works in eZ publish installed on linux? Or maybe point me to a resource that can explain it.

And, by the way, why does eZpublish need to run chmod 666 on images in the var/ subdirectories?

trondåge

Trond Åge Kvalø

Friday 01 October 2004 6:06:03 am

This is getting quite frustrating.

My ISP (an eZ partner) claims that the webserver runs as myuser.mygroup, but when eZ publish creates files they are owned by nobody.nobody.

Doesn't this indicate that the webserver runs as nobody.nobody?

If the webserver runs as myuser.mygroup, then why are the files owned by nobody?

Is it possible that PHP can run as a different user than Apache? If so, what user should then own my var/ design/ and settings/ directories?

Can permission problems be the reason why some of my overrides won't work?

Please help me solve this.

Best regards

trondåge

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

eZ debug

Timing: Jan 30 2025 22:26:53
Script start
Timing: Jan 30 2025 22:26:53
Module start 'layout'
Timing: Jan 30 2025 22:26:54
Module start 'content'
Timing: Jan 30 2025 22:26:54
Module end 'content'
Timing: Jan 30 2025 22:26:54
Script end

Main resources:

Total runtime0.0242 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.1250151.2109
Module start 'layout' 0.00520.0040 739.3359220.6875
Module start 'content' 0.00920.0136 960.0234997.5859
Module end 'content' 0.02280.0013 1,957.609429.9922
Script end 0.0242  1,987.6016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002610.6313140.0002
Check MTime0.00104.1885140.0001
Mysql Total
Database connection0.00072.928910.0007
Mysqli_queries0.00249.880830.0008
Looping result0.00000.050210.0000
Template Total0.00093.910.0009
Template load0.00072.854010.0007
Template processing0.00031.037010.0003
Override
Cache load0.00051.978510.0005
General
dbfile0.00208.377080.0003
String conversion0.00000.030540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs