-
GoDaddy and php
I need the MIME type or Apache handler for the htaccess to have php parsed as html on a GoDaddy Wiindows server.
I have tried, with no success:
AddHandler application/x-httpd-php .html
AddHandler application/x-httpd-php5 .php .php4 .php3 .phtml
AddHandler application/x-httpd-php .htm
and
AddType application/x-httpd-php .html .htm
Addhandler application/x-httpd-php .html .htm
I found the answer a few months ago through Google Search, but can't seem to locate it again.
It's not the answer that is within GoDaddy Support, this applies to their Linux servers.
Any suggestions are appreciated!
-
You need to ask GoDaddy technicians to add the following application extensions in IIS -> Web Sites -> yourdomain.com -> Properties -> Home Directory -> Configuration -> Mappings
.html (extension) C:\PHP\php.exe (execution path)
If they have PHP installed in another folder, they should specify the path to php.exe in Execution Path field.
-
Thank you Sergey! Do you have any other suggestions?
I am just doing some web design for them and would like to use the php includes... not to keen on contacting the client to have them contact GoDaddy. :)
-
Unfortunately there is no another way to enable php parser for html pages on the Windows server except the way I described in my last response.
-
Thank you so much Sergey! I do appreciate your responses!