PDA

View Full Version : apache read/write permissions


badben
20th July 2006, 18:17
How can I check if apache has read write permissions to the /tmp directory?

I am using mandrake 10.2

I keep getting the following error on my script and I know the databse connection script is working fine.

Warning: session_start(): open(/tmp/sess_0c9686773fc94eaab7883435ba89ad01, O_RDWR) failed: Permission denied (13) in /home/www/web1/web/hvac/testphprunner/login.php on line 4

Does anybody have any ideas?

falko
21st July 2006, 14:47
Under which user and group is your Apache running? You can find out by having a look at the Apache configuration, there is a User and Group directive.

What's the output of ls -l /?
Is PHP Safe Mode enabled or disabled for that web site?