- wget http://bart.eaccelerator.net/source/0.9.6.1/eaccelerator-0.9.6.1.tar.bz2
- tar xvfj eaccelerator-0.9.6.1.tar.bz2
- cd eaccelerator-0.9.6.1
- /usr/bin/phpize
- ./configure –enable-eaccelerator=shared –with-php-config=/usr/bin/php-config
- make
- make install
- cd /
- rm -rf eaccelerator-0.9.6.1
- rm eaccelerator-0.9.6.1.tar.bz2
- vi /etc/php.d/eaccelerator.ini
- OpenVZ
- extension=”eaccelerator.so”
- eaccelerator.shm_size=”0″
- eaccelerator.cache_dir=”/tmp/eaccelerator”
- eaccelerator.enable=”1″
- eaccelerator.optimizer=”1″
- eaccelerator.check_mtime=”1″
- eaccelerator.debug=”0″
- eaccelerator.log_file = “/var/log/eaccelerator_log”
- 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″
- eaccelerator.keys = “disk_only”
- eaccelerator.sessions = “disk_only”
- eaccelerator.content = “disk_only”
- Xen
- extension=”eaccelerator.so”
- eaccelerator.shm_size=”64″
- eaccelerator.cache_dir=”/tmp/eaccelerator”
- eaccelerator.enable=”1″
- eaccelerator.optimizer=”1″
- eaccelerator.check_mtime=”1″
- eaccelerator.debug=”0″
- eaccelerator.log_file = “/var/log/eaccelerator_log”
- 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″
- eaccelerator.keys = “shm_and_disk”
- eaccelerator.sessions = “shm_and_disk”
- eaccelerator.content = “shm_and_disk”
- mkdir -p /var/cache/eaccelerator
- chmod 0777 /var/cache/eaccelerator
- service httpd restart
- php -v
Virtualmin安装eaccelerator
未经允许不得转载:优惠吧 » Virtualmin安装eaccelerator
评论前必须登录!
注册