yum install -y install openssl
[root@test0001 /]# find / -name config0.m4
/root/php-5.5.10/ext/libxml/config0.m4
/root/php-5.5.10/ext/date/config0.m4
/root/php-5.5.10/ext/pcre/config0.m4
/root/php-5.5.10/ext/ereg/config0.m4
/root/php-5.5.10/ext/openssl/config0.m4
/root/php-5.5.10/ext/zlib/config0.m4
/root/php-5.5.10/ext/sqlite3/config0.m4
[root@test0001 /]# cd /root/php-5.5.10/ext/openssl/
[root@test0001 openssl]# mv config0.m4 config.m4
phpize
yum install autoconf -y
pecl install mongo
vi php.ini
extension=mongo.so
注:php.ini必须拷贝到/usr/local/bin中,如果php版本为5.5
Oracle
yum install oracle-instantclient12.1-devel.x86_64
pecl install oci8
输入:
instantclient,/usr/lib/oracle/12.1/client64/lib
vi /etc/php.ini
Extension=oci8.so
serivce php-fpm restart
mysql扩展