PHP-FPM Permission Denied Centos 7?

477 views
0

I have just setup php-fpm to replace mod php with Apache on Centos 7. When i try to run the code, I am getting a permission denied error. What am I doing wrong?

Changed status to publish
0

I figured it out, I needed to set Apache as the user since this owned all of the web directories that PHP was trying to write data to. I suppose other changes could also have been made to the directories to give the php-fpm user the ability to write to these directories. I didn’t want to take the risk though.

Changed status to publish