[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/

Steve,
Your are a hero! - it never occured to me that was what it could have been,
when it said in the manual make an HTML page I just assumed it needed to be
called .html ........... oh well I got a lot more of the manual read than I
was expecting yesterday! :-)

Thanks again,

Phil


http://www.diygear.com THE Online DIY Toolstore For DIY & Business
Infolink Electronic Systems Ltd. Suppliers of:- PC based Computer Systems,
Peripheral & Hardware, Plus Web Design & Cobalt Raq4 Hosting Solutions
Contact the Sales desk at  infolink@xxxxxxxxxxxxxxx or Tel 0121 458 4894
(office) 0121 441 3558 (home)