Ldap Extension for /shivammathur/[email protected] #2817
-
Hello there, I come here after countless hours of searching a fix for adding the 'extension=ldap' for the php env on my mac m1 laptop. I found that the most stable version of php is the one provided by you @shivammathur , installed via brew and managed to start my Laravel application. The next thing is to activate the ldap extension I use for my project. Warning: PHP Startup: Unable to load dynamic library 'ldap' (tried: /opt/homebrew/lib/php/pecl/20190902/ldap (dlopen(/opt/homebrew/lib/php/pecl/20190902/ldap, 0x0009): tried: '/opt/homebrew/lib/php/pecl/20190902/ldap' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/php/pecl/20190902/ldap' (no such file), '/opt/homebrew/lib/php/pecl/20190902/ldap' (no such file)), /opt/homebrew/lib/php/pecl/20190902/ldap.so (dlopen(/opt/homebrew/lib/php/pecl/20190902/ldap.so, 0x0009): tried: '/opt/homebrew/lib/php/pecl/20190902/ldap.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/php/pecl/20190902/ldap.so' (no such file), '/opt/homebrew/lib/php/pecl/20190902/ldap.so' (no such file))) in Unknown on line 0 Please if anyone has any solutions would help me. Thank you in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@armandgabriel Ldap extension in these php builds is compiled statically along with PHP. So it should be available once PHP is installed Please run |
Beta Was this translation helpful? Give feedback.
@armandgabriel
You don't need to add
extension=ldap
in your php.ini. Please remove that.Ldap extension in these php builds is compiled statically along with PHP. So it should be available once PHP is installed
https://github.com/shivammathur/homebrew-php/blob/master/Formula/[email protected]#L164
Please run
php -m
and ldap should be there.