Home > 虚拟主机控制面板 > DirectAdmin下安装Zend Opitimizer

DirectAdmin下安装Zend Opitimizer

DirectAdmin下手动安装Zend Opitimizer:

cd /usr/local/src
mkdir zend
cd zend
wget http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz
tar -xzvf ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz
cd ZendOptimizer-3.3.9-linux-glibc23-i386
cd data
cd 5_2_x_comp
cp ZendOptimizer.so /usr/local/lib/ZendOptimizer_5.2.so

注意cd 5_2_x_comp ,这里是因为我使用php 5.2.7所以选择这个,如果你是5.1或者其他版本就要进入相关目录才行
修改配置文件

vi /usr/local/lib/php.ini
在最后面加入
[zend]
zend_optimizer.optimization_level=15
zend_extension=/usr/local/lib/ZendOptimizer_5.2.so

然后重启下httpd服务,用phpinfo()查看,发现了
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies


若非注明,本博客内容均为原创或翻译自Linode Library,教程默认Centos为linux发行版,转载请注明转自linode中文教程www.linode.im。linode中文教程QQ群:185393826,一起讨论linode及linux,linode中文教程、linode代购、linode合租、linode推介、linode返佣、linode优惠。日本VPS、美国VPS、海外独立服务器代购均在linode.im。

  1. No comments yet.
  1. No trackbacks yet.