last update: 19 Mar 1999

[home] [index] [contents] [next] [previous]

apache-1.3.3



3.1 DownLoad
http://www.apache.org/dist/apache_1.3.3.tar.gz

3.2 Install

    3.2.1 Directorios utilizados para la instalaci

    Antes de la instalaci, hay que seleccionar los directorios donde instalar apache, documentos HTML, archivos log.


    3.2.2 Instalaci

    Para instalar apache, debemos ubicarnos primero en un directorio temporal de trabajo, puede ser en /tmp, luego procedemos a desempaquetar el software, a continuaci nos ubicamos en el directorio apache_1.3.3 creado autom疸icamente en el momento de desempaquetar.
      % cd /usr/local
      % gzip -cd apache-1.3.3.tgz | tar xvf -
      % cd apache_1.3.3

    Finalmente damos las siguientes instrucciones:
      % configure --prefix=/usr/local/apache
      % make
      % make install

3.3 Configuraci
"Antes de iniciar apache, debemos configurar los siguientes archivos: httpd.conf, access.conf, srm.conf; que se encuentra ubicados en /usr/local/apache/etc.

  1. httpd.conf
    		# Port: The port the standalone listens to. For ports < 1023, you will
    (linea:36)	Port 80
    
    
    # ErrorLog: The location of the error log file. If this does not start (linea:81) ErrorLog /cache/httpd/logs/error_log
    # The location of the access logfile (Common Logfile Format). (linea:101) CustomLog /cache/httpd/logs/access_log common

    un ejemplo de la configuraci de httpd.conf


  2. access.conf
    		# This should be changed to whatever you set DocumentRoot to.
    (linea:32)	<Directory /usr/local/etc/httpd/htdocs>
    
    
    # /usr/local/apache/share/cgi-bin should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured.
    (linea:58) <Directory /usr/local/etc/httpd/htdocs/cgi-bin>

    un ejemplo de la configuraci de access.conf


  3. srm.conf
    (linea:19)	DocumentRoot /usr/local/etc/httpd/htdocs
    
    
    (linea:24) UserDir /usr/local/etc/httpd/users
    (linea:158) Alias /icons/ "/usr/local/etc/httpd/htdocs/icons/"
    (linea:163) ScriptAlias /cgi-bin/ "/usr/local/etc/httpd/htdocs/cgi-bin/"

    un ejemplo de la configuraci de srm.conf



3.4 Administraci de Apache
Para ejecutar apache, debo de actualizar el archivo /etc/rc2.d/S99apache, en el cual debo agregar las siguientes instrucciones:
#!/sbin/sh
#
# start-up and stop script for apache
# 
# Usage: S99apache {start|stop}
#


PATH=/usr/bin:/bin
case $1 in 'start') if [ -f /usr/local/apache/sbin/apachectl ]; then /usr/local/apache/sbin/apachectl start; echo "httpd (apache) started."; fi ;; 'stop') if [ -f /usr/local/apache/sbin/apachectl ]; then /usr/local/apache/sbin/apachectl stop; echo "httpd (apache) stoped."; fi ;; *) echo "usage: /etc/rc2.d/S99apache {start|stop}" ;; esac

/etc/rc2.d/S99apache



[home] [index] [contents] [next] [previous]