How to give WordPress write permissions on LAMP
by Riley MacDonald, September 14, 2013

As I explore WordPress development further, I decided to clone a repository to my Linux machine and use my LAMP server for feature development. I encountered an issue when trying to install a new plugin, as WordPress does not have permission to write to my ‘/var/www’ directories. Using the following commands, WordPress was easily given the permissions it needs to make changes on the LAMP server directories.

# Change directory to the /var/www folder
cd /var/www
# Give ownership of the directory to the apache user
sudo chown www-data:www-data * -R
sudo usermod -a -G www-data username
Open the comment form

Leave a comment:

Comments will be reviewed before they are posted.

User Comments:

Be the first to leave a comment on this post!