Hey there,

This problem is new to Debian and there is nothing wrong with suphp or
apache.
The only thing is that mod-php5 config uses <FilesMatch
.php>sethandler</FilesMatch> and
mod-suphp uses AddType .php, so one may edit one of those modules .conf
file, to set the declaration as in the other file.
I suggest to edit the php5.conf in /etc/apache2/mods-available/
(if you'll set the suphp with <FilesMatch *> tag then you'll have to rewrite
the config files of phpmyadmin horde and etc... because they use AddType
declaration)


vim /etc/apache2/mods-available/php5.conf

Comment the  files match declaration.
Add the Add Type declaration.

So the file will look like:
#=========================================================
<IfModule mod_php5.c>
    AddType application/x-httpd-php .php .phtml .php3
    AddType application/x-httpd-php-source .phps
    # <FilesMatch "\.ph(p3?|tml)$">
    #    SetHandler application/x-httpd-php
    # </FilesMatch>
    #<FilesMatch "\.phps$">
    #    SetHandler application/x-httpd-php-source
    #</FilesMatch>
    # To re-enable php in user directories comment the following lines
    # (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
    # prevents .htaccess files from disabling it.
    <IfModule mod_userdir.c>
        <Directory /home/*/public_html>
            php_admin_value engine Off
        </Directory>
    </IfModule>
</IfModule>
#=========================================================


I do suggest that Debian should change the php5.conf back, or change all
packages in question
to use the <FilesMatch *> declaration.

Hope I helped you and some other guys out there with this problem,
since I've spend some time with this issue : )

_______________________________________________________________

Regards,
Shlomi Bazak
SBZsoft (c) <http://www.sbzsoft.com>

Reply via email to