Module ldap already loaded

LDAP is working quite nicely, but I am getting quite a few “message”:“Module ‘ldap’ already loaded at Unknown#0” entries in my log file - like enough to rotate the log several times a day!

Any ideas?

{"reqId":"iJsadfaxQ8","level":3,"time":"2020-12-29T15:16:04+00:00","remoteAddr":"","user":"admin","app":"PHP","method":"GET","url":"/share/ocs/v2.php/apps/spreed/api/v2/room","message":"Module 'ldap' already loaded at Unknown#0","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 Edg/87.0.664.66","version":""}

Check your php configuration and make sure that the module is only loaded once. Very often a php module has already been compiled into the apache2 php module so that there isn’t any requirement to load it as a separate php module again.


I had this exact problem with the following plugins:

  • LDAP
  • CURL
  • FTP

I commented out LDAP and FTP successfuly to resolve this problem. But when I commented CURL. The error went away but then I got the following error in my logs.

PHP Startup: Unable to load dynamic library ‘pdo_mysql’ (tried: /usr/lib/php/20190902/pdo_mysql (/usr/lib/php/20190902/pdo_mysql: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/ (/usr/lib/php/20190902/ undefined symbol: pdo_parse_params)) at Unknown#0

I had to put it back
Any ideas?


The PHP module in question relies on a shared library which eaither doesn’t exist in your server or exists in a wrong version. Use e.g. ldd to find out which libraries are required and install any missing ones.