Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

A folder under the directory /var/www/xml keeps changing permission from www-data to root meaning that no php file is able to write into the folder.

This seems to happen when I restart the server.

drwxr-xr-x 6 root www-data 4096 Sep 10 13:40 xml

chown www-data -R /var/www/xml

drwxr-xr-x 6 www-data www-data 4096 Sep 10 13:40 xml

How do I make sure this does not happen?

share|improve this question

  you can change the owner of the www folder it will solve it

 sudo chown user /var/www

           and logout and login.
           Then open the var folder,   right click on www folder select properties
            now you can edit the permission of the www folder.

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.