problems to connect to ldap server: Fatal error: Call to undefined function ldap_connect()

Dámaris Suárez Corrales dhamaris at gmail.com
Wed Mar 11 11:17:05 UTC 2009


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 at 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 at gmail.com>

> On Tue, Mar 10, 2009 at 9:38 PM, Dámaris Suárez Corrales
> <dhamaris at 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 at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090311/c1c9ad45/attachment.html>


More information about the ubuntu-users mailing list