[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#326694: apache-ssl won't run .php files



Package: apache-ssl
Version: 1.3.33-6
Severity: normal


apache-ssl refuses to execute php files. The browser instead prompts the user to save the file with 
mime-type application/x-httpd-php.

/etc/apache-ssl/httpd.conf has:

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

The problem persists even if one adds in

/etc/apache-ssl/modules.conf:

LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

In particular, I'm trying to run squirrelmail. apache-ssl also doesn't even start with squirrelmail's default 
/etc/squirrelmail/apache.conf that lists:

<Directory /usr/share/squirrelmail>
  php_flag register_globals off
  Options Indexes FollowSymLinks
  <IfModule mod_dir.c>
    DirectoryIndex index.php
  </IfModule>

  # access to configtest is limited by default to prevent information leak
  <Files configtest.php>
    order deny,allow
    deny from all
    allow from 127.0.0.1
  </Files>
</Directory>



It will only start if the "php_flag" line is commented out.



-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages apache-ssl depends on:
ii  apache-common               1.3.33-6     support files for all Apache webse
ii  debconf                     1.4.30.13    Debian configuration management sy
ii  dpkg                        1.10.28      Package maintenance system for Deb
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libdb4.2                    4.2.52-18    Berkeley v4.2 Database Libraries [
ii  libexpat1                   1.95.8-3     XML parsing C library - runtime li
ii  libmagic1                   4.12-1       File type determination library us
ii  libssl0.9.7                 0.9.7e-3     SSL shared libraries
ii  logrotate                   3.7-5        Log rotation utility
ii  mime-support                3.28-1       MIME files 'mime.types' & 'mailcap
ii  openssl                     0.9.7e-3     Secure Socket Layer (SSL) binary a
ii  perl                        5.8.4-8      Larry Wall's Practical Extraction 
ii  ssl-cert                    1.0-11       Simple debconf wrapper for openssl

-- debconf information:
  apache-ssl/server-admin: webmaster@localhost
  apache-ssl/enable-suexec: false
  apache-ssl/init: true
  apache-ssl/server-name: localhost
  apache-ssl/document-root: /var/www



Reply to: