Instalar eaccelerator
Requirements
————
apache >= 1.3, mod_php >= 4.1, autoconf, automake, libtool, m4
apt-get install php4-dev
#/usr/src/
wget http://keihanna.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.4-rc2.tar.bz2
tar jxvf eaccelerator-0.9.4-rc2.tar.bz2
cd eaccelerator-0.9.4-rc2
export PHP_PREFIX=»/usr»
$PHP_PREFIX/bin/phpize
./configure \
–enable-eaccelerator=shared \
–with-php-config=$PHP_PREFIX/bin/php-config
export PHP_PREFIX=»/usr/local»
make
You must specify the real prefix where PHP is installed in the «export»
command. It may be «/usr» «/usr/local», or something else.
Step 2. Installing eAccelerator
make install
pepito2:/usr/src/eaccelerator-0.9.4-rc2# make install
Installing shared extensions: /usr/lib/php4/20020429/
front3
Installing shared extensions: /usr/lib/php4/20020429/
To install as PHP extension:
en /etc/php/apache2/php.ini
extension=»eaccelerator.so»
# memoria a usar
eaccelerator.shm_size=»256″
eaccelerator.cache_dir=»/var/cache/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″
Step 4. Creating cache directory
mkdir /var/cache/eaccelerator
chmod 0777 /var/cache/eaccelerator
# errores:
error: C++ preprocessor «/lib/cpp» fails sanity check
soluicon: apt-get install g++
Deja una respuesta