24 03 2013
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;
git.sh MySQL error “configure: error: Cannot find libmysqlclient_r under /usr. Note that the MySQL client library is not bundled anymore!”