I'm running a Wordpress website and recently upgraded my VPS from 11.x to 12.5. Since the upgrade I get 403 forbidden from nginx after uploading images in Wordpress. I had no problem whatsoever with my setup on 11.x.
The weirdest thing is, all additional image sizes generated by Wordpress are displayed correctly, only the original image gives a 403. So screenshot.png will return a 403, but screenshot-150x150.png that is generated as a thumbnail by Wordpress won't. Also, I can't deleted or open the original images via FTP, gives permission denied as well.
My VPS
CentOS 6.7 (Final)
PHP support 5.4.45, run PHP as FPM application served by nginx
Smart static file processing on
All permissions are set to 755 for folders and 644 for files
User/owner: (changed my user to example-user)
All other server settings are pretty default (ootb)
These settings worked out of the box on any Wordpress install on 11.x, but now even on a clean Wordpress install I get those 403 errors after an image upload. I have checked the default config files generated by Plesk but they seem to look okay. I've tried regenarting the config files but that didn't change anything. When disabling smart static file processing all images are served via Apache without 403 or error. Other static files like js and css files are served without error.
Are their any changes made in Plesk 12.5 regarding default config files or the way nginx handles images on upload through Wordpress?
The weirdest thing is, all additional image sizes generated by Wordpress are displayed correctly, only the original image gives a 403. So screenshot.png will return a 403, but screenshot-150x150.png that is generated as a thumbnail by Wordpress won't. Also, I can't deleted or open the original images via FTP, gives permission denied as well.
My VPS
CentOS 6.7 (Final)
PHP support 5.4.45, run PHP as FPM application served by nginx
Smart static file processing on
All permissions are set to 755 for folders and 644 for files
User/owner: (changed my user to example-user)
All other server settings are pretty default (ootb)
Code:
d root root /
d root root var
d root root www
d root root vhosts
d example-user psaserv domainname
d example-user psaserv httpdocs
d example-user psacln wp-content
d example-user psacln uploads
d example-user psacln 2015
d example-user psacln 11
- example-user psacln screenshot-2.png
These settings worked out of the box on any Wordpress install on 11.x, but now even on a clean Wordpress install I get those 403 errors after an image upload. I have checked the default config files generated by Plesk but they seem to look okay. I've tried regenarting the config files but that didn't change anything. When disabling smart static file processing all images are served via Apache without 403 or error. Other static files like js and css files are served without error.
Are their any changes made in Plesk 12.5 regarding default config files or the way nginx handles images on upload through Wordpress?