Reply to topic
Sessions problem
primster7


Joined: 31 Jul 2006
Posts: 5
Reply with quote
I'm trying to run a session_test.php file and I get the following error.

Warning: session_start(): open(/var/lib/php/session/sess_3793c77844bb93135dc8294f08e901b2, 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/phpcrewc/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/phpcrewc/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_3793c77844bb93135dc8294f08e901b2, 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



Website I changed because of the NOOB effect.. I'm using a linux basic package. Does anyone know if the /var/lib/php/session is a folder that I can see? I created it and ran the same test with the same results. Before I created it, I wasn't able to see this folder.

Do you think that it's a php.ini issue, or a rewrite issue?


Any help would be appreciated.
dbodner


Joined: 21 Dec 2005
Posts: 112
Location: Philadelphia, Pa
Reply with quote
contact support with your domain. it's a quick php.ini change.
PHI.INI INFO
primster7


Joined: 31 Jul 2006
Posts: 5
Reply with quote
I have access to the php.ini file, but just do not know what lines to change.
Connie


Joined: 26 Mar 2005
Posts: 174
Location: The Internet
Reply with quote
You'll want to open the php.ini and look for

session.save_path = /var/lib/php/session

Just change that path to something in the home directory for the site and chmod it to 777. (generally keep it outside of the htdocs though, so something like /vservers/website/tmp)
Sessions problem
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic