The ldap library is not available UBUNTU 19.10

Nextcloud version : 18.0.3
Operating system and version : Ubuntu 19.10
Apache or nginx version : Apache2 2.4.41
PHP version (eg, 7.1) : 7.3

The issue you are facing:
in NextCloud Error “The library ldap is not available”

Is this the first time you’ve seen this error? : Yes

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging :

Error PHP PHP Startup: Unable to load dynamic library ‘ldap’ (tried: /usr/lib/php/20180731/ldap (/usr/lib/php/20180731/ldap: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/ldap.so (/usr/lib/php/20180731/ldap.so: cannot open shared object file: No such file or directory)) at Unknown#0
2020-04-17T13:48:00+0200

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'ocadyjkvjkv3',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' =>
  array (
    0 => 'cloud.ebf-frenz.de',
  ),
  'datadirectory' => '/home/data/',
  'dbtype' => 'mysql',
  'version' => '18.0.3.0',
  'overwrite.cli.url' => 'http://cloud.ebf-frenz.de',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextclouduser',
  'dbpassword' => 'NextCloudUser!',
  'installed' => true,
  'mail_from_address' => 'Nextcloud',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'ebf-frenz.de',
  'mail_smtphost' => 'ebf-domino01.ebf-frenz.local',
  'mail_smtpport' => '25',
  'default_language' => 'de_DE',
  'default_locale' => 'de_DE',
  'force_language' => 'de',
  'session_lifetime' => 1800,
  'maintenance' => false,
);

Has it worked before?

What have you done?

Are you using ldap?

How did you install nextcloud? Manually? Or with deb packages?

Hello, no i want to implement the LDAP to my ldap server.
i have install
apt-get install php-ldap
apt-get install ldap-utils
apt-get install php7.0-ldap

when i make php i become the error that the file /usr/lib/php/20180731/ldap.so can not load.
in the directory this file is not present.

I have install nextcloud manually.

why do you install

if you claim to run

Hy i install it why i find an articel in a internet side.
now i have uninstall php7.0-ldap
the problem is always here.

Must i remove all php pakets an only install php-ldap and ldap-utils ?

far from that. just try and find the fitting ones…

OK now i have all removed an new installed.
Same problem in Nexctcloud. ???

it’s no problem of NC… it’s a problem of logic. and/or php. php apparently needs to have the correct libraries to work correctly

Ok i understod.
Can any help me to fix the problem in Ubuntu?

Search the internet on how to install php-ldap support for your ubuntu version.

I don’t find any good information to install php-ldap on ubuntu 19.
can any help me please

Now i have delete ab other distribution store.
Load all pkets an all works fine.
Thanks for help