NAME

MATT::Apache - Install Apache 1 or 2 on FreeBSD


SYNOPSIS

Builds a high performance statically compiled web server with SSL, PHP, and Perl support.


DESCRIPTION

A couple functions used to build Apache with all the dependencies and a few things I like such as:

mm, gettext, libtool, p5-libwww, cronolog

InstallApache2

use MATT::Apache; InstallApache2();

Builds Apache from sources with DSO for all modules. Also installs mod_perl2 and mod_php4.

Currently tested on FreeBSD and Mac OS X. On FreeBSD, the lang/php4 version is installed. It installs both the PHP cli and mod_php4. This is done because the SpamAssassin + SQL module requires pear-DB and the pear-DB port thinks it needs the lang/php4 port installed. There are other ports which also have this requirement so it's best to just have it installed.

This script also builds default SSL certificates, based on your preferences in openssl.cnf (usually in /etc/ssl) and makes a few tweaks to your httpd.conf (for using PHP & perl scripts).

InstallApache1

use MATT::Apache; InstallApache1(``/usr/local/src'')

Builds Apache from sources with DSO for all but mod_perl which must be compiled statically in order to work at all.

Will build Apache in the directory as shown. After compile, the script will show you a few options for testing and completing the installation.

Also installs mod_php4 and mod_ssl.

ApacheConfPatch

Patch apache's default httpd.conf file. See the patch in contrib of Mail::Toaster to see what changes are being made.

InstallApacheSSLCerts

Builds and installs certificates in the locations that Apache expects them. This allows me to build a SSL enabled web server with a minimal amount of human interaction.

InstallDSACert

Builds and installs a DSA Certificate.

InstallRSACert

Builds and installs a RSA certificate.

        use MATT::Apache;
        InstallRSACert($crtdir, $keydir);

Dependencies

Matt::Bundle - http://www.tnpi.biz/computing/perl/MATT-Bundle/


AUTHOR

Matt Simerson <matt@cadillac.net>


BUGS

None known. Report any to author.


TODO

Don't export any of the symbols by default. Move all symbols to EXPORT_OK and explicitely pull in the required ones in programs that need them.


SEE ALSO

http://www.tnpi.biz/internet/www/

MATT::Apache, MATT::DNS, MATT::FreeBSD, MATT::Mysql, MATT::Passwd, MATT::Perl, MATT::Qmail, MATT::Quota MATT::SSL, MATT::Utility


COPYRIGHT

Copyright 2003, The Network People, Inc. All Rights Reserved.