一个客户反应网站乱码,使用了zend optimizer加密,检查了下vps发现没装zend optimizer,安装后即可解决乱码问题
代码如下 |
复制代码 |
cd /usr/local/directadmin/custombuild/
vim ./options.conf |
找到zend = no改成zend =yes,然后再执行./build zend,完成后会看到下面的提示
代码如下 |
复制代码 |
[root@my2 custombuild]# ./build zend
File already exists: ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz
Zend Optimizer has been installed.
|
然后重启下apache即可
代码如下 |
复制代码 |
[root@my2 ~]# php -v
PHP 5.2.17 (cli) (built: May 22 2012 02:47:56)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
|