PHP offers  a solution to log all errors to a log file.

Just add the following line to your php.ini file to log errors to a specified file, in this example /home/username/phperror.log (replace username in the file path with your cpanel username):

error_log = /home/username/phperror.log

For more information on working with your php.ini file, please see our article: How do I Update my Local PHP Settings?

You will also need to write your php script to generate and update that log file. More information on sending PHP errors to the log can be found here:

http://www.php.net/manual/en/function.error-log.php

If you're looking for a general error log for your site(s), you can find that within cPanel. On the cPanel Home Screen click on the Error Log Icon to bring up the error log for the account:

cpanel-error-log

How do I Update my Local PHP Settings?

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

News / Announcements

Information for customers experiencing 500 errors
2014-07-28 08:56 am EST
Hits: 542

Related Questions

Here are a few questions related to this article that our customers have asked:
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.