wget httpd://apache.rediris.es/httpd/httpd-2.0.59.tar.gz
cd /httpd-2.0.59/ y configuramos :
./configure \
--prefix=/usr/local/apache \
--sysconfdir=/etc/apache \
--libexecdir=/usr/libexec/apache \
--mandir=/usr/share/man \
--enable-shared=max \
--enable-module=rewrite \
--enable-module=so
Donde “prefix” indica el destino donde se va a instalar el servidor apache y el
“enable so” activa el módulo Dinamyc Shared Object.
make
y make install
ln -s /usr/local/apache/bin/apachectl /etc/init.d/apache
(linkeamos la ruta al directorio donde está el script de inicio para el apache ->init.
d/apache)
ln -s /etc/init.d/apache /etc/rc2.d/S99apache
ln -s /etc/init.d/apache /etc/rc3.d/S99apache
ln -s /etc/init.d/apache /etc/rc4.d/S99apache
ln -s /etc/init.d/apache /etc/rc5.d/S99apache
Reiniciamos el servidor :
/etc/init.d/apache start
/etc/init.d/apache stop
/etc/init.d/apache restart
wget http://es2.php.net/get/php-5.2.1.tar.gz/from/this/mirror
./configure \
--prefix=/usr/local/php \
--sysconfdir=/etc/php \
--libexecdir=/usr/libexec/php \
--mandir=/usr/share/man \
--with-apxs2=/usr/local/apache/bin/apxs \
--disable-debug \
--enable-ftp \
--enable-inline-optimization \
--enable-magic-quotes \
--enable-mbstring \
--enable-mm=shared \
--enable-safe-mode \
--enable-track-vars \
--enable-trans-sid \
--enable-wddx=shared \
--enable-xml \
--with-dom \
--with-gd \
--with-gettext \
--with-mysql=/usr/local/mysql \
--with-regex=system \
--with-xml \
--with-zlib-dir=/usr/lib
Hacemos la instalación :
make
make install
cp php.ini-dist /usr/local/lib/php.ini
ln -s /usr/local/lib/php.ini /etc/php.ini
nano /etc/apache/httpd.conf