Solved

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

Posted on 2013-01-30
4
1,250 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
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 dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

708 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

16 Experts available now in Live!

Get 1:1 Help Now