[php-maint] Bug#687418: Updating php5 to 5.4.4-5 broke FastCGI setup on my machine

Ondřej Surý ondrej at debian.org
Mon Sep 17 15:28:44 UTC 2012

On Mon, Sep 17, 2012 at 4:35 PM, Konstantin Khomoutov
<flatworm at users.sourceforge.net> wrote:
> I'm by no means an expert in setting up this sort of complicated stuff
> in Apache, so I can't really tell if this new change in php5 packaging
> introduces a regression or it's just a misconfiguration on my part.
> In the latter case, it would be cool if someone could provide me with
> any hints on how to configure handling of PHP scripts by FastCGI
> server-wide (rather than patching each PHP-enabled vhost using that
> <FilesMatch> override).  Any suggestions?

The NEWS file for php5-cgi which you ought to read when upgrading reads:

--cut here--
php5 (5.4.4-5) unstable; urgency=low

 Please be aware that the mime-support package has dropped non-standard
 definitions for PHP that might affect any systems using PHP 5 running
 as CGI or FastCGI.  The following definitions were dropped:

  application/x-httpd-php                        phtml pht php
  application/x-httpd-php-source                 phps
  application/x-httpd-php3                       php3
  application/x-httpd-php3-preprocessed          php3p
  application/x-httpd-php4                       php4
  application/x-httpd-php5                       php5

 The php5-cgi package mitigates any known issues by creating a (dummy)
 apache2 module php5_cgi with a configuration containing handlers for
 all previously defined extensions.  ****Even though we believe that this
 configuration should keep your PHP scripts interpreted, it might be a
 good idea to check your apache2 site-wide configuration as well as
 any specific PHP configuration for websites running on your system.****

 As far as we know definitions from the mime-support packages are not
 used in any other webserver included in Debian, but it might affect
 any application which relies on system MIME types to interpret PHP
--cut here--

I am currently thinking how to accomodate all types of users (cgi and
fastcgi), but I haven't come to any conclusion yet. If you have an
idea, how to not break the configuration for neither CGI nor FastCGI
users, feel free to share.

Ondřej Surý <ondrej at sury.org>

More information about the pkg-php-maint mailing list