天天看點

php5.3更新腳本

在lanmp/wdcp/wdOS的目前版本中,預設的php都是用到5.2.17的版本

如需要更新到php5.3的,可使用如下腳本更新

(注:此更新無安全漏洞等原因,隻為某些追求高版本或應用需求需要高版本,對于無這個必要的同學,可不用更新)

sh php_up53.sh

看到"php update is OK"提示

表示,順利完成

如有錯誤或不行,将問題回報上來

備注:

該更新隻是更新PHP的版本,相應的zend,eaccelerator沒有更新

且zend opt從php5.3開始已不再支援,也就是說有用到zend opt的,就不要更新了,否則隻會瞎折騰

不過可以使用Zend Guard Loader

安裝

sh ZendGL_ins.sh

eaccelerator也隻要最新的0.9.6.1版本

sh eac0961_ins.sh

解決阿裡雲安裝PHP5.3上遇到: virtual memory exhausted: Cannot allocate memory

修改php_up53.sh

make clean

./configure --prefix=/www/wdlinux/apache_php-${Ver} --with-config-file-path=/www/wdlinux/apache_php-${Ver}/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 --enable-sockets --enable-zip --with-apxs2=/www/wdlinux/apache/bin/apxs --disable-fileinfo