2010年5月25日 星期二

CentOS 5: Eaccelerator Installation

eAccelerator is a free open-source PHP accelerator, optimizer, and dynamic content cache. It typically reduces server load and increases the speed of your PHP code by 1-10 times.
Through SSH.
yum install php-devel
yum groupinstall 'Development Tools'
Change directory.
cd /tmp
Get the file.
wget http://bart.eaccelerator.net/source/0.9.5.2/eaccelerator-0.9.5.2.tar.bz2
tar xvfj eaccelerator-0.9.5.2.tar.bz2
Change directory.
cd eaccelerator-0.9.5.2
Phpize.
phpize
./configure
Install it.
make
make install
Create the file /etc/php.d/eaccelerator.ini
vi /etc/php.d/eaccelerator.ini
Enter.
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"
Create /var/cache/eaccelerator ditrectory
mkdir -p /var/cache/eaccelerator
Change permission.
chmod 0777 /var/cache/eaccelerator
Restart Apache.
/etc/init.d/httpd restart

摘自:http://www.php.ph/2007/12/21/centos-5-eaccelerator-installation/

沒有留言:

wibiya widget