Home  >  Article  >  php教程  >  Directadmin安装Zend Optimizer乱码解决办法

Directadmin安装Zend Optimizer乱码解决办法

WBOY
WBOYOriginal
2016-05-25 16:40:041354browse

今天在一个朋友网站发现被加密码的php文件输出是乱码了,后来发现php使用了zend optimizer加密了,我们只要在机器上安装Zend Optimizer就可以了,我使用的是Directadmin,下面给大家介绍安装步骤.

一个客户反应网站乱码,使用了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


教程网址:

欢迎收藏∩_∩但请保留本文链接。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn