Forums / Install & configuration / Huge problem with file permissions

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

eZ debug

Timing: Jan 18 2025 05:08:17
Script start
Timing: Jan 18 2025 05:08:17
Module start 'content'
Timing: Jan 18 2025 05:08:17
Module end 'content'
Timing: Jan 18 2025 05:08:18
Script end

Main resources:

Total runtime0.7577 sec
Peak memory usage4,096.0000 KB
Database Queries223

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 587.8359180.8203
Module start 'content' 0.00610.6275 768.6563782.4063
Module end 'content' 0.63360.1240 1,551.0625344.4375
Script end 0.7576  1,895.5000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.5329210.0002
Check MTime0.00150.1945210.0001
Mysql Total
Database connection0.00060.079210.0006
Mysqli_queries0.667888.13632230.0030
Looping result0.00240.31762210.0000
Template Total0.724395.620.3622
Template load0.00200.259220.0010
Template processing0.722495.333220.3612
Template load and register function0.00030.040010.0003
states
state_id_array0.00130.165110.0013
state_identifier_array0.00080.100220.0004
Override
Cache load0.00180.2362590.0000
Sytem overhead
Fetch class attribute can translate value0.00200.265370.0003
Fetch class attribute name0.00230.3067140.0002
XML
Image XML parsing0.00240.317070.0003
class_abstraction
Instantiating content class attribute0.00000.0034160.0000
General
dbfile0.00450.5947460.0001
String conversion0.00000.000930.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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