PHP detects whether the server SSL is turned on and how to turn on SSL

Source: Internet
Author: User
Tags iis mysql openssl mysql database

PHP to detect whether the server SSL is turned on and open SSL sharing method.

(1) Detecting whether the server has SSL enabled

<?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.

(2) How 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):

Ssleay32.dll
Libeay32.dll
Php_openssl.dll

4. Restart Apache or IIS.

Articles that you may be interested in

  • PHP implementation of the same server with multiple two-level domain share session data
  • CuteFTP solution to "Encounter invalid parameters" error when connecting to an FTP server
  • Summarize MySQL database server gradually slow down reason and solution
  • PHP gets the specified date of the week, the first and last day of the month
  • How PHP to open compressed output to the site to enhance the speed of Web site access
  • Summarize MySQL server query slow reason and resolution method
  • PHP Get current server details
  • How to realize the optimization of server, static, database optimization, load balancing to achieve high load in large flow website


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.