Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have changed the user Apache runs under and am getting the following when trying to use sessions in PHP:

Warning: Unknown: open(/var/lib/php/session/sess_phbfugace53ngs8kt9pdgovf21, 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

I ran chown myuser /var/lib/php/session and still get the error. What else do I need to do?

share|improve this question
up vote 2 down vote accepted

Ok, managed to sort this with chown myuser /var/lib/php/session -R

share|improve this answer
    
+1 for answering your own question – cpbills Jun 5 '11 at 22:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.