Speeding up your website using eaccelerator and memcache/memcached
Php default behaviour is always re-compile our script everytime accessed by users/browsers. eaccelerator can increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the speed of your PHP code by 1-10 times.
memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.
Here’s how to install eaccelerator extension
$ wget http://bart.eaccelerator.net/source/0.9.6/eaccelerator-0.9.6-rc1.tar.bz2 $ tar xjf eaccelerator-0.9.6-rc1.tar.bz2 $ cd eaccelerator-0.9.6-rc1 $ phpize $ ./configure $ make $ sudo make install $ cd /var/cache $ sudo mkdir eaccelerator $ sudo chown -R apache:apache eaccelerator