Now I'd like to have PHP5 on the server to start using some of the new XML features. Everything installs fine, with no errors, but when I actually try to load a PHP page, apache is not processing it as a PHP page, just an HTML page.
Here is what I did: Downloaded php-5.0.0RC2 Then I've tried a variety of configure options. Here is an example: ./configure \ --with-apxs=/usr/local/psa/apache/bin/apxs \ --with-enable-magic-quotes \ --with-xsl \ --with-zlib-dir=/usr/local/bin \ --with-expat-dir=/usr/local \ --prefix=/usr/local/psa/apache \ --with-config-file-path=/usr/local/psa/apache/conf \ --with-kerberos \ --with-enable-pear \ --with-zend \ --without-gd \
A configure script similar to this was used with PHP4 with no problems at all. I've taken options out, and added them back in, with no effect.
Next I typed: make make install (note: I've also tried w/out the 'make install' part)
Next I went into my httpd.conf file and edited: changed LoadModule php4_module libexec/libphp4.so to: LoadModule php5_module libexec/libphp5.so
I also changed: AddModule mod_php4.c To: AddModule mod_php5.c
Finally, I overwrote my php.ini file with the one provided in the download.
Then I copied the libphp5.so file from the download directory to /usr/local/psa/apache/libexec/
The OS is FreeBSD 4.9-RELEASE
The phpinfo.php page is at: http://216.55.154.35/phpinfo.php Incase any of you want to see what I'm talking about.
It seems like apache just doesn't know to process the php page as PHP. I do have a line in the httpd.conf file that says:
AddType application/x-httpd-php .php
Does anyone have any thoughts? This is driving me crazy. I don't get any error messages anywhere, which keeps me from doing a good Google search on it.
At what point do I post this as a bug report?
Thanks!