how i config php5-3-3-ZendGuardLoader-so-config
文字内容如下:
******************
Zend Guard Run-time support missing!
One more more files on this web site were encoded by ZendGuard and the required run-time support is not installed orproperly configured.
For the Web site user
This means that this Web server is not configured correctly to runthe files that it contains. Please contact the Web site'sadministrator/webmaster and inform them of this problem and give themthe URL you are trying to display to help them in diagnosing theproblem.
For The Site Administrator/Web Master
One or more files on your site were encoded with Zend Guard. Thismay be third party libraries that were provided to you by an ISV. Toallow these files to properly run you need to download and installone of the Zend guard run-time libraries. This is either ZendOptimizer or Zend Loader. The proper files can be downloaded fromhttp://www.zend.com/guard/downloads.This software is provided free of charge.
General Disclaimer: Zend Technologies is not responsible tothe configuration and setup of web sites using Zend Guard technology.Please contact your software vendor if these components were providedby an ISV or consult your Zend Guard Users Guide if these files wereencoded by your organization.
******************
怎么添加配置呢?检查如下
1、检查操作系统的位数
如果是linux的检查系统的位数,是32bit还是64bit
[root@server1.itlife365.com ~]# file /sbin/init
/sbin/init: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
[root@server1.itlife365.com ~]#
windows自己百度去检查
2、到官网下载ZendGuardLoader的安装包,并添加到php.ini文件中
http://www.zend.com/en/products/guard/downloads
如果你的PHP 版本是5.3,系统是32 bit 请用下面的下载地址:
http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
如果你的PHP 版本是5.3,系统是64 bit 请用下面的下载地址
http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz
如果你的PHP 版本是5.4 系统那么请用如下下载地址:
Linux:
http://downloads.zend.com/guard/6.0.0/ZendGuardLoader-70429-PHP-5.4-linux-glibc23-i386.tar.gz
http://downloads.zend.com/guard/6.0.0/ZendGuardLoader-70429-PHP-5.4-linux-glibc23-x86_64.tar.gz
Mac:
http://downloads.zend.com/guard/6.0.0/ZendGuardLoader-70429-PHP-5.4-darwin10.7-x86_64.tar.gz
下载后解压并拷贝到指定目录,比如
#cd /tmp/
#wget -c http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
#tar -zxvf ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
#cd
cp /tmp/ZendGuardLoader-70429-PHP-5.4-linux-glibc23-i386/php-5.4.x/ZendGuardLoader.so /opt/phpfcgi-5.4.45/lib/php/extensions/no-debug-non-zts-20100525/
#其他常见版本下载:
php5.2.17 wget http://museum.php.net/php5/php-5.2.17.tar.gz
#vi /var/www/conf/web9/php.ini (这个目录不清楚的自己新建一个php文件phpinfo.php文件获取)
一般在php.ini 文件添加如下信息
;*****
[Zend.loader]
zend_extension=/opt/phpfcgi-5.4.45/lib/php/extensions/no-debug-non-zts-20100525/ZendGuardLoader.so
zend_loader.enable=1
zend_loader.disable_licensing=0
zend_loader.obfuscation_level_support=3
zend_loader.license_path=
;*****
3、重启apache服务即可
/etc/init.d/httpd restart
4、终结问题,可能配置了还是报错Zend Guard Run-time support missing!
zend guard loader只支持NTS的版本,意味着如果你的php版本是TS的话,就没法使用zend guard loader了,如果你想查看自己的php是ts还是nts的,只需要输出phpinfo,然后搜索下:Thread Safety,disabled对应nts版本,否则为TS.
因此,终极解决办法就是,下载个php NTS版本进行安装即可。
how-to-itlife365.com-php5.3.3-config-zend-guard-on-ispconfig.png
ispconfig 在直接的独立网站上配置,比如下图在界面上配置。
千万不要配置在全局变量/etc/php.ini ,否则会导致整个服务器的网站都无法打开,cpu 的负载92-96%很高哦。经验啊
一般新手配置的时候会报
ERROR 500 - Internal Server Error!
The following error occurred:
The requested URL caused an internal server error.
If you get this message repeatedly please contact the webmaster.
可能的配置错误是什么呢?
应该是程序不支持Zend Guard Loader解密导致,需降PHP版本,比如使用php5.2,然后使用Zend Optimized就可以了.不要以为PHP越高就好
zend guard loader并不是zend op的升级版, 很多程序只支持zend op解密
如果是这种情况, 就只能退回php 5.2.x + zend op
Zend Guard Run-time support missing!