Huge problem with file permissions

Author Message

Fred Gueho

Sunday 21 May 2006 3:53:39 pm

Hi,

Whatever I try, it is not just working...

I have develop a site under Apache on Windows. It works fine.
And now I need to put it on a live server under Apache on Linux. And it doesn't work !

I have these messages :
Couldn't create cache directory var/cache/ini/, perhaps wrong permissions.
Couldn't create cache file 'var/cache/ini/27c95f625cad7655dfbedf631a2950f2.php', perhaps wrong permissions.
...

I tried to 'chmod -R 777 *' everything. Not working.
I tried 'bin/modfix.sh'. Not working
I tried to 'chown -R apache.apache var'. Not working.
I tried that before and after deleting the var/cache and var/mysite/cache directories. Not working.

I'm a bit deseperate now.

I really need your help to sort it out. Thanks !

Fred Gueho

Monday 22 May 2006 5:50:30 am

Strangely, 'chown -R daemon.daemon var' works !
And with an other server, it's 'chown -R apache.apache var' that works...

May be it's because the first run an Apache 2.0 server and the second an Apache 1.3 server ?

Any ideas ?

Kristof Coomans

Monday 22 May 2006 6:06:50 am

It depends on the user and group that's being used to run Apache. Take a look at the User and Group configuration directives of Apache.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Fred Gueho

Monday 22 May 2006 6:18:37 am

Where can I find that ?

Thanks for your reply.

Fred

Siniša Šehović

Monday 22 May 2006 8:36:32 am

Hi Fred

You can find it in httpd.conf file.

It is in /etc/httpd or /usr/local/apache/conf, depending on linux distro.

Best regards,
S.

---
If at first you don't succeed, look in the trash for the instructions.

Eirik Alfstad Johansen

Sunday 15 October 2006 9:11:23 am

Hi,

I'm experiencing this exact same problem after unpacking a site from the backup of a different server. I've tried the same things as Fred, including changing ownership to nobody.nobody, which is, according to my httpd.conf file, the user and user group Apache runs as. Usually, setting permissions to 777 does the trick, but this time that doesn't seem to be the case.

Does anyone have any ideas?

Thanks in advance !

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Eirik Alfstad Johansen

Sunday 15 October 2006 9:21:03 am

Never mind. Silly me had forgot to turn off safe mode. Too bad there's nothing suggesting this in the debug output. :)

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

kracker (the)

Sunday 10 December 2006 9:48:29 am

<i>@Eirik</i>

I suggest you file a feature request for the suggestion you mention!

Turn that missing debug feature into a feature request (issue) and
perhaps in time it will be addressed by eZ systems.

//kracker

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Eirik Alfstad Johansen

Wednesday 03 January 2007 11:57:47 pm

Reported here:

http://issues.ez.no/IssueView.php?Id=9932&activeItem=1

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Luke Barton

Tuesday 16 January 2007 8:41:39 pm

You can also run "top" from the command line. It should list the user that is running an apache (httpd) process.

-Luke

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 18 2025 11:41:41
Script start
Timing: Jan 18 2025 11:41:41
Module start 'layout'
Timing: Jan 18 2025 11:41:41
Module start 'content'
Timing: Jan 18 2025 11:41:42
Module end 'content'
Timing: Jan 18 2025 11:41:42
Script end

Main resources:

Total runtime1.2296 sec
Peak memory usage4,096.0000 KB
Database Queries86

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.0391152.6406
Module start 'layout' 0.00650.0032 740.679739.4766
Module start 'content' 0.00971.2184 780.1563777.3125
Module end 'content' 1.22810.0015 1,557.468820.1406
Script end 1.2295  1,577.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3019160.0002
Check MTime0.00140.1178160.0001
Mysql Total
Database connection0.00090.076710.0009
Mysqli_queries1.143392.9865860.0133
Looping result0.00090.0753840.0000
Template Total1.195297.220.5976
Template load0.00290.232820.0014
Template processing1.192396.971420.5962
Template load and register function0.00030.024110.0003
states
state_id_array0.00090.072110.0009
state_identifier_array0.00180.146520.0009
Override
Cache load0.00240.1985590.0000
Sytem overhead
Fetch class attribute can translate value0.00050.040360.0001
Fetch class attribute name0.00120.0976140.0001
XML
Image XML parsing0.00320.257360.0005
class_abstraction
Instantiating content class attribute0.00000.0027160.0000
General
dbfile0.00260.2140350.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 39
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs