Methods for detecting whether PHP SSL is turned on and on SSL in Windows Server _php tips

Source: Internet
Author: User
Tags openssl

First, the detection server is open SSL

Copy Code code as follows:

<?php
Phpinfo ();
?>

Check the page OpenSSL column, if the column OpenSSL support value is enabled to indicate that SSL is turned on, otherwise it is off state.

Second, the way to open SSL

1. Open php.ini; Extension=php_openssl.dll to remove the preceding symbol.
2. Restart Apache or IIS, and then check the SSL open state again.
If the above action is not valid, then you need to do the next step (this is not necessary in many cases, such as in some combination environment this step can be ignored):
3. Under the PHP installation file, locate the following three files and copy them to the System32 folder under the system target (generally: c:\windows\system32):

Copy Code code as follows:

Ssleay32.dll
Libeay32.dll
Php_openssl.dll

4. Restart Apache or IIS.

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.