Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

  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

 
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.