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.

6 Likes
Server error (500 error)
Redirected to InfinityFree 500 error page
Can’t load my website
Ошибка 500
550 Can't create directory: Disk quota exceeded
Error 500 occurs
Why can't it load? please help
Curl is not working
Web Hosting! - mod_rewrite
Part of my website is blank
Web Hosting! - mod_rewrite
So I get 403 Access denied
Webapplication does not start
Webapplication does not start
Htt¨p 500
Main
My website doesn't show up
Http error 500
Hosting
Domain Name Stopped Working
Can't access to my website
Error 500
Page dont start
Connection problem with MYSQL
Why my website not working
I can't access my website, error 500
My website is not working
My Website only shows blank page
My web page is partially loading
Showing An error occurred: SyntaxError: Unexpected end of JSON inputbut its ok when run in localhost
This page isn’t workingnuus.42web.io is currently unable to handle this request. HTTP ERROR 500
Some Php Configuration
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Subdomain not working
Some Php Configuration
SQLSTATE[HY000] [2002] No such file or directory
My website dont works
You can't access to a certain page
Error 500 Using Mybb plugins
How to create a login and sign in
Error 500 Help mee
SQL -> JSON -> HTML not displaying on InfinityFree
InfinityFree Blank Page On Website Load, Wordpress
New domain redirects to 404
500 server issues http
How to restore my web?
Can't create a php file
I can no longer reach my wp-admin login page
Laravel 500 Error and Display Error Issue
Probleme when trying to connect to FTP with FileZilla
500 Server error
Site is not working
pH7Builder through Softaculous does not work
You can't access to a certain page
Internal server error
Laravel 10 Support
Error when going to site with Vanilla installed
White screen trying to use PHPMailer
My web page not working-error 500
Error 500
404 error
Site down, IP not reachable
I'm Getting and Error when trying to view my custom website
SLiMS software not working
Error 500 after quick installation of prestashop 1.6
My website is blank whenever I try to access it
CSS styling and structure error
Index.php
I can't see my website errors
Install TNG
Elementor pro not works
Blank Site!
MySQL Host Address Not Working
Server Error 500
Website not run
My other webpages in not working
Create new dbuser
Error when trying to login into my hosted site
Internal Server Error
Welcome page
WebERP install
How do I change a file permission in the File Manager
Error 500 on fully PHP pages
My site doesn't work well
Error 5000 when connecting database with .php file
Error 500
apache
Website migration
Error 500 idk why
500 Internal Server Error
Form's script can't conect to database
Installing phpbb error 404
Error 500 when visiting website
When uploading my website with php and mysql and jquery
500
Error when entering my website
Oxwall Site 500 Error
Website not active even though the account is active
Is wrong with you
Htaccess and index
No such host is known
Htaccess and index
XMLHttpRequest blocked by CORS
My entire epizy website disapeared
My entire epizy website disapeared
Http error 500
Htaccess and index
Http error 500
Error 500
Unexpected character at line 1 column 1 of the JSON data
Website
Connect with my physical server
My website is not working
Website
Help with social network?
Is zen cart supported on free hosting?
Deploy my Symfony App
http://dreamgallery.rf.gd/dreambase/
My website sometimes shows up and sometimes it's blank
My website sometimes shows up and sometimes it's blank
Http error 500
Help me please
Help with social network?
Intl
XMLHttpRequest error with 500 (Internal Server Error) code
Hey people Im going try to renovate my website using php/mysql scripts
The server returned a "500 Internal Server Error"
The following errors were found : Could not write the Configuration File update_pass.php Could not
White screen error
Set up a new domain
Very new need a lot of help
White screen error
How to use PHPmailer in InfinityFree
HTTP server error 500
Error 500
Can not view my php web app i just uploaded on infinity free
This page isn’t working
White Screen
Issues when testing mysql database
Http error 500
Webapplication does not start
500 Internal Server Error
My website cant be reached!
Are there any impediments to free accounts from installing OSClass?
I keep getting this error on my website, please help
JS Button
Php file keeps returning as html text
SIte Not Working
How can i solve 500 error?
404 error
Suddenly and without having changed anything, website went blank!
HTTP Error 500
My website reload but stuck
My website reload but stuck
Causes PHP error after using the plugin
Error 500
Inaccessible website
Fail to upload image with php
Blank Website?
Hi
Problems with Astra-InfinityFree-Wordpress
Site down after PHP 8.2 and MariaDB 10.4 upgrades
My website displays HTTP Error 500
Blank white page - Console shows 500 error
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)
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 500
My website showing http error 500 and not removing on refresh
Page does not respond This page isn’t working right now HTTP ERROR 500
Getting 500 http error
500
Redirection of site for OVH domain
Unable to install thirty bees through Softaculous
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
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
Error entering the site
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
My website isn't working
Problem with displaying PHP websites
Ошибка 500
Ошибка 500
HTTP ERROR 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"
Form data submission problem
Question About PHP mkdir
Error 500 when click publish after input html code
Error 500 problem
My website is offline
Http error 500
Http 500
My Website Gives Error 500 and I Can’t Even Access My Files
500 Internal Error and showing directory only
Putting my site in PHP is a real problem for me
Learnerschool.rf.gd is currently unable to handle this request - Error 500
Error 500
404 unknow eror
Website appearing blank
500 Internal Server Error
My ci website cannot on browser
Http://suspendeddomain.org/
I want to clear my cache on my site
Error 500
Some pages aren't loading
Error 500
I cannot access my website
Http error 500
My new website not openning on browser
Index.php problem
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
The screen stays white
Why am I getting a blank page?
Http Error 500
Web is not loaded. index file and some more
My website does not work
My website isn't working - laravel project
Laravel
Domain Pointing
Domain Pointing
Domain Pointing
Web load laravel http 500 error
Http Error 500
500 error - PHP upgrade
Why has my site stopped working?
Please let me know if server/websites restored because mine is not
Failed to send data from php code via AJAX and JSON response does not come
Failed to send data from php code via AJAX and JSON response does not come
My site
HTTP 500 Error
Destination Host Unreachable
403 Forbidden
Failed to send data from php code via AJAX and JSON response does not come
500 server error -- Sitebuilder?
Site Down
File PDF
Page not working but not showing any error
Problems
500 Error, please check your php script / enable display_errors in your cpanel
Error
Destination Host Unreachable
500 internal server error
Problem with Mautic installation
Http error 500
Err_connection_timeout
Domain not working properly
Can't ftp to ftpupload.net and can't hit my sites anymore
Uploading my website but it doesn't work - suddenly disappears
Fullcalendar on infinity
Why website is not opening, is this PHP version issue?
Why website is not opening, is this PHP version issue?
20000 forum users - Awesome Special Event!
The site is not working HTTP ERROR 500
can't currently handle this request.
My CNAME is not working
Ferrorterurls.rf.gd
Softaculous "SquirrelMail"
It won't let me do anything
Database and files issue
Getting 500 internal server error
My website doesn’t work
My Website is Blank
My Website is Blank
Featured image
Error 500
Http error 500(kundutalentagency.co.in is currently unable to handle this request)
Change format from index.html to index.php but got HTTP 500 error
PHP update broken site
Website down 500 error all of a sudden
Cannot see errors in Codeigniter project
Http://bkchart2.epizy.com/index.php
Getting 502 bad gateway error
Whenever I upload my .htaccess file my site shows "please enable show errors"
Website down
How to remove preview "Great-Site.Net"
I deleted the admin folder
Php8 version?
My redirect/routing via .htaccess not working
Login ang register says error
500 error
Dompdf
Error 500
Why Are All My Sites So Slow?
Changing htdocs folder gone wrong
Web is down
403 Forbidden
HTTP 500 error
Phpmyadmin error 500
SSL issue
Softaculous drupal HTTP ERROR 500
Installation of PHP based community site called Nova
Why php curl is closed why it won't open
Website returning 500 Error
Website with http error 500
Error 500
Uploaded files,but they dont show
PHP error
My website php pages are not loading
A Full Guide To Cloudflare
My website shows an HTTP Error 500
Site is showing 404 page
Can I connect to Remote Mysql DB hosted on external hosting service?
Getting a ERR_NAME_NOT_RESOLVED on my website
500 Error
Error 500
404 error
NamelessMC Database initialization error
Entire website is blank
Wanted to install phpbb. Error 500
Wanted to install phpbb. Error 500
This page isn’t working HTTP ERROR 500
I get HTTP ERROR 500 error
Http error 500
Unable to access hosted site, unable to find URL
Php
72 hours complete but still website is not live showing error 500
Could not connect to the database
Could not connect to the database
My website is not working
500 Error without reason
My website is not accessible after 4 days
Why my website showing this?
MySQL cannot do CRUD functions via REST API
Error 500 when i try to post on my database
PHP system down on my site
HTTP Error 500
"Parked" domain not working
500 internal server error
500 internal server error
500 Internal Server Error
Incorrect NS Records Served by nsX.byet.org for doai.id.vn (WHOIS Correct)
HTTP error 500 on one of my websites
Internal Server Error code 500 on my website
Error 500
Php Mailer Problem idk if php mailer was working here
500 internal server Error
This bad site is restricting my login
Http 500
Http 500
Error code: 500 Internal Server Error Pls Help
Website is not loading .php files
File uploads on File Manager
Page isn't working
I have successfully migrated my WordPress site, but nothing is displayed
Suspended domain
Error
The data base was deleted by mistake
Css and images not loading
Http error 500
Internal Server Error
Subject: Urgent Assistance Needed: Persistent 500 HTTP Error on My Website
[Help] Site Down After “Alter PHP Directives” — Showing .htaccess Error
WordPress Media Uploads Stuck on Loading Bar (Files <1MB) - Need Help
Hosting
My domain active but i can't access my website
HTTP ERROR 500 what can i do?
Https://roster.wuaze.com/director/view_student_roster.php This page isn’t working roster.wuaze.com i
Root directory reading issues
Access Denied Error for MySQL User
Moving files to wrong a wrong folder
Cannot Access Admin Dashboard - Server Crash on Login (stardoctornode.great-site.net)
Https://pusanggala.site/
Can some Check my Site?
Having trouble getting Laravel to work
500 Internal Server Error & Debug Log Not Being Created
Index.php
HTTP Error 500 after I clicked Login on my login page
Error 500 if i install Kuked Klan in Softaculous
Site Lacking Index.html,Index.php file
React+php hosting
Website not loading with no errors
Account suspended why?
Media Wiki Softaculous Installing Error
Site has HTTP 500 error
403 Forbidden error
How to upload vendor folder in laravel
My database is not responding or displaying queries through Forms
I Want to host my larvel
Error has been fixed
Http error 500
I'm getting HTTPS 500 error when I try to upload photos (Error :"No JPEG support in this PHP build")
Error with a project
Error 500
How can i solve http error500
My DB is allright? DB connection is good?
Problem Loading the website with error 403 forbidden
Why my website is not loading?
My Site is offline but everything looks ok in my account
Error 500
Hanif.rf.gd is currently unable to handle this request. HTTP ERROR 500
Http error 500
500 ( Internal Server Error)
Website Being Blank
I get the following error
Error 500
Suspended Domain stillherco.xo.je - Need Backup for Migration
Www.baclive.page.gd
I'm unable to access my site
My website doesn't work!
Why codeigniter4-framework-v4.6.4-0-ge4d3702 give error
Error load page HTTP ERROR 500
MySQL Database Problem
HTTP 500 Error
MyBB installer fails with 500 Internal Server Error on database step
Access to vendor folder
Access to vendor folder
Can't see the login form of website with mysql
My website is down
HTTP ERROR 500
I have been waiting for DNS caching since 6 days
Problemas de activación de Moodle

A post was split to a new topic: My website displays HTTP Error 500