Nerdier

Adjective: Comparative form of nerdy: more nerdy.

eaccelerator.sh

eAccelerator is a PHP accelerator – http://en.wikipedia.org/wiki/EAccelerator

#!/bin/bash
#
# Install eAccelerator
# To use do; wget http://imadinosaur.net/scripts/eaccelerator && sh eaccelerator
#

cd /usr/src; 

rm -f master*;

rm -rf eaccelerator*;

wget https://github.com/eaccelerator/eaccelerator/tarball/master;

tar -xvf master;

cd eaccelerator*;

phpize;

./configure && make && make install;

echo -e 'extension="eaccelerator.so"\neaccelerator.shm_size="16"\neaccelerator.cache_dir="/tmp/eaccelerator"\neaccelerator.enable="1"\neaccelerator.optimizer="1"\neaccelerator.check_mtime="1"\neaccelerator.debug="0"\neaccelerator.filter=""\neaccelerator.shm_ttl="0"\neaccelerator.shm_prune_period="0"\neaccelerator.shm_only="0"' >> /usr/local/lib/php.ini;

mkdir -p /tmp/eaccelerator;

chmod 0777 /tmp/eaccelerator;

echo "Restarting httpd";

service httpd restart;

echo "Checking php info."

php -i | grep eaccelerator;

Leave a Reply

Your email address will not be published. Required fields are marked *