I have set up a LAMP environment. All of the files that I want to run on the localhost are placed into my /var/www directory. Each time I want to open up a file with write permissions, I have to prefix the command with sudo at the beginning. How do I change the permissions of /var/www so any user other than root can modify the contents?
|
feedback
|
|
The simplest way is to change the ownership to your userid. This should not be user id the webserver is accessing the files you are using. Use the
This will recursively change the Limit write access by the web server to as few directories and files as possible. | |||
|
feedback
|