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

Place it in a directory of your web server which can be access by a browser. E.g. if the web root is /var/www/htdocs you could create a php file in this directory and named it info.php. Next you open your web browser and enter the url to your server, like http://<your-server-fqdn>/info.php
As a result an html file should be shown.

This is the only way how you can check if a php module is correctly loaded!