PDA

View Full Version : PHP4 CGI & PHP5 CLI - Sessions issue on PHP4



apichault
09-17-2008, 04:37 AM
Hello,

My server configuration is:
Apache 2
PHP5 CLI
PHP4 CGI

On PHP4, when i use "session" i've got the following error:

Warning: session_start() [function.session-start]: open(/tmp/sess_d41d8cd98f00b204e9800998ecf8427e, O_RDWR) failed: Permission denied (13) in /home/xxxxxxx/domains

Can you help me ?

Thank you,

Antoine Pichault.

smtalk
09-17-2008, 06:26 AM
Try:


chmod 777 /tmp


If it does not work, try:


chown user:user /tmp/sess_d41d8cd98f00b204e9800998ecf8427e

apichault
09-17-2008, 07:30 AM
The second one fix the problem but create another one... a division by zero...
Maybe It's coming from script.

Thank you for your help.