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