Help - Search - Members - Calendar
Full Version: [HOWTO] Install Eaccelerator
Hostony Board > CLOUD VPS and Dedicated Servers > CLOUD VPS and Dedicated servers - Tuning
ser_pros
1. Download Eaccelerator, extract and CD into
wget http://easynews.dl.sourceforge.net/sourcef...or-0.9.3.tar.gz
tar -zxf eaccelerator-0.9.3.tar.gz
cd eaccelerator


2. Find out where php is
which php
Example: "/usr/local/php" you want to ignore the /php, all you want is the prefix to php directory. In my installation it was "/usr/local"
*All BLUE text represents where your php prefix should be.


3. Create configuration files, run in SSH, DO NOT MKDIR
/usr/local/bin/phpize


4. Compile eaccelerator
./configure --enable-eaccelerator=shared --with-php-config=/usr/local/bin/php-config

make
make install



5. Now install eaccelerator
You need to edit your php.ini file usually located (/etc/php.ini)

You now have two options of installing eaccelerator

A. As a Zend extension:
#the location of eaccelerator.so will vary on your installation
zend_extension="/usr/lib/php4/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"


B. As a PHP extension
#the location of eaccelerator.so will vary on your installation
extension="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"



6. Create cache directory
mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator

7. Reboot Apache
/etc/rc.d/init.d/httpd restart
Niels
Thanks, look intresting.
I would like to see more of these howto's and tips.

Nice new forum layout/topics btw

-
Niels
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here