PHP5 with Apache2
[email protected] (Balakumar Velmurugan)
| Newsgroups | php.install |
|---|---|
| Message-ID | <[email protected]> |
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