欢迎光临
我们一直在努力

DirectAdmin安装eAccelerator

 

yum -y install autoconf automake
       cd /usr/local/src
       mkdir eAccelerator
       cd eAccelerator

wget http://downloads.sourceforge.net/project/eaccelerator/eaccelerator/eAccelerator%200.9.6.1/eaccelerator-0.9.6.1.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Feaccelerator%2F&ts=1330173002&use_mirror=cdnetworks-kr-2

 

unzip eaccelerator-0.9.6.1.zip

cd eaccelerator-0.9.6.1

export PHP_PREFIX="/usr/local"
      $PHP_PREFIX/php5/bin/phpize

 

./configure –enable-eaccelerator=shared –with-php-config=$PHP_PREFIX/php5/bin/php-config

 

make && make install

cd /tmp
       mkdir eaccelerator
       chmod 0777 eaccelerator

 

最后修改PHP.INI【DirectAdmin的SuPHP模式安装的在/usr/local/etc/php5/cgi】
加到ZEND上面
[eaccelerator]
zend_extension="/usr/local/php5/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so"
eaccelerator.shm_size="32"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
最后
service httpd restart

赞(0) 打赏
未经允许不得转载:优惠吧 » DirectAdmin安装eAccelerator
分享到: 更多 (0)

评论 896

评论前必须登录!