Home  >  Article  >  Backend Development  >  PHP detects whether server SSL is enabled and how to enable SSL_PHP Tutorial

PHP detects whether server SSL is enabled and how to enable SSL_PHP Tutorial

WBOY
WBOYOriginal
2016-07-13 10:31:211119browse

PHP detects whether the server SSL is enabled and shares how to enable SSL.

(1) Check whether the server has SSL enabled

<?php
phpinfo();

Check the openssl column of the page. If the value of OpenSSL support in this column is enabled, it means that SSL is on, otherwise it is off.

(2) How to enable SSL

1. Open php.ini and remove the previous symbols of extension=php_openssl.dll.

2. Restart apache or iis and recheck the SSL opening status.

If the above operation is invalid, you need to perform the next step (this step is not necessary in many cases, for example, in some combination environments, this step can be ignored):

3. Find the following three files under the PHP installation file and copy them to the system32 folder under the system target (usually: c:windowssystem32):

ssleay32.dll
libeay32.dll
php_openssl.dll

4. Just restart apache or iis.

Articles you may be interested in

  • PHP implements multiple second-level domain names on the same server to share SESSION data
  • When CuteFTP connects to the ftp server, an "Invalid error encountered" pops up Parameter" error solution
  • Summary of the reasons and solutions for the gradual slowdown of the MySQL database server
  • PHP gets the week and the first and last day of the month for the specified date
  • How does PHP enable compressed output for a website to enhance website access speed
  • PHP obtains current server details
  • How does a high-traffic website implement server optimization, staticization, database optimization, and load balancing to achieve High load
  • PHP function to check browser parameters to prevent SQL injection

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/764112.htmlTechArticlephp detects whether the server SSL is enabled and shares how to enable SSL. (1) Check whether the server has SSL enabled? phpphpinfo(); Check the openssl column of the page. If the OpenSSL of this column...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn