DirectAdmin下安装Zend Opitimizer和eAccelerator

DirectAdmin下安装Zend Opitimizer和eAccelerator

先安装ZendOpitimizerroot上linuxcd /usr/local/srcmkdir  zend去www.zend.com找最新的或适合的ZendOptimizer 这里以apache2和php5.2.4为例的装的ZendOptimizer 3.3.0cd zendwget http://downloads.zend.com/optimi … glibc21-i386.tar.gztar -xzvf ZendOptimizer-3.3.0a-linux-glibc21-i386.tar.gzcd ZendOptimizer-3.3.0a-linux-*./install.sh然后一路回车就好了。遇到覆盖和备份php.ini的时候选择yesokay后~在/usr/local/lib  下,php.ini就被重写保存并且存储了一个php.ini-zend_optimizer.bak 文件(未zendO前的)这样打开你的 phpinfo就能看到有
复制内容到剪贴板
代码:
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies
然后一路回车就好了。遇到覆盖和备份php.ini的时候选择yesokay后~在/usr/local/lib  下,php.ini就被重写保存并且存储了一个php.ini-zend_optimizer.bak 文件2,接着安装
yum install autoconfyum install automakecd /usr/local/srcmkdir cd wget http://bart..net/source/0.9.6/-0.9.6.tar.bz2tar -xvjf -0.9.6.tar.bz2cd -0.9.6export PHP_PREFIX=”/usr/local”$PHP_PREFIX/bin/phpize./configure –enable-=shared –with-php-config=$PHP_PREFIX/bin/php-configmake && make installcd /tmpmkdir chmod 0777
编辑 php.ini
cd /usr/local/libvi php.ini
在[Zend]上面加
[]zend_extension=”/usr/local/lib/php/extensions/no-debug-non-zts-20060613/.so”.shm_size=”32″.cache_dir=”/tmp/.enable=”1″.optimizer=”1″.check_mtime=”1″.debug=”0″.filter=””.shm_max=”0″.shm_ttl=”0″.shm_prune_period=”0″.shm_only=”0″.compress=”1″.compress_level=”9″
#重启apache
service httpd restart
php -v查看结果
]]>

原创文章,作者:keyboard,如若转载,请注明出处:http://www.708034.com/2010/08/directadmin%e4%b8%8b%e5%ae%89%e8%a3%85zend-opitimizer%e5%92%8ceaccelerator/

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注