Solved by Julz
Thank you!
$ brew uninstall php56 $ brew install php56 --without-ldap
So, I'm in need of some help, I've looked around, but I can't find anything to fix the problem.
I've installed Apache and PHP via Homebrew, but for some reason they don't seem to work together.
Apache is installed with httpd24 --enable-rewrite --enable-ssl --with-privileged-ports --with-http2 via the Homebrew/apache tap
PHP is installed with php56 --with-homebrew-apxs --with-apache --with-homebrew-curl --with-homebrew-openssl via the Homebrew/homebrew-php tap
And they all installed correctly, I load the libphp5.so in httpd.conf; Like you do, and when i run sudo httpd -k start / restart I get this:
httpd:
Syntax error on line 173 of /usr/local/etc/apache2/2.4/httpd.conf:
Cannot load /usr/local/Cellar/php56/5.6.20/libexec/apache2/libphp5.so into server:
dlopen(/usr/local/Cellar/php56/5.6.20/libexec/apache2/libphp5.so, 10):
Symbol not found: _ldap_control_find
Referenced from: /usr/local/Cellar/php56/5.6.20/libexec/apache2/libphp5.so
Expected in: /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
in /usr/local/Cellar/php56/5.6.20/libexec/apache2/libphp5.so
I can't for the life of me figure out what's wrong, any help? Apache works fine without the php lib.
I upgraded php56 today via homebrew and had same pb. It seems to be related to ldap support.
Until a fix is provided I suggest uninstalling php56 then reinstalling without ldap
$ brew uninstall php56
$ brew install php56 --without-ldap
Easy and quick.