{ Berbagi, Menulis, Dan Mengajar } Ilmu… » 7. Operating System » EACCELERATOR — Sebagai Gantinya Turck mmcache
EACCELERATOR — Sebagai Gantinya Turck mmcache
wget http://kent.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.3.tar.gz
tar -zxf eaccelerator-0.9.3.tar.gz
export PHP_PREFIX=”/usr”
$PHP_PREFIX/bin/phpize
./configure –enable-eaccelerator=shared –with-php-config=$PHP_PREFIX/bin/php-config
make
make install
[] vi /usr/local/lib/php.ini
zend_extension=”/usr/lib/php/extensions/no-debug-non-zts-20041030/eaccelerator.so”
eaccelerator.shm_size=”16″
eaccelerator.cache_dir=”/tmp/ea”
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″
eaccelerator.admin.name=”adminea093″
eaccelerator.admin.password=”***”
Create /tmp/ea (chmod 0777)
Restart httpd
——————–
Cara Gamblang versi English
Installing Eaccelerator
1. First, you’ll want to SSH into your server as the root user. you should
be in the default directory now. If you’re not, type in cd ~
2. Now we’ll make the eaccelerator directory:
mkdir /ea/
cd /ea/
2. Now we’ll grab the files, and untar them:
Notice that it’s a tar.bz2 file, so we need to decompress it twice.
wget
http://heanet.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.4-rc1.tar.bz2
bzip2 -d eaccelerator-0.9.4-rc1.tar.bz2
tar xvf eaccelerator-0.9.4-rc1.tar
3. Now that we’ve done that, let’s install Eaccelerator:
Note: in the following “export†command, you need to point that to where
PHP is installed. For most, it’s usually either “usr/†or “usr/localâ€, but
it may be something else.
cd eaccelerator-0.9.4-rc1/
export PHP_PREFIX=â€/usrâ€
$PHP_PREFIX/bin/phpize
./configure –enable-eaccelerator=shared
–with-php-config=$PHP_PREFIX/bin/php-config
make
make install
Filed under: 7. Operating System