安装ZendOptimizer显示zend加密的网页为乱码
mysql-5.1.30.tar.gz.2
httpd-2.2.11.tar.gz
php-5.2.8.tar.gz
ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz
因为ZendOptimizer的安装说明文件仅有短短几句话,且没有任何可选项,先装时直接运行install,
确认输入的Apache与PHP安装路径都没有错。但是完成后导入被zend加密过的网页仍然显示乱码。用phpinfo()
一看,网页并没有显示
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
Zend官网上有这样一段话:
Zend Optimizer did not load
The following phpinfo() output was not displayed:
... with Zend Optimizer vX.Y.Z, Copyright (c) 1998-2007 by Zend Technologies.
It could be that...
* PHP was compiled with debug support.
The phpinfo() output will indicate that ZEND_DEBUG is 'enabled'. Recompile PHP without the debug support.
* PHP used the wrong php.ini or the correct php.ini did not include the optimizer directives.
To identify if the wrong php.ini file was used, run a trace on httpd -X (in the case of Apache module) or on a standalone PHP exec (in the case of cgi) to see which files it tried to open.
* The Zend Optimizer directives in the php.ini file are incorrect.
For example, there may be typos, the path to the optimizer is incorrect, the Zend Optimizer filename was not entered with the correct case, or the directives included extra white space at the beginning of a line or around a '='.
* You are working with the wrong web server installation.
(This will only occur when there are different installations.)
原来PHP目前加载的配置文件为/phpinstallpath/lib/php.ini
(虽然我编译php时指定sysconfdir为/etc/php.ini 但安装了zendoptimizer后生效的配置文件就不是它了)
安装Zend仅修改了/usr/local/Zend/etc/php.ini并做了链接到/etc/php.ini。
解决途径: 将修改了的php.ini文件复制或链接到该位置。重启http服务即可。
阅读(3482) | 评论(1) | 转发(0) |