RE: Need help installing PHP.
| From: | Dr CHEUNG Ngai Tseung | Date: | Fri, 26 Apr 2002 01:25:24 +0000 |
| Subject: | RE: Need help installing PHP. | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-6742@lists.php.net to get a copy of this message | ||
Try renaming your file test.php
It works from the command line because you are invoking php directly, but
apache doesn't pass html files to the php module.
-----Original Message-----
From: John Clark [mailto:j1clark@ucsd.edu]
Sent: Friday, 26 April 2002 06:17
To: php-install@lists.php.net
Subject: Need help installing PHP.
I have downloaded and installed php-4.2.0 and apache 1.3.24.
With php configure and commands:
./configure --with-apxs=/usr/local/apache/bin/apxs
make install
I see that everything completes.
However when I load my test html file:
<html>
<head>
</head>
<body>
test<p>
<?phpinfo()?>
</body>
</html>
I see the one text 'test' print, but nothing of the <?phpinfo()?>
When I run: php test.html >x.html
and then access x.html from my browser, I see a table of info.
What do I have to do to apache to get it to process the php tags
correctly.
I've added the: AddType application/x-httpd-php .php
as well.
When I do the following example: <?php echo "hello world<p>"; ?>
All my browser gets is the garbled text of:
"; ?>