Permissions/Owernship issue on local LAMP install [duplicate] – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.
But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, apache-2.2, , , .
Allow WordPress to Update on Local Apache2 Install
I have a local dev environment set up with a LAMP stack, it’s used for WordPress development.
Now, whenever I want to edit a file in /var/www/mysite I need to type in sudo before I can edit anything. This is obviously a unnecessary, and I was wondering what I need to set up to fix this issue.
You can add yourself into the www-data group
Then you would have to make all files writeable for the group www-data:
sudo chmod g+w * -R, but if wordpress creates new files those will have the wrong permissons again. To avoid that you have to set the umask, check this link for further information:
or since you are on your local system and don’t have to fear the evil internet, you could run apache under your user.
Most often you can find the settings in httpd.conf, there you will find two options:
User www-data Group www-data
Hope I could help