php zend 加密乱码,安装ZendOptimizer显示zend加密的网页为乱码

安装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服务即可。

阅读(3064) | 评论(1) | 转发(0) |

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值