Postagens

Mostrando postagens de abril, 2009

(Script Shell) Instalar o eAccelerator 0.9.5.3 no Apache 2.2.11 e PHP 5.2.6 no Debian e Ubuntu

Criar o seu arquivo de Shell Script e copiar em baixo: #!/bin/sh ########################################### ##### Instalar o eaccelerator no PHP5 ##### ########################################### ## Variaveis de comandos ## APACHE=$(which apache2) PHP5=$(which php5) PHPIZE5=$(which phpize5) PHPCONFIG5=$(which php-config5) WGET=$(which wget) CHMOD=$(which chmod) TAR=$(which tar) MAKE=$(which make) if [ "$USER" = 'root' ] ; then if ! [ -x $APACHE ] ; then aptitude install apache2 fi if ! [ -x $PHP5 -a -x $PHPIZE5 -a -x $PHPCONFIG5 ] ; then aptitude install php5 php5-dev build-essential fi if ! [ -f /etc/php5/conf.d/eaccelerator.ini ] ; then cd /opt/ $WGET -c http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.tar.bz2 $CHMOD +x eaccelerator-0.9.5.3.tar.bz2 $TAR xvfj eaccelerator-0.9.5.3.tar.bz2 cd /opt/eaccelerator-0.9.5.3 $PHPIZE5 ./configure --with-eaccelerator-shared-memory --with-eaccelerator-sessions --with-php-confi...