Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

My Debain server created a session in private tmp folder /home/user/tmp the temp folder owner:

drwxrwxrwx 2 user www-data 4096 2011-08-23 16:26 tmp

After the session created, the session detail:

-rw------- 1 user user 0 2011-08-23 16:30 sess_66nnga09kav0747k5ek95ghne2

I added the user to www-data group but still cannot use the session. I got following error message:

Warning: Unknown: write failed: Disk quota exceeded (122) 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 (/home/user/tmp) in Unknown on line 0

If I changed the owner of session to

-rw------- 1 user www-data 84 2011-08-23 16:35 sess_66nnga09kav0747k5ek95ghne2

I can pass the session. Can I force the session file with specified owner??

share|improve this question

migrated from Aug 23 '11 at 18:49

This question came from our site for professional and enthusiast programmers.

You need to change under which effective group and user apache works.

share|improve this answer
can any method that make me force the session file with owner user:www-data?? – Arsun Aug 23 '11 at 8:57

The problem is that apache is not alowed to write in the directory /home/user/tmp. You can do the followings:

  • change the owner of that directory to www-data (the apache's user)


share|improve this answer
I changed the owner to user:www-data, but still cannot. It can create the session file but output owner: user:user. I changed the file to user:www-data, it's work – Arsun Aug 23 '11 at 11:10

The error message says you have exceeded your disk quota. Free up some space.

Warning: Unknown: write failed: Disk quota exceeded

share|improve this answer

Your Answer


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