- 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.
- First step will be to login to your server via SSH as the root user
- 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 - With the above running in a command line window, go ahead and refresh the site/page giving you the error message
- 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].