Set the perfect permissions for WordPress:
cd /path/to/wp/webroot; find . -type d -print0|xargs -0 chmod 755; find . -type f -print0|xargs -0 chmod 644; chown nginx:nginx * -R
*Update nginx:nginx to your web daemon user and group
Set the perfect permissions for WordPress:
cd /path/to/wp/webroot; find . -type d -print0|xargs -0 chmod 755; find . -type f -print0|xargs -0 chmod 644; chown nginx:nginx * -R
*Update nginx:nginx to your web daemon user and group
Recently had an issue where I was unable to upload media within WordPress. Turned out the user and group in php-fpm’s www.conf was incorrect. To fix:
vim /etc/php-fpm.d/www.conf user: nginx group: nginx
Restart php-fpm
service php-fpm restart
Recent Comments