آموزش نصب eaccelerator در webmin
|
wget http://sourceforge.net/projects/eaccelerator/files/latest/download
unzip eaccelerator-0.9.6.1.zip
cd eaccelerator-0.9.6.1
phpize
./configure
make
make install |
vi /etc/php.d/eaccelerator.ini 编辑入以下内容:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 |
[eaccelerator]
extension="eaccelerator.so"
eaccelerator.shm_size="0"
eaccelerator.cache_dir="/var/cache/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" |
|
mkdir -p /var/cache/eaccelerator
chmod 0777 /var/cache/eaccelerator
service httpd restart |
[root@vps ea]# php -v
PHP 5.2.17 (cli) (built: Feb 19 2011 11:52:47)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
تاریخ ارسال: 2013-06-04
تعداد بازدید: 4582
نویسنده: admin