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: https://webmail.stovebolt.com 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 libphp4.so file exists in the correct directory.

uname -a
FreeBSD stovebolt.stovebolt.com 5.4-SECURITY FreeBSD 5.4-SECURITY

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/libphp4.so
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 / https://webmail.stovebolt.com/index.php
        <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:
mod_perl-1.29_1
mod_security-1.9.2
squirrelmail-1.4.6

--
Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to