in OSX

OS X – PHP doesn’t work.

When I executed Web-Sever, It didn’t work.

So I confirm to use following words.

 # sudo apachectl configtest

I saw following error message.

httpd: Syntax error on line 117 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec/apache2/ into server: dlopen(/usr/libexec/apache2/, 10): Library not loaded: @loader_path/../lib/libcrypto.dylib\n Referenced from: /usr/lib/libpq.5.dylib\n Reason: Incompatible library version: libpq.5.dylib requires version 1.0.0 or later, but libcrypto.0.9.8.dylib provides version 0.9.8

It was easy to solve.

Just check what you are using library for web server.

 # ls -la /usr/lib/libssl.dylib 

lrwxr-xr-x 1 root wheel 33 Aug 17 12:25 /usr/lib/libssl.dylib -> /opt/local/lib/libssl.1.0.0.dylib

 # ls -la /usr/lib/libcrypto.dylib 

lrwxr-xr-x 1 root wheel 36 Aug 17 12:28 /usr/lib/libcrypto.dylib -> /opt/local/lib/libcrypto.1.0.0.dylib

and then Just do it.

sudo ln -s /path/to/postgres/install/lib/libcrypto.dylib /usr/lib/libcrypto.dylib
sudo ln -s /path/to/postgres/install/lib/libssl.dylib /usr/lib/libssl.dylib

Actually my original directory is ‘/opt/local/lib’.

I copied and pasted following site.

Write a Comment