Report this

What is the reason for this report?

Wordpress Permissions LEMP CentOS 7

Posted on September 15, 2017

I changed the user and group in my /etc/php-fpm.d/www.conf from

user = php-fpm group = php-fpm

TO

user = nginx group = nginx

And Wordpress has no problems reading/writing to it’s wp-content directories

But after I do this it breaks my phpmyadmin folder and keeps it from loading at all until I change it back to php-fpm for the user:group.

How can I fix this so Wordpress can read/write as nginx:nginx but still be able to access my phpmyadmin that runs as php-fpm?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I did add nginx to the php-fpm group and got nothing.

usermod -aG php-fpm nginx

[bryce@XXXXXX~]$ groups nginx nginx : nginx php-fpm [bryce@XXXXXX~]$ groups php-fpm php-fpm : php-fpm nginx

I am using php7

Why not add them to the same group? That’s usually the point of groups.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.