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?