No warranties are made
First goto
http://www.php-accelerator.co.uk/download.php and find the version that suits your platform. In this tutorial for reference, I will be using the Linux alpha version.
'create a directory
root@Server [~]# mkdir /usr/local/phpA
'Go into dir
root@Server [~]# cd /usr/local/phpA
'get the goods
root@Server [~]# wget
http://www.php-accelerator.co.uk/rel...glibc2.1.3.tgz
'unpack
root@Server [~]# gzip -d php_accelerator-1.3.2_php-4.0.6_linux_alpha-glibc2.1.3.tgz
'remove
root@Server [~]# rm -f php_accelerator-1.3.2_php-4.0.6_linux_alpha-glibc2.1.3.tgz
'untar
root@Server [~]# tar -xvf php_accelerator-1.3.2_php-4.0.6_linux_alpha-glibc2.1.3.tar
'go into dir created
root@Server [~]# cd php_accelerator-1.3.2_php-4.0.6_linux_alpha-glibc2.1.3/
'move it one directory down
root@Server [~]# mv * ../
'move yourself one dir down
root@Server [~]# cd ..
'cd to root
root@Server [~]# cd
'change to home
root@Server [~]# cd /home
'make cache directory
root@Server [~]# mkdir phpacache
'set access
root@Server [~]# chmod 577 phpacache
'open up php.ini in vi/pico etc
root@Server [~]# vi /usr/local/lib/php.ini
Now look for Dynamic Exension, after the Dynamic Exension arguments (the end of them), paste the following.
zend_extension="/usr/local/phpA/php_accelerator_[VERSION].so"
phpa.cache_dir = /home/phpacache
phpa.shm_ttl = 12h
phpa.shm_max_processes = 512
phpa.shm_stats_check_period = 5m
phpa.shm_size = 32
phpa.enable_php_memory_bug_workaround = 1
Save php.ini
'restart apache
root@Server [~]# /etc/init.d/httpd restart