How to install the OpenSSL extension of PHP in linux environment
- 2020-10-23 20:21:40
- OfStack
First install the dependency package: yum install openssl ES4en-ES5en
Enter the OpenSSL folder in the PHP installation package, depending on the location of the individual installation package, as shown here
cd /home/local/php.5.6.25/ext/openssl/
phpize
Error possible: Cannot find config.m4.
Make sure that you run /usr/local/bin/phpize in the top level source directory of the module,
Under the current directory, execute mv config0.es29EN4 config.es31EN4
phpize again
. / configure - with - php - config = / usr local/php/bin/php - config (php - config file path)
make
make install
Copy openssl. so to the PHP extension folder
Modify extesion= ES65en.so in ES62en.ini