phpmysqlcoder
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/2006061 3
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
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/2006061
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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-o penssl/ && 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.
1) Uninstall php5-openssl:
pkg_delete -x php5-openssl
2) Install php5-openssl:
To install the port: cd /usr/ports/security/php5-o
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.
http://nowfromhome.com/activate-openssl-extension-in-php/
http://docs.moodle.org/22/en/admin/environment/php_extension/openssl