In Windows, how does one enable PHP OpenSSL support in PHP extensions?

Source: Internet
Author: User
Tags php windows

From: http://www.lanfeng.net/archives/4594.html

 

When installing oscommerce, I found the openssl_open () function and found a tutorial on the Internet:

1. Open the PHP Directory and remove ";" in front of "extension = php_openssl.dll" in PHP. ini. If not, add it by yourself.

2. Copy libeay32.dll and ssleay32.dll to C: windows \ system32 in the PHP installation directory.

3. Copy php_openssl.dll to C: windows \ system32. If php_openssl.dll cannot be found, go to the http://www.zhaodll.com/dll/p/200910/29860.html.

4. Restart the IIS or Apache Environment

This completes the configuration and installation.

 

============================================ I am a gorgeous splitting line = ========================================================

How to operate IIS in Windows:

1. In C: \ WINDOWS \ PHP. ini
Remove the semicolon (comment) before; Extension = php_openssl.dll. 2. Copy the following in the PHP installation directory:
Libeay32.dll
Ssleay32.dll
To c: \ windows \ system32
3. Copy php_openssl.dll from the PHP \ ext directory to C: \ windows \ system32.
4. Restart IIS. Other operations: Enable OpenSSL for PHP in windows.
The following error occurs when I use the email type email of CI:
Unable to connect to SSL
(Unable to find the socket transport "SSL"-Did you forget to enable it when you configured PHP ?)
But in PHP. no SSL extensions are found in ini. There is an SSL extension in Apache, but it cannot be started as soon as it is opened (something should be configured ), later, I found that the PHP folder had OpenSSL extensions, but the installation was unsuccessful. So I searched for the reason and finally solved the problem. The useful information is as follows:
1. To enable mcrypt support, the libmcrypt. dll library must be installed.
This is generally not installed by users, but don't worry. This file has been attached to the PHP windows release package and can be found in the root directory of the PHP compressed package, copy it to the % System %/system32 directory.
2. To enable OpenSSL support, the system must install the libeay32.dll and ssleay32.dll libraries.
If you have installed OpenSSL before, these two files should already exist in your system directory. If you have not installed OpenSSL, these two files are also included in the PHP windows release package, copy it to the % System %/system32 directory. - How does appserv Win32 enable OpenSSL?-------

1. Open C:/windows. There is a PHP. ini file in it (appserv actually moved the PHP configuration file here !), Search for extension = php_openssl.dll and remove the preceding comma.

2. Go to the installation directory of appserv, go to the PHP folder, search for libeay32.dll and ssleay32.dll respectively, and copy them to C:/Windows/system32.

3. Restart Apache. For how to use phpmailer, see the phpmailer example.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.