Package: phpldapadmin
Version: 1.1.0.5-2
Severity: normal
Tags: patch
The Apache configuration file for phpldapadmin sets options required in
case PHP is used as a CGI handler instead of as an Apache module.
Those options are incorrectly depending on the non-use of mod_php4,
while they should depend on th non-use of mod_php5 (PHP4 is obsolete and
phpldapadmin already depends on and uses PHP5). Also, they set
/cgi-bin/php4 as CGI handler, while this should be /cgi-bin/php5.
Additionally, those options depend on the availability of mod_cgi. In
threaded implementations of Apache, mod_cgid is preferred over mod_cgi
and the relevant configuration options should also be set if mod_cgid is
used.
A trivial patch correcting apache.conf is attached to this bug report.
Marc A. Donges
-- System Information:
(Report submitted from different machine, see manual list of relevant
packages below.)
Distribution: Lenny, spiced with Sid
apache2-mpm-event 2.2.8-4 Event driven model for Apache HTTPD
php5-cgi 5.2.5-3+lenny1 server-side, HTML-embedded scripting
language (CGI binary)
--
_ _ Marc A. Donges +49 721 6904-2130
'v' Klosterweg 28 / E110
/ \ 76131 Karlsruhe
W W http://www.hadiko.de/~marc/
--- apache.conf.dpkg-dist 2008-06-03 09:59:51.000000000 +0200
+++ apache.conf 2008-06-23 06:30:53.000000000 +0200
@@ -32,12 +32,17 @@
php_value include_path .
</IfModule>
- <IfModule !mod_php4.c>
+ <IfModule !mod_php5.c>
<IfModule mod_actions.c>
<IfModule mod_cgi.c>
AddType application/x-httpd-php .php
- Action application/x-httpd-php /cgi-bin/php4
+ Action application/x-httpd-php /cgi-bin/php5
+ </IfModule>
+ <IfModule mod_cgid.c>
+ AddType application/x-httpd-php .php
+
+ Action application/x-httpd-php /cgi-bin/php5
</IfModule>
</IfModule>
</IfModule>