Ondrej,
$ /usr/bin/php5-cgi -i | grep ldap
/etc/php5/cgi/conf.d/ldap.ini,
<h2><a name="module_ldap">ldap</a></h2>
<tr><td class="e">RCS Version </td><td class="v">$Id: ldap.c,v
1.161.2.3.2.12 2007/12/31 07:20:07 sebastian Exp $ </td></tr>
Same as running cli version, ldap module is loaded.
Deny Dias.
Em 02/07/2009, às 02:45, Ondřej Surý escreveu:
Deny,
what does /usr/bin/php5-cgi | grep ldap says?
Running /usr/bin/php runs cli version (which should not make
difference, but maybe it does).
Ondrej
On Wed, Jul 1, 2009 at 09:51, Deny Dias<mediasp...@mkttv.net> wrote:
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
_______________________________________________
pkg-php-maint mailing list
pkg-php-ma...@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-php-maint
--
Ondřej Surý <ond...@sury.org>
http://blog.rfc1925.org/
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org