R: [PHP-INST] php4 and apache doesn't work together
| From: | Roberto Sartor | Date: | Wed, 27 Sep 2000 15:39:44 +0000 |
| Subject: | R: [PHP-INST] php4 and apache doesn't work together | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-57@lists.php.net to get a copy of this message | ||
Nothing wrong, simply PHP doesn't parse .htm because it doesn't know (and
perhaps useless).
It'd be better change extesion from .htm to .phtm or .phtml, and change your
httpd.conf so:
<IfModule mod_php4.c>
AddType application/x-httpd-php .php .phtm .phtml
</IfModule>
Ciao
Roberto
> -----Messaggio originale-----
> Da: Bauhaus [mailto:bauhaus@sitech.pl]
> Inviato: mercoledě 27 settembre 2000 15.58
> A: php-install@lists.php.net
> Oggetto: [PHP-INST] php4 and apache doesn't work together
>
>
> Hi everybody,
> I am rookie in Linux so I have a problem.
> I've installed php4 and apache server according to what was
> described in a
> documentation for php4 (installation for linux as an apache
> module, example
> 2-1). The apache server is working. Php too, but not exactly together.
> I 've preapared a file "test.php" with <?phpinfo()?> statement.
> Writing an address: my.domain/test.php gives me a php4 info
> page. This is
> O.K.
> Next, I've preapared a file "test.html":
> <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
> <html>
> <head>
> <title>test PHP</title>
> </head>
> <body>
> Test page
> <script language="php">
> echo ("Hi, I'm a PHP script!");
> </script>
> </body>
> </html>
> Writing: my.domain/test.html gives: Test page. And only this.
> Not even a
> track of: Hi, I'm a PHP script!
> What went wrong? I use RH 6.1, apache 1.3.12 and php4.0.1pl2
>
> Thanks,
> Przemek
> (Bulbon)