Mobile app version of vmapp.org
Login or Join
Debbie626

: Internal Server Error 500 .htaccess For years, I have been using the following .htaccess for PHP to execute within HTML on Apache at GoDaddy: AddHandler fcgid-script .html FCGIWrapper /usr/local/cpanel/cgi-sys/php5

@Debbie626

Posted in: #Apache #Godaddy #Htaccess #Html #Php

For years, I have been using the following .htaccess for PHP to execute within HTML on Apache at GoDaddy:

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


A few days ago, only one of many websites at GoDaddy using this .htaccess started displaying Internal Server Error 500.

I then removed these two lines above from the .htaccess and replaced them with:

AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml .htm .html


Everything then went back to normal.

What would cause this issue to arise? Why did I have to make this change for the website to go back to normal? What setting may have been changed by GoDaddy? Or is there a setting in cPanel the customer may have changed to create this issue?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Debbie626

1 Comments

Sorted by latest first Latest Oldest Best

 

@Alves908

This looks like there has been a change in the way PHP is being run on the server. Either because the host has updated/migrated the server or because of a user configuration change. Some hosts allow the user to change the version of PHP being run via an option in cPanel.

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


This indicates that PHP is being processed using the FastCGI protocol (mod_fcgid)

AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml .htm .html


This suggests to me that PHP might now be being run as an Apache module. Although that is not a given, I have seen this suggested for both configurations. However, this is the config setting I need to use on my development server, which runs PHP as an Apache module.

Run phpinfo() on the server(s) to check/compare the PHP version and server API being used.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme