Objective:
PHP Source Location: /usr/origindatas/php-7.1.11
PHP Installation Location: /usr/lnmp/php/php-7.1.11
PHP.ini Location: /usr/lnmp/php/php-7.1.11/etc/php.ini
1. Enter the extended directory for OpenSSL
In PHP source files
cd/usr/origindatas/php-7.1. /ext/openssl
2. Running
/usr/lnmp/php/php-7.1. /bin/phpize
If an error occurs
fix : Execute in current directory, execute once above statement after completion
MV Config0.m4 CONFIG.M4
3. Performing the installation
Note the path
./configure--with-openssl--with-php-config=/usr/lnmp/php/php-7.1. /bin/php-config
Make install
If an error occurs during the installation:Libssl cannot find
Executes the following statement, after the completion of the above statement
Yum install OpenSSL yum install OpenSSL-devel
4. After execution, you will be prompted to generate an. os file under a path, usually under the PHP installation path. My is/usr/lnmp/php/php-7.1.11/lib/php/extensions/no-debug-non-zts-20160303
5. Open php.ini File
916 rows of places to add
Extension=openssl.so
6. Restart PHP to
Linux php add OpenSSL extension