?
Solved

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

Posted on 2013-01-30
4
Medium Priority
?
1,296 Views
Last Modified: 2016-02-11
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
0
Comment
Question by:phpmysqlcoder
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
Phil Phillips earned 1000 total points
ID: 38836732
You shouldn't have to recompile PHP itself - just the ssl module.

If you're using ports, the port to (re-)install would be: security/php5-openssl
0
 

Author Closing Comment

by:phpmysqlcoder
ID: 38847275
Not clear enough how I can recompile the SSL module by itself.
0
 
LVL 14

Expert Comment

by:Phil Phillips
ID: 38847289
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.
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article discusses four methods for overlaying images in a container on a web page
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses
Course of the Month10 days, 22 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question