[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Activating PHP on a virtual site.



"Phil Beynon" <Infolink@xxxxxxxxxxxxxxx> wrote:
<snip>
> Made up a little page with the test thingy from the PHP manual
</snip>

Phil, your PHP script has a .html file extension.  Apache doesn't know you
want .html files parsed as PHP.  Either rename the file with an extension of
.php or within srm.conf or the site's VirtualHost container in httpd.conf
add the following:

AddType application/x-httpd-php4 .html

Then restart Apache to load the changes.  That will allow your .html file to
be parsed as PHP.  FYI, if you look at the source code from the URL you
sent, you'll see the PHP code there, unparsed.

HTH,

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/