cPanel HTTP Error Log

You may encounter a problem with your site not loading correctly - giving a blank page, showing a 500 error, etc. This is due to an issue with
  • PHP Module
  • Apache Module
  • Web Server Issue

Linux provides logging for these services to help with troubleshooting. The location of the log files are:

  • /usr/local/apache/logs/error_log
  • /home/<cpanel_account_name>/public_html/error_log

We can monitor these logs while refreshing the site/page to check what error it is throwing, helping us find the error and implement the required fix.

  1. First step will be to login to your server via SSH as the root user
  2. Run the following command on either log, or both:

    tailf /usr/local/apache/logs/error_log
    tailf /home/<cpanel_account_name>/public_html/error_log

  3. With the above running in a command line window, go ahead and refresh the site/page giving you the error message
  4. Once you refresh, you'll see the log file have the error message appended to the log file (in your SSH instance). This error message is what you'll use to diagnose the error you're getting. Some example errors are below
  • Permission Issue: [Mon Apr 21 11:28:14.971844 2014] [core:error] [pid 1385:tid 140067725104896] (13)Permission denied: [client 127.0.0.1:46603] AH00035: access to /movies/ denied (filesystem path '/home/username/Videos') because search permissions are missing on a component of the path
  • Out of Memory: [Wed Oct 24 11:26:31 2012] [error] [client xxx] PHP Fatal error: Out of memory (allocated 28049408) (tried to allocate 201335 bytes) in xxx on line 2139, referer: xxx

With the above information, you should now be able to diagnose the issue your webserver is having so you can implement a fix. If you're unsure on how to fix it, please don't hesitate to contact our support team at [email protected].

  • 27 istifadəçi bunu faydalı hesab edir
Bu cavab sizə kömək etdi?

Uyğun məqalələr

Adding Additional Modules to PHP via WHM

Additional modules can be added to PHP via the WHM control panel. Below are instructions on how...

Video Tutorial: Create Hosting Account in WHM

Please do not hesitate to contact us if you need any further assistance.

cPanel: How to Clear Brute Force Logs via SSH

Login into your VPS via SSH and enter: echo "delete from brutes; delete from logins;" | mysql...

Video Tutorial: Managing DNS Zones in WHM

Please do not hesitate to contact us if you need any further assistance.

Video Tutorial: What is the difference between WebHost Manager (WHM) and cPanel

Please do not hesitate to contact us if you need any further assistance.