500 Internal Server Error

Discussion about BCA's Internet Hosting Service
User avatar
David Gibson
Posts: 601
Joined: Thu 16 Mar 2006 23:45

500 Internal Server Error

Post by David Gibson » Sat 01 Sep 2018 10:20

If anyone's web site has suddenly started reporting "500 internal server error" this may be due to an upgrade at Apache. Check your error log, via control Panel / Metrics, and you may likely find that your server is reporting an error in your .htaccess file. A strong candidate for this error is that you have a comment character (#) that is not at the start of a line. Comments MUST have a # at the start of a line, otherwise they run the risk of being interpreted as arguments for commands (for which # might be a valid argument). This has always been the case, but it seems that Apache has tightened up somewhere, or possibly changed the spec for a particular command, thus causing existing .htaccess scripts to fail.