Solved

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

Posted on 2013-01-30
4
1,262 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
  • 2
4 Comments
 
LVL 5

Expert Comment

by:Php_expert
ID: 38835098
0
 
LVL 12

Accepted Solution

by:
Phil Phillips earned 500 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 12

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
The viewer will learn how to count occurrences of each item in an array.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

930 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now