給php加擴充包

科技小能手發表於2017-11-14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
tar zxvf mcrypt-2.6.8.tar.gz
LD_LIBRARY_PATH=/usr/local/lib64 ./configure
make
make install
cd /home/data/install/lnmp/php-5.3.16/ext/mcrypt/
/home/data/websrv/php/bin/phpize
./configure --with-php-config=/home/data/websrv/php/bin/php-config
make
make install
echo "extension=mcrypt.so" >>/home/data/websrv/php/etc/php.ini
cd /etc/php.d/
echo `extension=mcrypt.so` > mcrypt.ini
service nginx restart
service php-fpm restart

給php加擴充包

本文轉自 cs312779641 51CTO部落格,原文連結:http://blog.51cto.com/chenhao6/1353365


相關文章