linux php oauth安装,Linux php 扩展安装 mongo ,redis ,soap,imap,pdo_mysql,oauth
安裝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
如果上述出現(xiàn)報錯,可以嘗試用另外一個源:
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,完畢完成。
總結
以上是生活随笔為你收集整理的linux php oauth安装,Linux php 扩展安装 mongo ,redis ,soap,imap,pdo_mysql,oauth的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 同一网段计算机无法共享打印机,Win7同
- 下一篇: 信用卡分期能提额吗 提额技巧看这里