dstana

Well-Known Member
Jul 6, 2016
102
17
68
Phoenix, AZ
cPanel Access Level
Root Administrator
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:

Code:
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.