由于FreeBSD系统的安全性和稳定性以及该系统下PHP运行的良好口碑,越来越多的人开始选择他做为自己的服务器系统平台。
Zend Optimizer(下简称ZO)是PHP官方推荐的PHP代码优化工具,在FreeBSD下安装ZO时,一个常见的问题是明明提示安装成功,但是在查看phpinfo()时,却发现ZO并没有正常加载,或者加载了也不工作,本文介绍的就是这一问题的解决办法。
Zend Optimizer安装文档中的说明:
引用
The Zend Optimizer will not run if the following PHP settings are enabled:
Debug Mode - Check that your PHP was compiled in non-debug mode -
This can be checked by looking at the top part of the phpinfo() function
output and checking "Debug Build" row (ZEND_DEBUG in older PHP
versions) - it should say "no".
意思是如果PHP运行在debug模式,ZendOptimizer将不会正常运行。解决这一问题需要:
(1)如果是编译安装PHP,那需要在编译选项里面加上“--disable-debug”
(2)如果是ports安装,在安装选项中去掉DEBUG项。
Written on 2009/02/22 by Doctor - Reads: 548 Comments: 0


























