I am using LAMP stack for development and I have a problem with making /var/www permanently writable. I use this command:
sudo chmod -R a+rwX /var/www
This works, but after putting a web app and accessing it through a browser, it show a "permission denied" error. When that happens, I have to the execute the command again.
How can I make the directory writable, permanently, without having to run the command again?
Thanks!
/var/www
and change permisson for that directory. That should fix the issue – Anam Ahmed Mar 08 '13 at 06:57/var/www
to default rwxr-xr-x and you'd probably move the required files to a sub-directory in/var/www
and make changes to your *html files accordingly for the changes you've made to the document root. – rusty Dec 09 '13 at 16:03