Enabling openssl With PHP/nginx
Posted
by
reefine
on Server Fault
See other posts from Server Fault
or by reefine
Published on 2012-11-06T08:12:51Z
Indexed on
2012/11/06
11:06 UTC
Read the original article
Hit count: 217
I'm getting the following error when trying to connect to SMTP + SSL through PHP using nginx + PHP 5,
Could not connect to smtp host 'ssl://smtp.gmail.com' (5) (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?)
In phpinfo I see:
OpenSSL support disabled (install ext/openssl)
This leads me to believe I've installed OpenSSL incorrectly.
I've read a bunch of places where I should uncomment the following line:
extension = php_openssl.dll
This line does not exist so I added it to the end of my php.ini to no avail. The php_openssl.dll file does not exist anywhere on my server.
© Server Fault or respective owner