I have recently upgraded to FreeBSD 8. I am trying to get PHP5 to work with my Apache22. I can execute the php script from the command line IE
and it executes correctly. I attempt to run it from a browser, any browser, and it attempts to download the file instead of execute it.
I have the following PHP related lines in my httpd.conf:
Any thoughts on why it's not working?
Thanks!
Code:
#php test.php
I have the following PHP related lines in my httpd.conf:
Code:
LoadModule php5_module libexec/apache22/libphp5.so
<IfModule mod_php3.c>
<IfModule mod_php5.c>
DirectoryIndex index.php index.php3 index.html
<IfModule !mod_php4.c>
DirectoryIndex index.php3 index.html
<IfModule !mod_php3.c>
<IfModule mod_php5.c>
DirectoryIndex index.php index.html index.htm
<IfModule !mod_php4.c>
DirectoryIndex index.php index.html index.htm
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php-source .phps
Any thoughts on why it's not working?
Thanks!