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?

Login to comment.

Your Opinion Matters

... but we need to know what you're thinking!

I'm Christi Nickerson, your friendly Community Support technician, and I wrote the article you're looking at now. I like to think it's perfect, but I'm sure you have some suggestions. Please, let me know what they are!

Feedback
Your Email Address
Because we'd like to talk with you!

Have a Question?

If you need some help, submit your question to our Community! We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)

Recent Questions

  1. Site under brute force attack
  2. URLs in Installation of WordPress Don't Redirect
  3. Choosing a Directory With WordPress

Support 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.