Weird apache problem

Paul Schmehl pauls at
Mon Jun 5 12:15:06 PDT 2006

I'm having a problem figuring out what the heck is wrong with a 
webserver.  Any suggestions would be welcomed.

It's running Apache and php4 (with Apache module selected using make 
config), and when you try to load a page (Squirrelmail) using Firefox, 
you get a popup asking you what to do with the file.  (You have chosen 
to open ..which is a: application/x-httpd-php from: What should Firefox do with this file?

The page loads fine in Internet Explorer.

The load module and add module lines exist in the httpd.conf file and 
the webserver has been restarted repeatedly, with no errors.  There's no 
errors in the httpd-error log.  The file exists in the 
correct directory.

uname -a

httpd -V
Server version: Apache/1.3.36 (Unix)
Server built:   Jun  3 2006 11:20:12

php -v
PHP 4.4.2 (cli) (built: Jun  5 2006 13:56:53)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

grep php /usr/local/etc/apache/httpd.conf

LoadModule php4_module        libexec/apache/
AddModule mod_php4.c
     <IfModule mod_php3.c>
         <IfModule mod_php4.c>
             DirectoryIndex index.php index.php3 index.html index.htm
         <IfModule !mod_php4.c>
             DirectoryIndex index.php3 index.html index.htm
     <IfModule !mod_php3.c>
         <IfModule mod_php4.c>
             DirectoryIndex index.php index.html index.htm
         <IfModule !mod_php4.c>
             DirectoryIndex index.html index.htm index.php
     AddType application/x-httpd-php .php
     AddType application/x-httpd-php-source .phps
             Redirect /
         <Files ~ "\.(cgi|shtml|phtml|php|php3?|php4?)$">
#        <Files ~ "\.(cgi|shtml|phtml|php3?|php4?)$">
<Files ~ "\.(cgi|shtml|phtml|php3?)$">

The only thing that strikes me as odd is that there's no dependency for 
php related to apache:

pkg_info -r apache*
Information for apache+mod_ssl-1.3.36+2.8.27:

Depends on:
Dependency: mm-1.4.0
Dependency: expat-2.0.0_1

pkg_info -R apach*
Information for apache+mod_ssl-1.3.36+2.8.27:

Required by:

Paul Schmehl (pauls at
Adjunct Information Security Officer
The University of Texas at Dallas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5007 bytes
Desc: S/MIME Cryptographic Signature
Url :

More information about the freebsd-questions mailing list