WDCP升级安装php5.3 php5.4和zend guard等常见组件的方法

wget http://downinfo.myhostadmin.net/vps/memcached_ins.sh
sh memcached_ins.sh

其他脚本
http://downinfo.myhostadmin.net/vps/mysql_innodb_ins.sh
http://downinfo.myhostadmin.net/vps/iconv_ins.sh
http://downinfo.myhostadmin.net/vps/soap.sh
http://downinfo.myhostadmin.net/vps/bcmath_ins.sh
http://downinfo.myhostadmin.net/vps/exif_ins.sh
http://downinfo.myhostadmin.net/vps/sockets_ins.sh
http://downinfo.myhostadmin.net/vps/zip.sh

php5.2 安装pdo:

wget http://downinfo.myhostadmin.net/vps/pdo_mysql_ins.sh

sh pdo_mysql_ins.sh

php5.3安装pdo:

wget http://downinfo.myhostadmin.net/vps/pdo_mysql_ins5.3.sh

sh pdo_mysql_ins5.3.sh
升级到php5.3

wget http://down.wdlinux.cn/in/php_up53.sh
sh php_up53.sh
wget http://down.wdlinux.cn/in/ZendGL_ins.sh
sh ZendGL_ins.sh
wget http://down.wdlinux.cn/in/eac0961_ins.sh
sh eac0961_ins.sh
shutdown -r now
注意:升级后将不支持Zend Optimizer,将会和以前程序不兼容,需确认程序必须使用5.3方可执行(执行要进行大量编译,一般半小时-1小时才能安装完成)
升级到php5.4
wget http://downinfo.myhostadmin.net/vps/php_up54.sh

sh php_up54.sh

升级PHP5.5

wget http://soft.laozuo.org/wdcp/php_up55.sh
sh php_up55.sh

如果需要安装其它版本用这样即可:sh php_up54.sh 版本号;

如最新的版本号是5.5.15,使用sh php_up54.sh 5.5.15即可

安装zend guard,

wget http://downinfo.myhostadmin.net/vps/Zendguard6.sh
sh Zendguard6.sh 5.4

php5.5.x版本,执行sh Zendguard6.sh 5.5

php5.6.x版本,执行sh Zendguard6.sh 5.6

重启服务
wdcp安装mod_encoding

wdcp安装mod_encoding实现中文文件名访问

wget -c "http://download.west263.net/linux/mod_encoding_2010.zip"
unzip mod_encoding_2010.zip
cd mod_encoding_2010
patch -p0 < mod_encoding.c-apache2.2-20060520.patch
cd lib
chmod 777 configure
./configure --prefix=/usr
make
make install
ldconfig
cd ../
chmod 777 configure
./configure --with-apxs=/www/wdlinux/apache/bin/apxs --with-iconv-hook=/usr/include
make
gcc -shared -o mod_encoding.so mod_encoding.o -Wc,-Wall -Llib -liconv_hook
cp mod_encoding.so /www/wdlinux/apache/modules/

vi  /www/wdlinux/apache/conf/httpd.conf
添加一下内容到加载模块的部分:
LoadModule encoding_module modules/mod_encoding.so
<IfModule mod_encoding.c>
EncodingEngine on
NormalizeUsername on
SetServerEncoding GBK
DefaultClientEncoding UTF-8 GBK GB2312
</IfModule>

avatar

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: