Creating a PHP Error LogWritten by Tim Sisson
PHP, has a solution to log all of your errors to a specific log file. It's simple, as you just have to add a line of code to your php.ini file. For this example we'll create a log file in the root directory: /home/username/phperror.log (dont forget to replace the username in the file path with your actual cPanel username):
error_log = /home/username/phperror.log
For detail detailed information on this, see the article on Display and log errors for PHP.
If you would like more information on working with your php.ini file, please review the following article:
You will also need to write a basic PHP script to generate and update the log file. For more information on sending PHP errors to a log file please review the following link:
If you are looking for the general error log for your cPanel account. you can find it within cPanel itself. On the cPanel home screen, click on the "Error Log" icon.