"Last 300 Error Log" page blank

Onklmaps

Member
Nov 9, 2016
16
1
3
Norway
cPanel Access Level
DataCenter Provider
For all my cpanel accounts on my server the "last 300 errors" page is blank:
I have standard theme.

When i hover over the last 300 errors in cpanel i get a "disabled" icon on the mouse pointer.

I created a new blank account and run the domain.com/hitheregkg.html test. No result.
Nothing about hitheregkg.html in/usr/local/apache/logs/error_log.

Can you help me find a sollution?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

404 errors are not logged to the Apache error log by default. You can change the "LogLevel" parameter via "WHM >> Service Configuration >> Apache Configuration >> Global Configuration" to "Info" if you want the 404 errors to appear in the error logs.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

Are you sure you have generated new errors on the website that are not 404 errors? Keep in mind that once logs are processed for an account through cpanellogd, the recent errors will no longer appear under the "Errors" option in cPanel.

Thank you.
 

Onklmaps

Member
Nov 9, 2016
16
1
3
Norway
cPanel Access Level
DataCenter Provider
Anyway, i made a clean account and made a single php file with:
<?php require('nonexisting.php'); ?>
nonexisting.php does not exist so I got an 500 error.
This produced an error_log in my public_html.

However, nothing was logged in the "Last 300 errors" in cPanel interface. Should'nt it?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
I'm pretty sure someone of my sites has produced errors. However, is there a way I can produce an error to be 100% sure? Would any php script with a syntax error do?
Hello,

PHP error messages are not logged to the Apache error log. You could password protect a directory using the "Directory Privacy" option in cPanel and then attempt to access a file in that directory without authenticating to reproduce a "403" error code.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Could you change the "LogLevel" parameter to "Info" via "WHM >> Service Configuration >> Apache Configuration >> Global Configuration" and let us know if that provides the logging details you are expecting?

Thank you.