Admin
July 9, 2022, 11:31am
18
HTTP ERROR 500 means the server is able to handle PHP files, but that the PHP code you’ve supplied is crashing. Please see this article for more information:
When trying to access your website, you may see a page which returns the status code “500”. In Google Chrome, you’ll see a page with the error code HTTP ERROR 500.
There are typically two reasons which can cause this error:
The PHP code has crashed.
The .htaccess file contains invalid rules.
Here are some things you can try to debug and fix this.
Fixing crashing PHP code
A HTTP ERROR 500 simply tells you that the PHP code has crashed, but gives no information as to why it has crashed.
Gett…
If you’re having trouble enabling errors through the control panel, you can also do it by hand by adding a line php_flag display_errors 1
to the .htaccess file of your website.
.htaccess rules are a powerful way to control how your website behaves. It can be used to set pretty URLs, define error pages, restrict access and more. There are plenty of guides available to teach you everything that can be done with .htaccess.
This article can’t explain everything you can do with .htaccess rules, but it does explain how you can add them.
Create the .htaccess file in your htdocs directory
Every domain name on your account has a htdocs directory. Your first domain is attached…
6 Likes