error_log created in public_html - how to prevent?

IIIBradIII

Member
Apr 13, 2003
21
0
151
We recently moved our sites to a new server (both old and new servers running cpanel though) and now each site is having its errors logged to a error_log file in the document root instead of just to the standard error log that we're accustomed to checking in Cpanel.

How do we make sure errors are only logged so that we can view them in cpanel and prevent that error_log file from being created and used?
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
We recently moved our sites to a new server (both old and new servers running cpanel though) and now each site is having its errors logged to a error_log file in the document root instead of just to the standard error log that we're accustomed to checking in Cpanel.

How do we make sure errors are only logged so that we can view them in cpanel and prevent that error_log file from being created and used?
php errors will still be logged to the cpanel error log though, correct?
Errors logged by Apache will be available in cPanel.

Unless disabling PHP error logging is intended I would not advise this; the best solution in my opinion is to correct the problem that triggered the error.