I've recently switched to linux and am trying to set up LEMP myself, which I've managed for the most part, however I've now run into permission problems Ì can't fix. A Local WordPress site cant upload any files.
My Setup
- php-fpm run as my user
- nginx run as user nginx
- Site stored at /home//Websites/example.com
This is for local development only.
/home/my-user drwxr-xr-x
/home/my-user/Websites drwxrwxr-x
/home/my-user/Websites/example.com drwxrwxr-x
/home/my-user/Wbsites/example.com/wp-content drwxrwxr-x
All owned by my-user:my-user
Other than uploads the site is working.
EDIT: The problem would appear to be coming from SELinux. Still not yet sure what to enable in order to fix uploads.