Moving from Prefork to Event
I'm wanting to change MPM on one of my servers from Prefork to Event. After making the change in Apache, anything running PHP throws 500 errors. After looking through /var/log/apache2/error_log it seems to be a permissions issue. Here's a WordPress example:
Do have have to update ownership of the public_html folders for all the users? Moving it back to Prefork, everything works again as expected.
AH01215: PHP Warning: require_once(/home/xxx/public_html/wp-config.php): failed to open stream: Permission denied in /home/xxx/public_html/wp-load.php on line 37: /usr/local/cpanel/cgi-sys/ea-php74
[cgi:error] [pid 11931] [client 72.216.179.104:65491] AH01215: PHP Fatal error: require_once(): Failed opening required '/home/xxx/public_html/wp-config.php' (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/xxx/public_html/wp-load.php on line 37: /usr/local/cpanel/cgi-sys/ea-php74
Do have have to update ownership of the public_html folders for all the users? Moving it back to Prefork, everything works again as expected.
-
Make sure you have mod_suexec installed on the server. 0 -
Make you you have mod_suexec installed on the server.
This was it, can't believe I missed that. Thank you.0 -
Thanks @andrew.n! @dstana even I did this recently, not a hard one to miss. 0
Please sign in to leave a comment.
Comments
3 comments