Jun 25, 2012
tom

web folder permission issue with WordPress using Nginx in CenterOS

Question

OS: CentOS release 6.2

In nginx.conf, I set web user as nginx as the following,

user nginx nginx;

The mod of plugin/uploads folders is like the following

drwxr-xr-x. 11 nginx nginx 4096 23:09 plugins
drwxr-xr-x.  4 nginx nginx 4096 11:13 uploads

As you see, the plugins/uploads folders are owned by nginx, and “rwx” by nginx, but why when I try to update plugins via wordpress dashboard, I still get permission denied.

Thanks,

Adam

Asked by Adam C.

Answer

It’s php-fpm settings which override the user/group settings in nginx.conf, and I just need to set to “nginx” and fixed the problem.

http://www.caiapps.com/web-user-and-group-setting-in-nginxphp-fpm-env/

Answered by Adam C.

Related posts:

  1. Using nginx + wordpress with all wordpress files in a subdirectory
  2. nginx + PHP-FPM = “permission denied” error 13 in nginx log; configuration mistake?
  3. Blank Page: wordpress on nginx+php-fpm
  4. Nginx – WordPress, Mediawiki etc
  5. nginx php-fpm trouble

Leave a comment