How to detect whether PHP SSL is turned on in windows server and how to turn on SSL_PHP Tutorial

WBOY
Release: 2016-07-13 10:31:47
Original
832 people have browsed it

1. Check whether the server has SSL enabled

Copy code The code is as follows:

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. Installation in PHP Find the following three files under the file and copy them to the system32 folder under the system target (usually: c:windowssystem32):

Copy the code The code is as follows:

ssleay32.dll
libeay32.dll
php_openssl.dll

4. Restart apache or iis.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/761020.htmlTechArticle1. Check whether the server has SSL enabled. Copy the code as follows: ?php phpinfo(); ? Check the openssl of the page Column, if the value of OpenSSL support in this column is enabled, it means that SSL is in...
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template