Your message dated Sat, 4 Jul 2009 12:12:19 -0500
with message-id <[email protected]>
and subject line Re: [php-maint] Bug#535253: php5-ldap: ldap module not loading
using fcgi (at least with lighttpd)
has caused the Debian Bug report #535253,
regarding php5-ldap: ldap module not loading using fcgi (at least with lighttpd)
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
535253: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=535253
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: php5-ldap
Version: 5.2.6.dfsg.1-1+lenny3
Severity: important
When using php through lighttpd fast cgi interface (I don't know about apache
as I don't use it), php's ldap.so module is not loaded. To verify, just create
a php file in your webserver root directory with:
<?php phpinfo(); ?>
When you load this script in your web browser and search by 'ldap', there is no
mention. Instead, if you issue:
$ php -c /etc/php5/cgi/php.ini -i|grep ldap
the module is correctly loaded, as informed by grep output.
My lighttpd fcgi configuration is:
/etc/lighttpd/conf-enabled/10-fastcgi.conf
## FastCGI programs have the same functionality as CGI programs,
## but are considerably faster through lower interpreter startup
## time and socketed communication
##
## Documentation: /usr/share/doc/lighttpd-doc/fastcgi.txt.gz
## http://www.lighttpd.net/documentation/fastcgi.html
server.modules += ( "mod_fastcgi" )
## Start an FastCGI server for php (needs the php5-cgi package)
fastcgi.server = ( ".php" =>
((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php.socket",
"max-procs" => 1,
"idle-timeout" => 20,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "4",
"PHP_FCGI_MAX_REQUESTS" => "10000"
),
"bin-copy-environment" => (
"PATH", "SHELL", "USER"
),
"broken-scriptfilename" => "enable"
))
)
[EOF]
As stated before, I don't have any other web server software instaled on my
Debian box, so I cant confirm if this behaviour only impacts lighty.
Best,
Deny Dias.
-- System Information:
Debian Release: 5.0.1
APT prefers stable
APT policy: (990, 'stable'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages php5-ldap depends on:
ii libc6 2.9-12 GNU C Library: Shared libraries
ii libldap-2.4-2 2.4.11-1 OpenLDAP libraries
ii libsasl2-2 2.1.22.dfsg1-23+lenny1 Cyrus SASL - authentication abstra
ii php5-cgi [phpapi- 5.2.6.dfsg.1-1+lenny3 server-side, HTML-embedded scripti
ii php5-cli [phpapi- 5.2.6.dfsg.1-1+lenny3 command-line interpreter for the p
ii php5-common 5.2.6.dfsg.1-1+lenny3 Common files for packages built fr
php5-ldap recommends no packages.
php5-ldap suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
On Saturday 04 July 2009 11:22:11 Deny Dias wrote:
[...]
> So, my observation shows that this is not a php5-ldap bug as I first
> thought.
As I expected :), good that you found the real problem.
> This is a lighttpd issue related with fastcgi module and the
> way its sockets are managed. As an advice to other that faces similar
> trouble, after change your fastcgi parser settings, remove any sockets
> created by it before start lighttpd again.
>
> As an adittional advice to lighttpd package maintainers, I think it
> would be nice that lighty init.d script deletes any socket created
> upon stop if fastcgi module is enabled.
Don't forget to file a report against the lighttpd package to see what they
think about it. You can point them to this bug report as a reference to the
situation.
By the way, if the php cgi parent is not killed with a simple lighttpd
restart/force-reload its a bug (if it was lighttpd who started the process of
course).
>
> This bug report can be considered closed now.
Closing it now.
Cheers,
--
Raphael Geissert - Debian Developer
www.debian.org - get.debian.net
--- End Message ---