Debian Bug report logs - #473126
php5-common: improve details in README.Debian for php5-cgi and apache2

version graph

Package: php5-common; Maintainer for php5-common is (unknown);

Reported by: Olivier Berger <olivier.berger@it-sudparis.eu>

Date: Fri, 28 Mar 2008 14:00:13 UTC

Severity: minor

Found in version php5/5.2.5-3

Done: Olivier Berger <olivier.berger@it-sudparis.eu>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#473126; Package php5-common. (full text, mbox, link).


Acknowledgement sent to Olivier Berger <olivier.berger@it-sudparis.eu>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Olivier Berger <olivier.berger@it-sudparis.eu>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5-common: improve details in README.Debian for php5-cgi and apache2
Date: Fri, 28 Mar 2008 14:59:04 +0100
Package: php5-common
Version: 5.2.5-3
Severity: minor

Hi.

in README.Debian.gz (php5-common), I read :

=======================================
php5-cgi and apache2
---------------------------

In 99% of cases, what you probably want isn't php5-cgi at all, but rather
the libapache2-mod-php5 package, which will configure themselves on
installation and Just Work(tm).  If, however, you have a need to use
the CGI version of php5 with apache2, the following should help
get you going, though there are dozens of different ways to do this.

Please note that this process will never be made automatic, as php5-cgi
is meant to be a webserver-agnostic package that can be used with any
httpd, and we don't want it to conflict with the httpd-specific packages
such as libapache2-mod-php5.  If both were installed side-by-side and both
were automatically enabled, the results would be a bit confusing, obviously.

To use php5-cgi with apache2
  1) activate CGI (it's on by default in default debian setups)
     a) If using the prefork MPM, use 'a2enmod cgi'
     b) If using a threaded MPM, use 'a2enmod cgid'
 2) activate mod_actions (a2enmod actions)
 3) Add the following to a config snippet in /etc/apache2/conf.d
     <IfModule mod_actions.c>
       Action application/x-httpd-php /cgi-bin/php5
     </IfModule>
=======================================

Concerning the last directives I have the feeling that it may be advised
to modify /etc/apache2/mods-enabled/actions.conf, as suggested by the 
message returned by a2enmod actions instead of /etc/apache2/conf.d files.

Then, the docs could be :
 2) activate mod_actions (a2enmod actions)
 3) Add the following to /etc/apache2/mods-enabled/actions.conf
     Action application/x-httpd-php /cgi-bin/php5
 4) Reload apache's configuration (/etc/init.d/apache2 force-reload)


Hope this helps,

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-vserver-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages php5-common depends on:
ii  libc6                         2.7-6      GNU C Library: Shared libraries
ii  sed                           4.1.5-6    The GNU sed stream editor

php5-common recommends no packages.

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#473126; Package php5-common. (full text, mbox, link).


Acknowledgement sent to Jan Wagner <waja@cyconet.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (full text, mbox, link).


Message #10 received at 473126@bugs.debian.org (full text, mbox, reply):

From: Jan Wagner <waja@cyconet.org>
To: Olivier Berger <olivier.berger@it-sudparis.eu>, 473126@bugs.debian.org
Subject: Re: [php-maint] Bug#473126: php5-common: improve details in README.Debian for php5-cgi and apache2
Date: Sat, 29 Mar 2008 13:52:15 +0100
[Message part 1 (text/plain, inline)]
Hi Olivier,

On Friday 28 March 2008 14:59, Olivier Berger wrote:
> Then, the docs could be :
>  2) activate mod_actions (a2enmod actions)
>  3) Add the following to /etc/apache2/mods-enabled/actions.conf
>      Action application/x-httpd-php /cgi-bin/php5
>  4) Reload apache's configuration (/etc/init.d/apache2 force-reload)

this doesn't look like a good idea in general. Modifying files 
in /etc/apache2/mods-enabled/ or /etc/apache2/mods-availale/ will lead you in 
complaints while upgrading apache2 and you need to migrate your changes by 
hand into the new config. Using /etc/apache2/conf.d is the correct place for 
modifications by the user or even in /etc/apache2/sites-enable for vhost wide 
config changes.

With kind regards, Jan.
-- 
Never write mail to <waja@spamfalle.info>, you have been warned!
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GIT d-- s+: a- C+++ UL++++ P+ L+++ E- W+++ N+++ o++ K++ w--- O M V- PS PE
Y++ PGP++ t-- 5 X R tv- b+ DI- D++ G++ e++ h-- r+++ y+++
------END GEEK CODE BLOCK------
[Message part 2 (application/pgp-signature, inline)]

Reply sent to Olivier Berger <olivier.berger@it-sudparis.eu>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Olivier Berger <olivier.berger@it-sudparis.eu>:
Bug acknowledged by developer. (full text, mbox, link).


Message #15 received at 473126-done@bugs.debian.org (full text, mbox, reply):

From: Olivier Berger <olivier.berger@it-sudparis.eu>
To: Jan Wagner <waja@cyconet.org>
Cc: 473126-done@bugs.debian.org
Subject: Re: [php-maint] Bug#473126: php5-common: improve details in README.Debian for php5-cgi and apache2
Date: Mon, 31 Mar 2008 13:54:17 +0200
Le samedi 29 mars 2008 à 13:52 +0100, Jan Wagner a écrit :
> Hi Olivier,
> 
> On Friday 28 March 2008 14:59, Olivier Berger wrote:
> > Then, the docs could be :
> >  2) activate mod_actions (a2enmod actions)
> >  3) Add the following to /etc/apache2/mods-enabled/actions.conf
> >      Action application/x-httpd-php /cgi-bin/php5
> >  4) Reload apache's configuration (/etc/init.d/apache2 force-reload)
> 
> this doesn't look like a good idea in general. Modifying files 
> in /etc/apache2/mods-enabled/ or /etc/apache2/mods-availale/ will lead you in 
> complaints while upgrading apache2 and you need to migrate your changes by 
> hand into the new config. Using /etc/apache2/conf.d is the correct place for 
> modifications by the user or even in /etc/apache2/sites-enable for vhost wide 
> config changes.
> 
> With kind regards, Jan.

Thanks for your response.

I make sense indeed not to apply such settings globally... in fact the
a2enmod message and /etc/apache2/mods-available/actions.conf may be
misleading...

Anyway, let's just close it.

Sorry about the bothering.

Best regards,
-- 
Olivier BERGER <olivier.berger@it-sudparis.eu> (*NEW ADDRESS*)
http://www-inf.it-sudparis.eu/~olberger/ - OpenPGP-Id: 1024D/6B829EEC
Ingénieur Recherche - Dept INF
Institut TELECOM / TELECOM & Management SudParis
(http://www.it-sudparis.eu/), Evry






Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 29 Apr 2008 07:32:15 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 00:26:07 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.