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?
Did you try searching the forum?
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:
When I execute the php script to have the info of php used by my web server here is the result:
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…
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,
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
are you able to find the “ldap.so” file in that location?
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.
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