# The library ldap is not available

**URL:** <https://help.nextcloud.com/t/the-library-ldap-is-not-available/50383>\
**Category:** ℹ️ Support\
**Tags:** ldap\
**Created:** [March 27, 2019, 12:19pm UTC](https://help.nextcloud.com/t/the-library-ldap-is-not-available/50383 "2019-03-27T12:19:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![damnit95](https://help.nextcloud.com/letter_avatar/damnit95/32/5_5575768a8748004e209b776fc1b2916d.png) [@damnit95](https://help.nextcloud.com/u/damnit95)\
**Post date:** [March 27, 2019, 12:19pm UTC](https://help.nextcloud.com/t/the-library-ldap-is-not-available/50383/1 "2019-03-27T12:19:54Z")

</div>

I am currently trying to set up the authentication of nextcloud for production purpose but I am not able to do it here is my error:

This app cannot be installed because the following dependencies are not fulfilled:

```
The library ldap is not available.

```

I am running on Centos7 with the latest version of php-ldap and php 7.2.10, nextcloud 15.0.5  
I have obviously installed the php-ldap package  
I try to restart httpd services and reboot several time

But it does not work… Any idea?

Do I need to modify the php.ini file?

---

<div class="post-metadata">

**Author:** ![yourcloudasia](https://help.nextcloud.com/user_avatar/help.nextcloud.com/yourcloudasia/32/8124_2.png) [@yourcloudasia](https://help.nextcloud.com/u/yourcloudasia)\
**Post date:** [March 28, 2019, 1:48am UTC](https://help.nextcloud.com/t/the-library-ldap-is-not-available/50383/2 "2019-03-28T01:48:40Z")

</div>

Did you try searching the [forum](https://help.nextcloud.com/t/enable-ldap-user-and-group-backend-grayed-out-this-app-cannot-be-installed-because-the-following-dependencies-are-not-fulfilled-the-library-ldap-is-not-available/49398)?

---

<div class="post-metadata">

**Author:** ![damnit95](https://help.nextcloud.com/letter_avatar/damnit95/32/5_5575768a8748004e209b776fc1b2916d.png) [@damnit95](https://help.nextcloud.com/u/damnit95)\
**Post date:** [March 28, 2019, 10:34am UTC](https://help.nextcloud.com/t/the-library-ldap-is-not-available/50383/3 "2019-03-28T10:34:08Z")

</div>

Yes but it do not solve my issue,

What I noticed is the following:

Here is the result of the “rpm -qa | grep php” command:

rh-php72-php-common-7.2.10-3.el7.x86\_64  
rh-php72-php-pear-1.10.5-1.el7.noarch  
sclo-php72-php-pecl-redis4-4.1.1-1.el7.x86\_64  
rh-php72-php-gd-7.2.10-3.el7.x86\_64  
sclo-php72-php-pecl-imagick-3.4.3-3.el7.x86\_64  
rh-php72-runtime-1-2.el7.x86\_64  
rh-php72-php-zip-7.2.10-3.el7.x86\_64  
rh-php72-php-cli-7.2.10-3.el7.x86\_64  
rh-php72-php-xml-7.2.10-3.el7.x86\_64  
sclo-php72-php-pecl-igbinary-2.0.8-1.el7.x86\_64  
rh-php72-php-mysqlnd-7.2.10-3.el7.x86\_64  
rh-php72-1-2.el7.x86\_64  
rh-php72-php-pecl-apcu-5.1.12-1.el7.x86\_64  
rh-php72-php-opcache-7.2.10-3.el7.x86\_64  
rh-php72-php-intl-7.2.10-3.el7.x86\_64  
php-ldap-5.4.16-46.el7.x86\_64  
rh-php72-php-json-7.2.10-3.el7.x86\_64  
rh-php72-php-process-7.2.10-3.el7.x86\_64  
rh-php72-php-pdo-7.2.10-3.el7.x86\_64  
rh-php72-php-7.2.10-3.el7.x86\_64  
rh-php72-php-mbstring-7.2.10-3.el7.x86\_64  
php-common-5.4.16-46.el7.x86\_64

When I execute the php script to have the info of php used by my web server here is the result:

 ![image](https://help.nextcloud.com/uploads/default/original/2X/4/4cc894de57f076469576a845fe682fa009baa2db.png)

As you can see all my php files are located in /etc/opt/rh/rh-php72/  
And my .so files in /usr/lib64/php/modules/ldap.so

Howerer when I installed php-ldap the .ini file is located in /etc/php.d/ldap.ini or it should be /etc/opt/rh/rh-php72/php.d/ldap.ini

Pretty new about those stuff so I should miss something but I don’t know what…

---

<div class="post-metadata">

**Author:** ![JyothishC](https://help.nextcloud.com/letter_avatar/jyothishc/32/5_5575768a8748004e209b776fc1b2916d.png) [@JyothishC](https://help.nextcloud.com/u/JyothishC)\
**Post date:** [March 28, 2019, 11:26am UTC](https://help.nextcloud.com/t/the-library-ldap-is-not-available/50383/4 "2019-03-28T11:26:58Z")

</div>

> [@damnit95](#):
>
> I should miss something but I don’t know what

Hi Make sure that you have 15-rh-php72-php.conf file and rename/move php .conf files of other php versions in the below locations,

/etc/httpd/conf.d/  
/etc/httpd/conf.modules.d/

---

<div class="post-metadata">

**Author:** ![damnit95](https://help.nextcloud.com/letter_avatar/damnit95/32/5_5575768a8748004e209b776fc1b2916d.png) [@damnit95](https://help.nextcloud.com/u/damnit95)\
**Post date:** [March 28, 2019, 11:41am UTC](https://help.nextcloud.com/t/the-library-ldap-is-not-available/50383/5 "2019-03-28T11:41:12Z")

</div>

![image](https://help.nextcloud.com/uploads/default/original/2X/1/1605859c2f6037d989701c269dc09e13be085a5d.png)

![image](https://help.nextcloud.com/uploads/default/original/2X/8/8e37c52d11e649a9a764cb1a34d1751dde3518d5.png)

What’s the differences between the rh-php72.php.conf and the 15-rh-php72-php.conf files?

But php-ldap is 5.4 and php is 7.2 and I do not succed to install php-ldap on a higher version

---

<div class="post-metadata">

**Author:** ![JyothishC](https://help.nextcloud.com/letter_avatar/jyothishc/32/5_5575768a8748004e209b776fc1b2916d.png) [@JyothishC](https://help.nextcloud.com/u/JyothishC)\
**Post date:** [March 31, 2019, 4:32am UTC](https://help.nextcloud.com/t/the-library-ldap-is-not-available/50383/6 "2019-03-31T04:32:32Z")

</div>

> [@damnit95](#):
>
> I do not succed to install php-ldap on a higher version

are you able to find the “ldap.so” file in that location?

/opt/rh/rh-php72/root/usr/lib64/php/modules/ldap.so

If not, that is the main issue.

You may find the logs indicating the issue at “/etc/httpd/logs” location.

Also make sure that when you make some changes you restart apache.

---

<div class="post-metadata">

**Author:** ![felzmann](https://help.nextcloud.com/letter_avatar/felzmann/32/5_5575768a8748004e209b776fc1b2916d.png) [@felzmann](https://help.nextcloud.com/u/felzmann)\
**Post date:** [May 21, 2019, 3:55am UTC](https://help.nextcloud.com/t/the-library-ldap-is-not-available/50383/7 "2019-05-21T03:55:48Z")

</div>

In my case setting a softlink to the right php.d directory helped:

ln -s /etc/opt/rh/rh-php72/php.d /etc/php.d

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 9:37am UTC](https://help.nextcloud.com/t/the-library-ldap-is-not-available/50383/8 "2024-12-04T09:37:43Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 2:42pm UTC](https://help.nextcloud.com/t/the-library-ldap-is-not-available/50383/9 "2024-12-11T14:42:30Z")

</div>


