problems to connect to ldap server: Fatal error: Call to undefined function ldap_connect()
On Tue, Mar 10, 2009 at 5:36 PM, Dámaris Suárez Corrales <dhamaris@gmail.com> wrote:
Missing required extension Your install of PHP appears to be missing LDAP support Please install LDAP support before using phpLDAPadmin. Strange. apt should have installed php5-ldap * I already had installed (and working) PHP5 and* Apache2. I have installed too php5-ldap library. When i look in my php5 features (using phpinfo() ) i don't see ldap anywhere! check /etc/php5/apache2/php.ini, and /etc/php5/apache2/conf.d/ldap.ini Do you see something there? * Does anybody know what i am doing wrong? Nope :) * Or what i am doing right, i suppose :S Unless you have installed php compiled from source, you're doing everything right. Regards, Norberto -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
problems to connect to ldap server: Fatal error: Call to undefined function ldap_connect()
I've been looking for a solution, and i found out that had to uncomment a line in php.ini, in order to enable ldap libraries.
I didn't found that line, but i wrote this command: extension = mod_ldap.so The problem maybe is the order in which i installed things. Who goes first? slapd? or apache and php? The last thing i did was to reinstall apache and php, because i don't find any ldap folder in php5 folder, that is a bad sign. Only have a ldap folder in /etc. Before re-installing apache2 and php5, when i put /localhost/phpldapadmin in the web browser, it showed me: Missing required extension Your install of PHP appears to be missing LDAP support Please install LDAP support before using phpLDAPadmin. But now is even worse, because it shows: The requested URL /phpldapadmin was not found on this server. Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4.1 with Suhosin-Patch Server at localhost Port 80 Can anybody help me?? I'm quite lost. Thank u. Dámaris. 2009/3/10 Dámaris Suárez Corrales <dhamaris@gmail.com> Hello, i recently installed OpenLDAP, using these commands: sudo aptitude install slapd sudo dpkg-reconfigure slapd sudo aptitude install ldap-utils phpldapadmin This is the message when i type /localhost/phpldapadmin in my web browser: Missing required extension Your install of PHP appears to be missing LDAP support Please install LDAP support before using phpLDAPadmin. I already had installed (and working) PHP5 and* Apache2. I have installed too php5-ldap library. When i look in my php5 features (using phpinfo() ) i don't see ldap anywhere! Does anybody know what i am doing wrong? Or what i am doing right, i suppose :S Than u for any help. Dámaris. -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
problems to connect to ldap server: Fatal error: Call to undefined function ldap_connect()
I have checked the files that you told me:
check /etc/php5/apache2/php.ini* ---> ldap doesn't appears anywhere */etc/php5/apache2/conf.d/ldap.ini --> i can't find* ldap.ini in conf.d folder!!!! if i have to re-install everything, is there anything that must be installed first?? I have 3 versions of BerkeleyDB, and i don't delete any of them because it will affect the entire system...could this be affecting the php5-ldap installation?? thank u, Dámaris. -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
problems to connect to ldap server: Fatal error: Call to undefined function ldap_connect()
This message when i try to access to http://localhost/phpldapadmin: (having it installed!!)
The requested URL /phpldapadmin was not found on this server. Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4.1 with Suhosin-Patch Server at localhost Port 80 It is possible that apache2 and openldap servers are in conflict?? -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
problems to connect to ldap server: Fatal error: Call to undefined function ldap_connect()
On Tue, Mar 10, 2009 at 9:38 PM, Dámaris Suárez Corrales
<dhamaris@gmail.com> wrote: > > I didn't found that line, but i wrote this command: > > extension = mod_ldap.so maybe you want: extension = ldap.so > > The problem maybe is the order in which i installed things. Who goes first? slapd? or apache and php? There's no order. apt resolves dependencies. It sees you don't have php5-ldap and it installs it. > > Before re-installing apache2 and php5, when i put /localhost/phpldapadmin in the web browser, it showed me: > > Missing required extension > Your install of PHP appears to be missing LDAP support > Please install LDAP support before using phpLDAPadmin. > > But now is even worse, because it shows: > > The requested URL /phpldapadmin was not found on this server. There should be a link in /etc/apache2/conf.d/phpldapadmin to /etc/phpldapadmin/apache.conf If it is not there, try to make one. -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
problems to connect to ldap server: Fatal error: Call to undefined function ldap_connect()
On Wed, Mar 11, 2009 at 7:43 AM, Dámaris Suárez Corrales
<dhamaris@gmail.com> wrote: > check /etc/php5/apache2/php.ini* ---> ldap doesn't appears anywhere > > */etc/php5/apache2/conf.d/ldap.ini --> i can't find* ldap.ini in conf.d > folder!!!! What version of Ubuntu do you have? > if i have to re-install everything, is there anything that must be installed > first?? nope > I have 3 versions of BerkeleyDB, and i don't delete any of them because it > will affect the entire system...could this be affecting the php5-ldap > installation?? i don't know -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
problems to connect to ldap server: Fatal error: Call to undefined function ldap_connect()
On Wed, Mar 11, 2009 at 7:48 AM, Dámaris Suárez Corrales
<dhamaris@gmail.com> wrote: > It is possible that apache2 and openldap servers are in conflict?? I don't know. Typically, no. Have you installed them using apt? -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
problems to connect to ldap server: Fatal error: Call to undefined function ldap_connect()
I have 8.10 version of Ubuntu.
I just modify the line in php.ini for the one you told me: extension = ldap.so what i am supposed to do then? > There should be a link in /etc/apache2/conf.d/phpldapadmin to > /etc/phpldapadmin/apache.conf > If it is not there, try to make one. */etc/apache2/conf.d* only contains 2 files: charset and security. Nothing of phpldapadmin. How do i try to make one link? Have i to create a file a name it phpldapadmin? How do i create a link in that case? :S This is the contain of file* /etc/phpldapadmin/apache.conf : # Define /phpldapadmin alias, this is the default<IfModule mod_alias.c> *** Alias /phpldapadmin /usr/share/phpldapadmin/htdocs</IfModule> # You can also use phpLDAPadmin as a VirtualHost# <VirtualHost *:*> #**** ServerName ldap.example.com#**** ServerAdmin root@example.com #**** DocumentRoot /usr/share/phpldapadmin#**** ErrorLog logs/ldap.example.com-error.log #**** CustomLog logs/ldap.example.com-access.log common# </VirtualHost> <Directory /usr/share/phpldapadmin/htdocs/>*** DirectoryIndex index.php *** Options +FollowSymLinks*** AllowOverride None *** Order allow,deny*** Allow from all *** <IfModule mod_mime.c>***** <IfModule mod_php5.c> ******* AddType application/x-httpd-php .php******* php_flag magic_quotes_gpc Off ******* php_flag track_vars On******* php_flag register_globals On ******* php_value include_path .***** </IfModule> ***** <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/php5********* </IfModule> ********* <IfModule mod_cgid.c>*************************************** ************ *********** AddType application/x-httpd-php .php********************************** *********** Action application/x-httpd-php /cgi-bin/php5************************** ********** </IfModule> ******* </IfModule>***** </IfModule> *** </IfModule></Directory> I'm quite lost... :S Thank u Norberto, Dámaris. 2009/3/11 Norberto Bensa <nbensa@gmail.com> On Tue, Mar 10, 2009 at 9:38 PM, Dámaris Suárez Corrales <dhamaris@gmail.com> wrote: > > I didn't found that line, but i wrote this command: > > extension = mod_ldap.so maybe you want: extension = ldap.so > > The problem maybe is the order in which i installed things. Who goes first? slapd? or apache and php? There's no order. apt resolves dependencies. It sees you don't have php5-ldap and it installs it. > > Before re-installing apache2 and php5, when i put /localhost/phpldapadmin in the web browser, it showed me: > > Missing required extension > Your install of PHP appears to be missing LDAP support > Please install LDAP support before using phpLDAPadmin. > > But now is even worse, because it shows: > > The requested URL /phpldapadmin was not found on this server. There should be a link in /etc/apache2/conf.d/phpldapadmin to /etc/phpldapadmin/apache.conf If it is not there, try to make one. -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
problems to connect to ldap server: Fatal error: Call to undefined function ldap_connect()
On Wed, Mar 11, 2009 at 7:48 AM, Dámaris Suárez Corrales
<dhamaris@gmail.com> wrote: > The requested URL /phpldapadmin was not found on this server. Try aptiture reinstall phpldapadmin -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
problems to connect to ldap server: Fatal error: Call to undefined function ldap_connect()
Fixed!!!! i think it was the changing of
extension = mod_ldap.so for extension = ldap.so* //this made possible for a php program to connect to a ldap server But i'm not sure (it is not the first time ubuntu get fixed alone) And the only thing i had to do was link phpldapadmin to apache2 server, putting this line: >ln -s /usr/share/phpldapadmin/ /var/www/ Thank u!!! Regards, Dámaris. -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
| All times are GMT. The time now is 04:50 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.