How to enable openssl in php. In most cases, openssl is not enabled. To enable it, you need to make simple settings
How to enable it in windows:
1: First check whether extension=php_openssl.dll exists in php.ini. If it exists, remove the previous comment character ';'. If this line does not exist, add extension=php_openssl.dll.
2: Copy php_openssl.dll, ssleay32.dll, libeay32.dll 3 files in the php folder to the WINDOWSsystem32 folder.
3: Restart apache or iis (iisreset /restart)
At this point, the openssl function is enabled.
How to enable it under Linux:
I am using the cloud host of Jinshang Data, PHP version: 5.2.14
The following plan uses my host as an example to explain how to add openssl module support to PHP.
Some answers on the Internet say that you need to recompile PHP, add configure parameters, and add openssl support. Here is a method that does not require recompiling.
It is best if the PHP installation package file exists on the server. If it has been deleted, download the PHP installation file with the same version as shown on the phpinfo page. Here is php-5.2.14.tar.gz
It is recommended to go to Sohu Mirror Download, NetEase mirror not found. The address is: http://mirrors.sohu.com/php/
Use the ssh tool to connect to the host.
Okay, openssl support is now successfully added.