PHP5 with Apache2
| From: | Balakumar Velmurugan | Date: | Thu, 04 Nov 2004 20:39:03 +0000 |
| Subject: | PHP5 with Apache2 | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-14668@lists.php.net to get a copy of this message | ||
Hello,
I configured PHP5 on my apache2 server. But every time when I try to
open any file with .php
with my browser, I only see the php source. It looks like the PHP is not
being interpreted at the server.
I did the following as part of my setup,
1. Built apache2 using "--enable-so" option
2. Built PHP using "--with-apxs2=/usr/local/apache2/bin/apxs" option
3. Modified my httpd.conf to include
- LoadModule php5_module libexec/libphp5.so
- AddType application/x-httpd-php .php .phtml
I think I am missing some configuration. Any help? Thanks in advance.
Bala