Apache error log full
I can't find why my Apache error log is filling up with errors from scripts that seem to be executing normally.
I have several site that log every single execution of any php file in them in the Apache error log with the following similar entries.
[Tue Jul 31 10:52:41.843253 2018] [cgi:error] [pid 29863] [client 10.100.1.28:58686] AH01215: Tue Jul 31 10:52:41 2018 (29901): Message Cached script '/home/.../src/classes/mark-lessons-complete.php: /usr/local/cpanel/cgi-sys/ea-php70, referer:
[Tue Jul 31 10:52:41.816439 2018] [cgi:error] [pid 29837] [client 10.100.1.28:58687] AH01215: Tue Jul 31 10:52:41 2018 (29902): Message Cached script '/home/fastt/public_html/wp-content/plugins/revslider/includes/extension.class.php': /usr/local/cpanel/cgi-sys/ea-php70, referer:
[Tue Jul 31 10:52:41.681481 2018] [cgi:error] [pid 29809] [client 10.0.200.254:59466] AH01215: Tue Jul 31 10:52:41 2018 (29907): Message Added key '/home/deskman/public_html/vendor/composer/../laravel/framework/src/Illuminate/Database/Eloquent/Relations/HasOne.php': /usr/local/cpanel/cgi-sys/ea-php70, referer:
No errors are showing up in the individual site error_log files.
Anyone have any ideas?
One compressed log file in the log archive is 21 Gig. Uncompressed, it's probably around 80 gig.
The php applications are working normally as far as users are experiencing.
For now, I made the cgi loglevel critical and the lines have stopped.
Thanks,
Chuck
-
Hello Chuck, It looks like the log output stems from OpCache. Are you using the OPCache PHP extension on this server? If so, the following PHP document notes the configuration settings you can alter to adjust the log location and verbosity: PHP: Runtime Configuration - Manual Let me know if this helps. Thank you. 0 -
Editing that opcache.log_verbosity_level worked great. However, I was unable to get Apache to recognize the change unless I edited the master file, /opt/cpanel/ea-php70/root/etc/php.d/10-opcache.ini I don't know if that's going to stick around. I tried using the WHM MultiPHP.ini editor and also the individual account php.ini editor. Neither would show the change when running phpinfo until I edited the master file. Local and global values always show 3 Is there another place this change should be? Thanks, Chuck 0 -
Neither would show the change when running phpinfo until I edited the master file. Local and global values always show 3 Is there another place this change should be?
Hello Chuck, Are you using PHP-FPM for your accounts? Thank you.0 -
It is installed in EasyApache for my PHP7.0 0 -
Doing some more searching around, it looks like it is related to your internal case CPANEL-11563 0 -
Hello @carock, With PHP-FPM, you will need to modify the PHP configuration values manually. Here's a post with information on how to do that globally for each account using PHP-FPM: Thank you. 0
Please sign in to leave a comment.
Comments
6 comments