6608 阅读
0 回复
0 点赞
0 收藏
wget http://down.wdlinux.cn/in/ZendGL_ins.sh sh ZendGL_ins.sh
注:ZendGL_ins.sh脚本代码如下:
#!/bin/bashF="ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz"Aurl="http://dl.wdlinux.cn:5180/soft/"if [[ `uname -m` == "x86_64" ]];then F="ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz"fiif [ ! -f $F ];then wget -c $Aurl/$Ffitar zxvf $F[ $? != 0 ] && echo "file err" && exitif [ ! -d /www/wdlinux/Zend/lib ];then mkdir -p /www/wdlinux/Zend/libfiif [[ `uname -m` == "x86_64" ]];then cp ZendGuardLoader-php-5.3-linux-glibc23-x86_64/php-5.3.x/*.so /www/wdlinux/Zend/lib/else cp ZendGuardLoader-php-5.3-linux-glibc23-i386/php-5.3.x/*.so /www/wdlinux/Zend/lib/figrep '\[Zend\]' /www/wdlinux/apache_php/etc/php.iniif [ $? != 0 -a -f /www/wdlinux/apache_php/etc/php.ini ];thenecho '[Zend]zend_extension = /www/wdlinux/Zend/lib/ZendGuardLoader.sozend_loader.enable = 1' >> /www/wdlinux/apache_php/etc/php.inifigrep '\[Zend\]' /www/wdlinux/nginx_php/etc/php.iniif [ $? != 0 -a -f /www/wdlinux/nginx_php/etc/php.ini ];thenecho '[Zend]zend_extension = /www/wdlinux/Zend/lib/ZendGuardLoader.sozend_loader.enable = 1' >> /www/wdlinux/nginx_php/etc/php.inifiechoecho "ZendGuardLoader is OK"
#!/bin/bash
F="ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz"
Aurl="http://dl.wdlinux.cn:5180/soft/"
if [[ `uname -m` == "x86_64" ]];then
F="ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz"
fi
if [ ! -f $F ];then
wget -c $Aurl/$F
tar zxvf $F
[ $? != 0 ] && echo "file err" && exit
if [ ! -d /www/wdlinux/Zend/lib ];then
mkdir -p /www/wdlinux/Zend/lib
cp ZendGuardLoader-php-5.3-linux-glibc23-x86_64/php-5.3.x/*.so /www/wdlinux/Zend/lib/
else
cp ZendGuardLoader-php-5.3-linux-glibc23-i386/php-5.3.x/*.so /www/wdlinux/Zend/lib/
grep '\[Zend\]' /www/wdlinux/apache_php/etc/php.ini
if [ $? != 0 -a -f /www/wdlinux/apache_php/etc/php.ini ];then
echo '[Zend]
zend_extension = /www/wdlinux/Zend/lib/ZendGuardLoader.so
zend_loader.enable = 1' >> /www/wdlinux/apache_php/etc/php.ini
grep '\[Zend\]' /www/wdlinux/nginx_php/etc/php.ini
if [ $? != 0 -a -f /www/wdlinux/nginx_php/etc/php.ini ];then
zend_loader.enable = 1' >> /www/wdlinux/nginx_php/etc/php.ini
echo
echo "ZendGuardLoader is OK"
[Zend Optimizer] zend_extension=/usr/local/zend/ZendGuardLoader.so zend_loader.enable=1 zend_loader.disable_licensing=0 zend_loader.obfuscation_level_support=3 zend_loader.license_path=[eaccelerator]
使用道具 举报
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
本文内容不够精彩,我要自己发布
|Archiver|手机版|小黑屋|管理员之家 ( 苏ICP备2023053177号-2 )
GMT+8, 2024-12-23 11:01 , Processed in 0.169960 second(s), 22 queries .
Powered by Discuz! X3.5
Cpoyright © 2001-2024 Discuz! Team