FreeBSD 4.0/Apache/PHP 4
| From: | Jonathan Hilgeman | Date: | Thu, 19 Apr 2001 17:35:29 +0000 |
| Subject: | FreeBSD 4.0/Apache/PHP 4 | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-2831@lists.php.net to get a copy of this message | ||
I am trying to configure PHP4 to work on a new server. It seems to be
correctly set up in the configuration files but it doesn't work when tested.
There are no configtest errors when starting Apache, and I have the
following lines in my httpd.conf:
LoadModule php4_module libexec/apache/libphp4.so
AddModule mod_php4.c
AddType application/x-httpd-php .php4 .phtml .php
AddHandler php4-script .php
If I try to access a .php file (or any of those extensions in the AddType) I
get a file download window. If I rename the file to something else like
index.php9 I get the contents of the file in a text listing. HTML extensions
work fine! Help!