How to investigate and fix HTTP 500 error (internal server error)?
HTTP 500 errors or internal server errors often result from a problem within the .htaccess file or a missing PHP plugin.
In this article, we will go through steps that need to be taken to fix these problems.
Before anything, we need to find out the underlying error behind the generic 500 error.
cPanel and WordPress maintain their log files in 2 separate locations. Let's first check the cPanel log files.
- Login to the cPanel of the domain (not WHM) following this videos instruction: How to login to cPanel account via WHM?
- Then in cPanel click on the "errors" item to check your error logs.
- If the above page is empty or there is no recent errors, we will now have to check the WordPress error file:
- Following the above steps, we are already inside the cPanel account. Click on "File manager" item.
- Go to the www directory or public_html.
- You should be able to locate the error.log file there.
- Download that file and check it for errors.
- If none of the above helped, rename your .htaccess file to .htaccess.bk and see if you can access your website.
- If none of these helps, please open a ticket and provide as much context as possible. We will promptly help you with the issue.