webdirect
06-18-2005, 06:53 AM
Hello,
I require a server admin to install PHP eAccelerator or a program that serves the same purpose as the PHP requests on my server are high which are causing it to crash. Therefore I need to minimize them.
My linux server is running Cent OS 3.4 (I am 99% sure).
PHP eAccelerator (http://eaccelerator.net/HomeUk)
Please PM me here with your email, IM IDs, price and how long it will take you.
Thanks
DediPlace
06-18-2005, 08:06 AM
Hi,
Installing Eaccelerator is rather easy, you can install it yourselves. You can follow this easy procedure :
Installation:
UPGRADING:
1) To upgrade eaccelerator:
Just download the NEW version of eaccelerator and recompile - same instructions as installating.
NOTE the CHANGES to the directory path in php.ini
2) To upgrade PHP versions:
You need to DELETE the eaccelerator directory that has been compiled, re-untar the eaccelerator gzip file and RE-INSTALL and recompile eaccelerator for every NEW version of PHP.
1) Login as root in SSH
2) Run the following commands in the following order:
cd /
mkdir ea
cd ea
wget http://kent.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.3.tar.gz
tar xvzf eaccelerator-0.9.3.tar.gz
cd eaccelerator-0.9.3
export PHP_PREFIX="/usr"
$PHP_PREFIX/bin/phpize
./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config
make
make install
3) Edit php.ini - usually it's /etc/php.ini or /usr/local/lib/php.ini
Find this:
;Windows Extensions
Above this, comment out or remove the PHPA or mmcache lines if you have them. Replace them with this:
To install as a ZEND extension:
zend_extension="/ea/eaccelerator-0.9.3/modules/eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/tmp/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"
OR to install as a PHP extension:
extension="/ea/eaccelerator-0.9.3/modules/eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/tmp/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"
4) Create the cache directory by doing the following at the command line
mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator
5) Restart Apache
service httpd restart
Done!
Regards,
Charles
webdirect
06-18-2005, 08:27 AM
Thank you DediPlace for those brilliant instructions and also thanks to SolidLogix for the quick installation they carried out for me. I would recommend them to anyone.
Thanks all - once again another of my problems solved quickly on WHT :-)