Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Citti's avatar
Level 3

php startup error unable to load dynamic library

Hi all, I am currently using Forge. I am trying to get Active Directory logins enabled on one of my sites. To do this I need the php_ldap extension. So i uncommented the extension via the Forge php.ini file editor. The change seems to be loading fine but now I am getting a startup error:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/php_ldap.dll' - /usr/lib/php/20160303/php_ldap.dll: cannot open shared object file: No such file or directory in Unknown on line 0

Does Forge not come with this .dll? if not, why? How do i go about fixing this... ?

Cheers Citti

0 likes
2 replies
Cronix's avatar

strange that it's trying to load a dll (windows) extension....

Have you ssh'd into the machine to see if php_ldap exists in that dir? And whether it's a .so or .dll extension? Find it hard to believe it would be dll when it appears to be a linux system (/usr/lib/php/...)

1 like
Citti's avatar
Citti
OP
Best Answer
Level 3

ok, So what i ended up having to to do was run:

sudo apt-get install php-ldap

Now the .dll is in place and am good. I actually ran into this same issue locally with homestead. This helped solve this locally as well.

Cheers.

1 like

Please or to participate in this conversation.