Weird apache problem

Derek Ragona derek at
Mon Jun 5 12:38:13 PDT 2006

I just tried that page in firefox on a windows and it worked fine.

You may have your firefox install foobar, and might want to uninstall and 
reinstall it.


At 02:14 PM 6/5/2006, Paul Schmehl wrote:
>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 
>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

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

More information about the freebsd-questions mailing list