Network & Academic Computing Services
DCSLIB Apache Information

[Apache Documentation]

Current version numbers in DCSLIB:
* currently not available in dcslib for SGI or Tru64



Copy /dcs/packages/infosys/apache/* to /Web on your system.

You will need to make several modifications to /Web/conf/httpd.conf.
Change values for your server:

ServerName your.host.name
ServerAdmin dcs@uci.edu

User nobody     -> wwwd is the suggested user 
Group #60001

For PHP uncomment:
    #AddType application/x-httpd-php .php
    #AddType application/x-httpd-php-source .phps
For CGI uncomment:
    #AddHandler cgi-script .cgi
For server parsed HTML uncomment:
    #AddType text/html .shtml
    #AddHandler server-parsed .shtml

There are many other modifications you can make, the above are the most common.



For MySQL use /dcs/packages/MySQL/mysql-setup
For freetds put conf/freetds.conf in /Web/php/conf 
For PHP localstatedir = /Web/php/data
        confdir = /Web/php/conf


For SSL you will need the following certificates:
conf/ssl.crt/server.crt
conf/ssl.key/server.key
See SSL FAQ for information on how to get/create them.



"/Web" is the default location for the software.  The "-d" option for
httpd determines the default location of the logs and conf directories.
If you want to use a different directory change all "/Web" to "/xxx"
and start httpd with "/xxx/bin/httpd -d /xyz".  Where "/xxx" is the
location of the software and "/xyz" is the location of the logs and
conf directories.  "/xxx" and "/xyz" can be the same.



PHP files are expected to be in /Web/php.
MySQL files are expected to be in /MySQL.



Start httpd:
/Web/bin/httpd -d /Web
   or
/Web/bin/apachectl start

Start ssl httpd:   
/Web/bin/httpd -d /Web -DSSL
   or
/Web/bin/apachectl startssl




See the Apache HTTP Server manual or apache.org for more information.

[Apache Documentation]





dcs@uci.edu

DCSLib Documentation

Updated: November 13, 2003

University of California, Irvine