Web Hosting Talk







View Full Version : How to configure .html to support PHP


andrewfayor
03-19-2002, 11:26 PM
Hi there,

I used RaQ4 as my dedicated server. I would like to know how to configure .html to support PHP?

And how to upgrade PHP version in Cobalt without trouble?

Thank you

ben
03-19-2002, 11:45 PM
Originally posted by andrewfayor
Hi there,

I used RaQ4 as my dedicated server. I would like to know how to configure .html to support PHP?

Just make .htaccess and put
AddType application/x-httpd-php .html
inside ;)

Haze
03-19-2002, 11:49 PM
I did this for a client not to long ago. What I did was in a .htaccess document I added this:

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

It worked like a charm for him.

As for your PHP question, I usually compile from source, but if thats not your piece of cake, there is a .pkg over at http://www.pkgmaster.com you can install. I haven't used it myself, so I don't know how reliable it is. Normally there Pkg's are quite stable from my past experience.