Http error 500

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.

Getting the real error message

To help fix this, you’ll first want to enable error messages on your website. You can enable PHP error messages from the control panel:

  1. Login to your control panel.
  2. Go to Alter PHP Config.
  3. Select the domain name you are trying to debug and click Alter PHP Directives.
  4. Set “Display Errors” to “On” and click the Alter PHP Directives to save.

If you refresh the page, you should hopefully see an error message.

If don’t see an error message, this is likely caused by your script suppressing or capturing error messages from PHP.

The first thing to try is to see if your software has a debug mode option, log file or other setting which can be used to get the error message.

For example, WordPress has a setting WP_DEBUG which can be used to show the actual error message. You can learn more about that option in the WordPress knowledge base: https://wordpress.org/support/article/debugging-in-wordpress/

If your software doesn’t have any way to see the PHP errors, it is likely that error message suppression was hard-coded into the application. If you check the PHP code, you will probably see lines like these:

ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);
error_reporting(0);

Commenting out lines like these should enable the PHP error messages.

If this still doesn’t allow you to see any error messages, please contact the script developers for help.

Fixing the real error

If you’ve completed the steps above and have an actual error message, the next step is to fix it.

Unfortunately, there is no standard process to follow to fix such errors.

A good place to start would be to take a good look at the path of the file where the error occurs. Does it refer to a specific plugin or theme? If so, you can try to disable that plugin or theme and see if that removed the error. Reinstalling or upgrading the plugin, script or theme might help too.

Another good step is to search the web for your error message, in combination with the script, plugin or theme which is generating this error message. Maybe there are other people who’ve had the same error, and have already found and described a solution.

If you’re unable to find anything, you can ask a question somewhere about the error. You could check the support channel of the plugin or theme causing the issue, ask your question on a general programming forum like StackOverflow, or ask it on the InfinityFree forum in the Hosting Support category.

Fixing invalid .htaccess rules

If your .htaccess file has an error, this may cause a HTTP ERROR 500 too. Unfortunately, there is no way to get an actual error message in this case.

However, you can remove or rename your .htaccess file (to .htaccess.backup, for example) and refresh the page. If you don’t see the HTTP ERROR 500 anymore, that likely means there was an error in the .htaccess file.

The simplest way to try to fix this is to download a fresh copy of the .htaccess file of your software and use it to replace your current .htaccess file. Doing so hopefully removes any broken lines.

If that’s not an option, you can restore your .htaccess file, and try to figure out which line or lines are causing the issue.

A fairly efficient way to do so is by doing a “binary search”. This means you first comment out about half of the lines in the .htaccess file and see if you still get the error. For example, if you comment out the bottom half and your website works, but you comment out the top half (and uncomment the bottom half) and your website breaks, you know that the bottom half of the code contains the broken line. You can then repeat this by commenting out a quarter of the code, or half of the broken half, to narrow down the error even further. You can repeat these steps until you’ve narrowed it down to a small block or even an individual line of code.

You can then attempt to remove or fix the broken lines specifically. If you’re not sure how, you can ask a question somewhere about the error. You could check the support channel of the plugin or theme causing the issue, ask your question on a general programming forum like StackOverflow, or ask it on our forum in the Hosting Support category.

Server error (500 error)
Redirected to InfinityFree 500 error page
Can’t load my website
Ошибка 500
My site is down
Site loading slow + problems with File Manager
A subdomain is down
This page is not working
Htacess 500 error
HTTP 500 Error (PHP)
White screen of death
Error 500 Portuguese Language
Http error 500
This page is not working
Why this website appears with the error 500?
Htacess 500 error
Blocked by CORS policy:
403 error when accessing wp-admin
Htacess 500 error
Htacess 500 error
Http problem
Can't upload data inot DB with PHP
Http problem
Http problem
Uploading WordPress
Error entering the site
Error 500
Page does not respond This page isn’t working right now HTTP ERROR 500
Getting 500 http error
Redirection of site for OVH domain
Unable to install thirty bees through Softaculous
Learnerschool.rf.gd is currently unable to handle this request - Error 500
500 Error for no reason
Unable to install thirty bees through Softaculous
Page works on localhost but not on Infinityfree
Not online
Can't access site after manually updating WordPress
Can't access CPanel
Putting my site in PHP is a real problem for me
My website with custom domain still not see after 2days
Down Time
Website not working after 72hours
Error 2002
I cant install moodle
I can't log in to the control panel
Question marks instead of letters
Website Not Working
My site doesn`t load
502 Bad Gateway error on website
Ajax jquery error code 500
Problem with PHPMailer, error 500
Accidently refreshed the page during WP update
Connection refused
Site issue
500 Internal Error and showing directory only
My website isn't working
Ошибка 500
Ошибка 500
Website is not showing (only the default Epizy.com is shown)
I have installed "wallabag" on infinityfree but it showing error "500 Internal Server Error"
Error 500 when click publish after input html code
Set up a new domain
404 unknow eror
Website appearing blank
500 Internal Server Error
My ci website cannot on browser
Http://suspendeddomain.org/
HTTP server error 500
I want to clear my cache on my site
Some pages aren't loading
Error 500
I cannot access my website
Http error 500
My new website not openning on browser
All web pages return http 500 not sure why
I can see my web site
Http error 500
Http error 500
This page is down move-it.epizy.com is unable to process this request at this time. Http error 500
How to connect database
Laravel application deployment on Infinity free
Install wp by duplicator
My website is having many server error responses
Error 403 Forbidden - Invalid signature
The screen stays white
Trying to load ixed.7.4.lin
My website is offline
The screen stays white
Why am I getting a blank page?
404 error
Http Error 500
PhPmailer is not working, but there are no errors
I can't upload image that is 2.9Mb for my new post
Laravel website not working
Server error (500 error)
550 Can't create directory: Disk quota exceeded