Skip to main content

Internal Server Error 500 + Apache + GoDaddy + .htaccess

A customer website hosted at GoDaddy suddenly started displaying the message: "Internal Server Error 500."  I quickly determined the problem was with the .htaccess file.  I knew this file had been unchanged for quite some time and it was clear to me the problem was with how Apache on that specific GoDaddy server was processing the .htaccess file.  I noticed that other customer websites on other servers at GoDaddy using the same .htaccess file continued to operate normally.  The only lines in the .htaccess file were the following:

AddHandler fcgid-script .html
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .html

I replaced it with this:
AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml .htm .html

The Internal Server Error is no longer present and PHP functionality has returned to HTML files.  However, days later, the problem recurred.

GoDaddy was unable to identify the source of the issue on their Server.  Therefore, the solution was to reset the hosting for that domain which blanks out the website and obtains a new virtual hosting account on a different Server.

Steps to reset hosting for a specific domain:
  1. Make a complete backup of all files/data associated with your website including MySQL or any other product associated with your website.

  2. Open cPanel and make note of your present Web Hosting IP Address in the upper left.

  3. Click My Account.

  4. Click Manage Your Hosting.

  5. Click Settings.

  6. Click Reset Account. 

  7. Confirm the warning on screen understanding this process deletes all files related to your website.  So you will have to upload your files back to your website after the website has been reset.  If you are using MySQL or another product, you will have to import your database and reconnect PHP to MySQL, etc.

  8. Click My Account.

  9. Click Web Hosting.

  10. Click Manage and setup the domain again.  The cPanel username and password that you define here is also your FTP username and password.

  11. Open cPanel and confirm the IP Address is now a different IP Address.

  12. FTP your files back to your web hosting account.

  13. If you are using MySQL, setup MySQL and import your database. 

  14. If needed, connect PHP code to MySQL.
 This issue has been resolved.

Comments

Popular posts from this blog

Access Denied (policy_denied). Your system policy has denied access to the requested URL. For assistance, contact your network support team.

While browsing the internet, you may encounter the message: "Access Denied (policy_denied).  Your system policy has denied access to the requested URL.  For assistance, contact your network support team."   This message indicates the internet traffic is being filtered.  The most common source of an internet traffic filter is in corporate environments that use a proxy server or a firewall appliance designed to filter web traffic.  Some businesses are configured as satellite locations using a VPN tunnel.  In these configurations, the VPN may be configured to filter internet traffic.  In rare instances, the Internet Service Provider is filtering internet traffic.  Typically though, your IT Department or a Network Management Team has configured your internet traffic to be filtered.  Isolating Source of Web Filtering In an environment that is unmanaged and the source of the filtering is unknown, following are some steps you may wish to peform: Th...

How do you stop an unstoppable Windows Service?

You may encounter a Windows Service in Services that has the buttons for Start, Stop, Pause and Resume greyed out.  If you attempt to stop the Service using sc stop [servicename], you encounter the error message: "The requested control is not valid for this service."  To resolve this issue, please perform the following steps: Click Start - Control Panel - Administrative Tools - Services. Double-click the relevant Service. Change the Service Start-Up Type to Disabled. Click Apply. Click OK. Hit CTRL-ALT-DEL on your keyboard. Select Task Manger. Perform an End Task on the relevant Service. This issue has been resolved. http://www.smartnetadmin.com

The L2TP connection attempt failed because the security layer encountered a processing error during initial negotiations with the remote computer.

You may encounter the following error message when using the L2TP/IPSec VPN Client that is native to the Windows Operating System: "The L2TP connection attempt failed because the security layer encountered a processing error during initial negotiations with the remote computer."  This error message typically occurs when you are using the wrong Pre-Shared Key for your L2TP VPN.  This error message can occur when other components of your configuration are incorrect but the first thing to confirm is that you are using the correct Pre-Shared Key. If you are using the wrong Pre-Shared Key, the L2TP VPN connection will say Connecting for a long period of time and then display the error message: "The L2TP connection attempt failed because the security layer encountered a processing error during initial negotiations with the remote computer." If you are using the wrong username or password, the L2TP VPN will immediately respond with: "The remote connection was denied b...