Share on LinkedIn
I’ve been meaning to get this posted for some time now. It could prove useful to someone hosting their own WordPress site on a self-hosted Linux machine.
When you are logged into the admin console of your WordPress site, you will get notifications of needed updates. You may also want to upload new themes from time-to-time.
When you go to perform the Automatic Update, it will work without issue so as long as your permissions are setup properly on your apache web server.
If you find yourself running into this issue, ssh into the backend of your apache web server and follow these simple steps:
1. Set ownership of /var/www/html and make changes recursive
chown -R apache:apache /var/www/html
2. Ensure the apache user/group can write to /var/www/html and make changes recursive
chmod -R 0775 /var/www/html
3. Restart apache
service httpd restart
Once you made those changes to the backend, try to run the update(s) again from the admin portal. You should be all good to go from there.