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
Cpanel provides logging for these services to help with troubleshooting. The location of the log files are:
- /public_html/error_log
- /domain_directory/error_log
You 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 cpanel and find your error_log file .
- Before opening the file, refresh your site a couple times to trigger the error and have it write to the error_log file.
- Once you refresh, you'll see the log file have the error message appended to the error_log file . 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 2018] [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 2018] [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 and implement a fix. If you're unsure on how to fix it, please don't hesitate to contact our support team.