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

PHP Notice: session_start(): ps_files_cleanup_dir: opendir(/var/lib/php5) failed: Permission denied

I am getting it in my apache error log

/var/lib/php5 owner and group is root, so is it fine to change the group to www-data, since its on a production server please help me out

share|improve this question
Already answered in this thread:… – Farhan Nov 13 '11 at 8:43
up vote 1 down vote accepted

Yes. It's fine. Webserver have to write somewhere sessions files. You can change this path in the php.ini file.

share|improve this answer

Your Answer


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.