PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php5/lib/php/extensions/no-debug-non-zts-20131226/php_mysql.dll' - /usr/local/php5/lib/php/extensions/no-debug-non-zts-20131226/php_mysql.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php5/lib/php/extensions/no-debug-non-zts-20131226/php_mysqli.dll' - /usr/local/php5/lib/php/extensions/no-debug-non-zts-20131226/php_mysqli.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php5/lib/php/extensions/no-debug-non-zts-20131226/php_openssl.dll' - /usr/local/php5/lib/php/extensions/no-debug-non-zts-20131226/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php5/lib/php/extensions/no-debug-non-zts-20131226/php_pdo_mysql.dll' - /usr/local/php5/lib/php/extensions/no-debug-non-zts-20131226/php_pdo_mysql.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php5/lib/php/extensions/no-debug-non-zts-20131226/memcached.so' - /usr/local/php5/lib/php/extensions/no-debug-non-zts-20131226/memcached.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.6.30 (cli) (built: Nov 1 2018 14:42:13)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
[root@instance-jewlel2q ~]# cd php-5.6.30/ext/
[root@instance-jewlel2q ext]# ls
bcmath ereg hash mssql pdo posix soap tokenizer
bz2 exif iconv mysql pdo_dblib pspell sockets wddx
calendar ext_skel imap mysqli pdo_firebird readline spl xml
com_dotnet ext_skel_win32.php interbase mysqlnd pdo_mysql recode sqlite3 xmlreader
ctype fileinfo intl oci8 pdo_oci reflection standard xmlrpc
curl filter json odbc pdo_odbc session sybase_ct xmlwriter
date ftp ldap opcache pdo_pgsql shmop sysvmsg xsl
dba gd libxml openssl pdo_sqlite simplexml sysvsem zip
dom gettext mbstring pcntl pgsql skeleton sysvshm zlib
enchant gmp mcrypt pcre phar snmp tidy
[root@instance-jewlel2q ext]#
cd ~
cd php-5.6.30/ext/pdo
/usr/local/php5/bin/phpize
./configure --with-php-config=/usr/local/php5/bin/php-config
make
make install
其余 mysql mysqli pdo_mysql openssl 文件夹同理
其中 php 安装 openssl
/root/php-5.6.30/ext/openssl
[root@instance-jewlel2q openssl]# ll
total 1188
-rw-r--r-- 1 mysql mysql 1279 Jan 19 2017 config0.m4
-rw-r--r-- 1 mysql mysql 532 Jan 19 2017 config.w32
-rw-r--r-- 1 mysql mysql 65 Jan 19 2017 CREDITS
-rw-r--r-- 1 mysql mysql 152612 Jan 19 2017 openssl.c
-rw-r--r-- 1 mysql mysql 4664 Jan 19 2017 openssl.dsp
-rw-r--r-- 1 root root 324 Nov 1 14:34 openssl.lo
-rw-r--r-- 1 mysql mysql 4804 Jan 19 2017 openssl.mak
-rw-r--r-- 1 root root 539208 Nov 1 14:34 openssl.o
-rw-r--r-- 1 mysql mysql 4311 Jan 19 2017 php_openssl.h
-rw-r--r-- 1 mysql mysql 11104 Jan 19 2017 README
drwxr-xr-x 2 mysql mysql 12288 Jan 19 2017 tests
-rw-r--r-- 1 mysql mysql 73534 Jan 19 2017 xp_ssl.c
-rw-r--r-- 1 root root 321 Nov 1 14:34 xp_ssl.lo
-rw-r--r-- 1 root root 373944 Nov 1 14:34 xp_ssl.o
[root@instance-jewlel2q openssl]# cp config0.m4 config.m4
[root@instance-jewlel2q openssl]# /usr/local/php5/bin/phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
[root@instance-jewlel2q openssl]#
然后修改 php.ini 文件