php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47975 OpenSSL does not load
Submitted: 2009-04-15 21:09 UTC Modified: 2009-04-16 06:12 UTC
From: tom at brainscanmedia dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.2.9 OS: Windows 2003 Server
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tom at brainscanmedia dot com
New email:
PHP Version: OS:

 

 [2009-04-15 21:09 UTC] tom at brainscanmedia dot com
Description:
------------
Hey not sure if this is a bug or not but none of your documents help my 
situation. I just installed the latest version of PHP to see if it works 
but OpenSSL mod does not load even though I uncommented it. Here is a 
link to a sample script that shows my info 
http://www.stoneystraps.com/!Admin/1.php

Reproduce code:
---------------
SMTP -> ERROR: Failed to connect to server: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (24) 
SMTP Error: Could not connect to SMTP host.

Expected result:
----------------
Mail Sent (phpMailer)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-15 21:14 UTC] pajoye@php.net
phpinfo does not do any connection. Did you enable it in your php.ini? Are the openssl DLL in your path?
 [2009-04-15 21:16 UTC] tom at brainscanmedia dot com
Yes its in my path and everything is setup correctly. That link has a 
phpMailer call at the top so you will see the error I get. I even tried 
to reload the old php version and same thing. Can there maybe be a 
conflict with any of the other dll's?
 [2009-04-15 21:20 UTC] pajoye@php.net
no idea, it works just fine here (on ten different servers).

Simply try, using the command line, the following commands:
cd c:\php5 (or where you have php)

php.exe -d extension_dir=ext -d extension=php_openssl.dll -m


 [2009-04-15 21:26 UTC] tom at brainscanmedia dot com
I did as you said and I got this:

C:\PHP>php.exe -d extension_dir=ext -d extension=php_openssl.dll -m
PHP Warning:  Module 'openssl' already loaded in Unknown on line 0
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
curl
date
dom
filter
ftp
gd
hash
iconv
json
libxml
mbstring
mcrypt
mysql
odbc
openssl
pcre
PDO
pdo_sqlite
Reflection
session
SimpleXML
SPL
SQLite
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zlib

[Zend Modules]


C:\PHP>
 [2009-04-15 21:29 UTC] pajoye@php.net
so openssl loads fine.

You have a configuration problem.Check:

- that you use the right php.ini (C:\PHP\php.ini)
- that c:\php is FIRST in your PATH

However, there is no bug. Please ask further questions on one of the numerous support channels/mailing lists (php-install, php-windows).
 [2009-04-16 06:12 UTC] tom at brainscanmedia dot com
Yeap I know it was not a bug just was wondering why it did not work but 
I found out the reason. The server's system32 directory had a copy of ssleay.dll and libeay32.dll so I updated this with the latest version 
now it works... Thanks for the assistance... ;o)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun May 25 09:01:27 2025 UTC