Install Nextcloud 26.0.2 I need to integrate it with LDAP but when installing php-ldap it does not allow activating the LDAP user and group backend (This app cannot be installed because the following dependencies are not fulfilled: The library ldap is not available).
Rocky 8 operating system
PHP 8
Apache/2.4.37 (rocky)
php-ldap-8.0.30-1
If you are installing a PHP module it usually requires to have all required libraries installed too. By default all dependencies should automatically installed but this seems not the case on your server. In this case you need to install the required ldap library package on your own.
I personally do not know Rocky 8, therefore I cannot provide the exact command to you to install the package.
However, two things come to mind that might cause the issue:
Maybe the wrong version of the php-ldap package was installed. According to your post you need php-ldap 8.0, which you would have to install through the EPEL / Remi Repository.