Re: [PHP] Apache asks to save php file?



On Tue, 2007-02-06 at 16:15 -0700, Skip Evans wrote:
Hey all,

Just did a new install on FreeBSD 6.0 of Apache 2,
PHP4 and MySQL, but the browser asks to save a PHP
file rather than execute it. I do have the
following in httpd.conf, however.

LoadModule php4_module libexec/apache2/libphp4.so

DirectoryIndex index.php index.html index.htm
index.html.var

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Now I'm wondering if somehow PHP4 got compiled
without the Apache module selected?

Does that sound accurate? I did check it off when
the compile began however.

Anything in your apache logs? Did you restart the webserver? Did you
compile yourself?

Cheers,
Rob.
--
..------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
.