Page 1 of 1

Session Test Problem

Posted: Wed Aug 02, 2006 5:19 pm
by primster7
Script URL:
Version of script: 0931
Version of PHP: 4.3.9
Hosting company:
Have you searched THIS FORUM for your problem: yes
(if not please do before posting)
If so, what terms did you try:

Write your message below:


I installed the program on another free linux host server. However, I can install it on my paid one. I ran the session test and here are the results (website name changed) ..

Warning: session_start(): open(/var/lib/php/session/sess_9f0e86c39b648e173297b301fb079834, O_RDWR) failed: Permission denied (13) in /vservers/website/htdocs/session_test.php on line 4

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /vservers/website/htdocs/session_test.php:4) in /vservers/website/htdocs/session_test.php on line 4

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /vservers/website/htdocs/session_test.php:4) in /vservers/website/htdocs/session_test.php on line 4
Session started successfully!
CLICK HERE FOR PAGE 2
Warning: Unknown(): open(/var/lib/php/session/sess_9f0e86c39b648e173297b301fb079834, O_RDWR) failed: Permission denied (13) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0


When I run session_test2.php it says:

$_SESSION['test'] is set to: FALSE



I''m hosted by a redhat Linux server.

Any help would be appreciated.

Posted: Wed Aug 02, 2006 5:46 pm
by Klemen
Well the problem is what the PHP warning says:

Please verify that the current setting of session.save_path is correct (/var/lib/php/session).

Also make sure the session folder is world-writable (chmod it to 777).

If you're not sure what this all means ask your host to check this for you.

Question on path

Posted: Wed Aug 02, 2006 8:25 pm
by primster7
Is the /var/lib/php/session a folder that I can see? If so, I don't see it so I created it and CHMOD 777 it. However, I still get the same error message. Any help would be appreciated.

BTW: Great program!


Hoops

Session problem fixed

Posted: Thu Aug 03, 2006 3:58 am
by primster7
I searched all of the net and couldn't find a solution. I then copied and pasted the error message and sent it to my webhost. They changed the permsission to the folder and now it works perfect.

Thanks!

Klemen Stirn wrote:Well the problem is what the PHP warning says:

Please verify that the current setting of session.save_path is correct (/var/lib/php/session).

Also make sure the session folder is world-writable (chmod it to 777).

If you're not sure what this all means ask your host to check this for you.