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...

Event ID: 7001 - Source: VSS - Unable to create a shadow copy

When using Microsoft Windows Server, you may encounter the error message: "Unable to create a shadow copy."  In the Event Viewer, you may find the following Event: "Event ID: 7001 - Source: VSS - Unable to create a shadow copy."  This event involves the Volume Shadow Copy Service (VSS).  Most likely the Server was rebooted while creating a Shadow Copy.  Many websites describe deleting or renaming the C:\WINDOWS\SYSTEM32\WBEM directory used by Windows Management Instrumentation to resolve this issue.  This is not correct.  Following are the steps to resolve this issue: Double-click My Computer. Right-mouse click the Hard Drive causing the problem. Click the Shadow Copies tab. Select the appropriate Volume. Click Disable. Click OK. Click Start - Control Panel - Administrative Tools - Scheduled Tasks. Delete all tasks related to the Volume Shadow Copy Service. Reboot the Server. Double-click My Computer. Right-mouse click the Hard Drive causing the problem. Cl...

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