Home  >  Article  >  Backend Development  >  Directadmin installation Zend Optimizer garbled solution_PHP tutorial

Directadmin installation Zend Optimizer garbled solution_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:07:451129browse

Today I found on a friend’s website that the output of the encrypted php file was garbled. Later I found that php was encrypted using zend optimizer. We only need to install Zend Optimizer on the machine. I am using Directadmin. Here is Please introduce the installation steps.

A customer reported that the website was garbled and was encrypted using zend optimizer. After checking the vps, it was found that zend optimizer was not installed. After installation, the garbled problem could be solved

 代码如下 复制代码
cd /usr/local/directadmin/custombuild/
vim ./options.conf

Find zend = no and change it to zend =yes, and then execute ./build zend. After completion, you will see the following prompt

The code is as follows
 代码如下 复制代码

 
[root@my2 custombuild]# ./build zend
File already exists:    ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz
Zend Optimizer has been installed.

Copy code

 代码如下 复制代码

 
[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


[root@my2 custombuild]# ./build zend
File already exists: ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz
Zend Optimizer has been installed.

Then restart apache

The code is as follows Copy code

[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 http://www.bkjia.com/PHPjc/629898.html
www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/629898.htmlTechArticleToday I found on a friend’s website that the output of the encrypted php file was garbled. Later I found that php uses zend optimizer Encrypted, we just need to install Zend Optimizer on the machine...
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