安装mongodb 参看文章:

2.安装redis

yum install git git clone git://github.com/owlient/phpredis
cd phpredis /usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install 如果上述出现报错,可以尝试用另外一个源:

git clone git://github.com/nicolasff/phpredis php.ini中添加:

extension=redis.so 3.安装php soap扩展

cd php-5.4.34/ext/soap /usr/local/php/bin/phpize ./configure -with-php-config=/usr/local/php/bin/php-config -enable-soap make
make install php.ini加入:

extension=soap.so 4.安装imap

yum -y install krb5-devel libc-client libc-client-devel
ln -sv /usr/lib64/libc-client.so /usr/lib/libc-client.so
cd php-5.4.34/ext/imap
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config --with-imap=/usr/lib64 --with-imap-ssl --with-kerberos
make && make install
vim /etc/php.ini
extension=imap.so 5.安装 linux php pdo_mysql 扩展

ln -s /usr/local/mysql/include/* /usr/local/include/
wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz
tar zxvf PDO_MYSQL-1.0.2.tgz
cd PDO_MYSQL-1.0.2
/usr/local/php/bin/phpize
./configure -with-php-config=/usr/local/php/bin/php-config -with-pdo-mysql=/usr/local/mysql -with-mysql=/usr/local/mysql/

make
make install extension=pdo_mysql.so 6.安装oauth扩展

wget http://pecl.php.net/get/oauth-1.1.0.tgz
tar -zxf oauth-1.1.0.tgz && cd oauth-1.1.0
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make&&make install
vim /etc/php.ini
添加
extension=oauth.so OK,完毕完成。