Link to home
Start Free TrialLog in
Avatar of phpmysqlcoder
phpmysqlcoderFlag for Denmark

asked on

Unable to load dynamic library '/usr/local/lib/php/20060613/openssl'

I am getting fatal error when calling openssl_pkey_get_private() in PHP

I've enabled openssl in php.ini and restarted the server
extension=php_openssl.dll

I've realized that the extension directory /usr/local/lib/php/20060613
has no openssl.so file

I am using FreeBSD OS and php 5.2.12

So my  question is how to enable openssl extension on my server, can I achieve it without re-compiling php. What are the implications of re-compiling  .. or can I just copy openssl.so from another server to the extension directory (where to download such file?) .. what do you suggest
Avatar of Php_expert
Php_expert
Flag of India image

ASKER CERTIFIED SOLUTION
Avatar of Phil Phillips
Phil Phillips
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of phpmysqlcoder

ASKER

Not clear enough how I can recompile the SSL module by itself.
Just some supplemental information.

1) Uninstall php5-openssl:
pkg_delete -x php5-openssl

2) Install php5-openssl:
To install the port: cd /usr/ports/security/php5-openssl/ && make install clean
To add the package: pkg_add -r php5-openssl

The install command you use depends on whether you are using the ports tree or packages.