Instalación Por Compilación De Apache, Php Y Mysql
APACHE
Archivo fuente instalado en Centos httpd-2.2.23.tar.gz Procedimiento de Compilacion e Instalacion [root@localhost httpd-2.2.23]#yum install apr-devel.x86_64 apr-util-devel.x86_64 gcc g++ make [root@localhost httpd-2.2.23]# mkdir -p /home/httpd/html [root@localhost httpd-2.2.23]# groupadd web -g 10000 [root@localhosthttpd-2.2.23]# useradd -d/home/httpd/html/ -c'Administrador de paginas web' s/bin/bash -g web -u 10000 web [root@localhost httpd-2.2.23]# ./configure --prefix=/usr/local/apache2 --enable-so--enablerewrite=shared [root@localhost httpd-2.2.23]# make [root@localhost httpd-2.2.23]# make install Configuracion Editar el archivo de configuracion las lineas siguientes [root@localhost httpd-2.2.23]# vim/usr/local/apache2/conf/httpd.conf User web Group web DocumentRoot "/home/httpd/html" Options -Indexes FollowSymLinks
DirectoryIndex index.php index.html index.htm
AddType application/x-httpd-php.php AddType application/x-thhpd-php-source .phps
Agregar el servicio apache a Centos Agregar al inicio del archivo /usr/local/apache/bin/apachectl las siguientes lineas
[root@localhosthttpd-2.2.23]# vim /usr/local/apache/bin/apachectl
### BEGIN INIT INFO # Provides: Servicio WEB
# Required-Start: $syslog # Required-Stop: # Default-Start: # Default-Stop: $syslog 2345 016
#Short-Description: Apache # description: Apache is a World Wide Web server. \ # It is used to serve HTML files and CGI.
### END INIT INFO
Crear un enlace simbolico al archivo nombre apache/usr/local/apache/bin/apachectl en /etc/init.d/ con el
[root@localhost init.d]# ln -s /usr/local/apache2/bin/apachectl apache
[root@localhost init.d]# chkconfig --add apache [root@localhost init.d]#chkconfig --level 2345 apache on
Apache quedo listo y configurado para iniciar con el sistema inciar apache service apache start parar apache service apache stop reiniciar apache service apache restart...
Regístrate para leer el documento completo.