PHP to detect if server SSL is on and how to turn on SSL _php tutorial

Source: Internet
Author: User
PHP detects if the server SSL is turned on and how SSL is turned on for sharing.

(1) Detect if SSL is turned on by the server

 

Check the OpenSSL section of the page, if the value of OpenSSL support for this column is enabled, SSL is turned on, otherwise it is off.

(2) How to turn on SSL

1. Open the php.ini, extension=php_openssl.dll the front symbol.

2. Restart Apache or IIS and re-check the SSL on status.

If the above operation is not valid, then the next step is required (this step is not required in many cases, such as in some combination environments 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 (typically: C:\Windows\System32):

Ssleay32.dll
Libeay32.dll
Php_openssl.dll

4. Restart Apache or IIS.

Articles you may be interested in

    • PHP to share SESSION data with multiple level two domain name servers
    • CuteFTP "encountered invalid parameter" error when connecting to FTP server
    • Summarize the reason and solution of the MySQL database server gradually becoming slow
    • PHP gets the week of the specified date, the first day of the month, and the last day
    • How PHP can turn on compressed output to website to enhance website access speed
    • PHP gets current server details
    • How to optimize server, static, database optimization, load balancing to achieve high load for large traffic website
    • PHP Check browser parameters to prevent SQL injection of functions

http://www.bkjia.com/PHPjc/764112.html www.bkjia.com true http://www.bkjia.com/PHPjc/764112.html techarticle PHP detects if the server SSL is turned on and how SSL is turned on for sharing. (1) detects if the server is SSL-enabled? Phpphpinfo (); Check the OpenSSL section of the page, if the section of OpenSSL ...

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