linux上 php升级

cd  /tmp
wget -c <a href= "http://dl.wdlinux.cn:5180/soft/php-5.3.10.tar.gz"  target= "_blank" >http: //dl .wdlinux.cn:5180 /soft/php-5 .3.10. tar .gz< /a >
tar  zxvf <a href= "https://www.baidu.com/s?wd=php&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1YYmhf3nymvujnzuyn1uHDz0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6KdThsqpZwYTjCEQLGCpyw9Uz4Bmy-bIi4WUvYETgN-TLwGUv3EnHDLPHf1njDzP16srjRsnHnLrf"  target= "_blank"  class= "baidu-highlight" >php< /a >-5.3.10. tar .gz
cd  <a href= "https://www.baidu.com/s?wd=php&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1YYmhf3nymvujnzuyn1uHDz0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6KdThsqpZwYTjCEQLGCpyw9Uz4Bmy-bIi4WUvYETgN-TLwGUv3EnHDLPHf1njDzP16srjRsnHnLrf"  target= "_blank"  class= "baidu-highlight" >php< /a >-5.3.10
. /configure  --prefix= /www/wdlinux/php-5 .3.10 --with-config- file -path= /www/wdlinux/etc  --with-mysql= /www/wdlinux/mysql  --with-iconv= /usr  --with-freetype- dir  --with-jpeg- dir  --with-png- dir  --with-zlib --with-libxml- dir = /usr  -- enable -xml --disable-rpath -- enable -inline-optimization --with-curl -- enable -mbregex -- enable -mbstring --with-mcrypt= /usr  --with-gd -- enable -gd-native-ttf --with-openssl --with-mhash -- enable - ftp  --with-apxs2= /www/wdlinux/apache/ <a href= "https://www.baidu.com/s?wd=bin&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1YYmhf3nymvujnzuyn1uHDz0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6KdThsqpZwYTjCEQLGCpyw9Uz4Bmy-bIi4WUvYETgN-TLwGUv3EnHDLPHf1njDzP16srjRsnHnLrf"  target= "_blank"  class= "baidu-highlight" >bin< /a > /apxs
make
make  install
rm  -f  /www/wdlinx/php
ln  -s  /www/wdlinux/php-5 .3.10  /www/wdlinux/php
service httpd restart

你可能感兴趣的:(PHP,升级)