note 52878 deleted from install.unix.apache2 by nlopess
| From: | nlopess@php.net | Date: | Mon, 16 May 2005 16:48:49 +0000 |
| Subject: | note 52878 deleted from install.unix.apache2 by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-89499@lists.php.net to get a copy of this message | ||
Note Submitter: mtrujillo at unicauca dot edu dot co
----
Instalar y configurar postgres+apache2+php5
instalacion de postgres.
./configure
make
make install
Intalacion de apache2
./configure --enable-so
make
make install
Instalacion de php5
./configure --prefix=/usr/local/apache2/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-pgsql
make
make install
Para iniciar apache:
#>nano /etc/init.d/httpd
#!/bin/sh
case "$1" in
start)
/usr/local/apache2/bin/apachectl start
;;
stop)
/usr/local/apache2/bin/apachectl stop
;;
restart)
$0 stop && sleep 3
$0 start
;;
reload)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart|reload}"
exit 1
esac
Ahora hacer los enlaces simbolicos a los respectivos niveles de ejecucion:
ln -s /etc/init.d/httpd /etc/rc2.d/S20httpd
ln -s /etc/init.d/httpd /etc/rc3.d/S20httpd
ln -s /etc/init.d/httpd /etc/rc4.d/S20httpd
ln -s /etc/init.d/httpd /etc/rc5.d/S20httpd
ln -s /etc/init.d/httpd /etc/rc0.d/K20httpd
ln -s /etc/init.d/httpd /etc/rc1.d/K20httpd
ln -s /etc/init.d/httpd /etc/rc6.d/K20httpd
Ahora solo restar iniciar el servidor:
#>/etc/init.d/httpd start