Page 1 of 1

Write permissions

PostPosted: 17. September 2007 09:43
by erelsgl
Whenever I restart my computer and try to run some PHP script on the localhost, I get error messages saying that the script cannot write to a certain file/directory.

I solve the problem by:

su - root
chmod -R a+w /home/user/www

However, I have to do this again after I restart my computer...

Is there a better solution?
What am I missing?

PostPosted: 09. October 2007 15:47
by slowyaroll
I take it that /home/user/www is just an example, right?

Nevertheless, have you tried this
Code: Select all
chown -vR nobody:root /home/user/www
chmod -vR 755 /home/user/www