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?filter
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.