Easy WordPress file and database permissions and ownership
This post is short — no intro to UNIX file permissions or a plethora of commands, just how to easily setup WordPress file & database permissions!
File permissions and ownership
- Go to directory containing sites (assuming each site is a subfolder):
- Set the web service account as the owner (assuming Debian-y):
- Go into the site directory:
- Set the correct permissions:
Database privileges
The database user requires the following permissions on the WordPress database:- SELECT
- INSERT
- UPDATE
- DELETE
- CREATE
- ALTER