title: How to get my session to write to apache
body: <p>I switched servers recently, and now my home page won't work. It gives the following text:</p>
  
  <pre><code>Warning: session_start() [function.session-start]: open(/var/lib/php/session/sess_eqbchncji8kj22f0iqa9g3v7u2, O_RDWR) failed: Permission denied (13) in /var/www/vhosts/alt.alternativedc.com/httpdocs/index.php on line 6
  
  Warning: Unknown: open(/var/lib/php/session/sess_eqbchncji8kj22f0iqa9g3v7u2, 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
  </code></pre>
  
  <p>I assumed that this meant that the session folder was not writable, so I ran the following command after I ssh-ed into the server:</p>
  
  <pre><code>chmod o+rw /var/lib/php/session
  </code></pre>
  
  <p>That didn't seem to solve the problem. Not sure what to do now...</p>