Apache HTTP Server

Adding new users/groups to run Apache (and other programs) as

Apache HTTP ServerDebianLinuxShell ScriptingHere's an example of how to add a new user on Debian. You can use 65533 as the user ID for httpd, and 65532 as the user ID for Apache Tomcat.

Installing Sun Java on Debian

Apache HTTP ServerDebianJavaLighttpd HTTP Server

The Debian Java FAQ entry on installing a Sun Java JVM on Debian has all of the gory details. Here's how I did it on Debian Etch 4.0.

Apache Tomcat 6.0.14

Apache HTTP ServerJavaShell Scripting

The basic steps for installing Tomcat are:

  1. Download the tarball and unpack
  2. Compile the jsvc stub. This is what starts and stops the server. Put the jsvc binary in the $TOMCAT_HOME/bin directory once you have it compiled.
  3. Borrow the tomcat.sh script from the "build_apache" directory of Anlinux CVS for use in /etc/init.d

Testing the Final Product

Apache HTTP ServerJavaLighttpd HTTP ServerPerlPHPShell ScriptingSQL

Apache Status/Info Pages

If you turn on the server-status/server-info pages, you'll get valuable info as far as how Apache is configured and what modules it has loaded.

In the main httpd.conf file, I used the Include directive to include the httpd-info.conf file that comes with Apache, and in that file, I enabled both server-status and server-info:

<Location /server-status>
    SetHandler server-status
    Order allow,deny
    Allow from all
</Location>
ExtendedStatus On
<Location /server-info>
    SetHandler server-info
    Order allow,deny
    Allow from all
</Location>
WARNING! The above directives will allow anyone to view your server-status/server-info pages. You can restrict who can view those pages by changing the Order/Allow directives, like this:
<Location /server-info>
    SetHandler server-info
    Order deny,allow
    Deny from all
    Allow from .yourdomain.com localhost your.ip.address.here
</Location>
Separate multiple entries in the Allow from line with spaces, continue long lines with a backslash (\).

Homemade .mac replacement

Apache HTTP ServerApple Computer

Someone posted a link to a webpage that details how you can set up your own .mac server using Apache with WebDAV, instead of paying for Apple's "services".

OpenSSL 0.9.8e

Apache HTTP ServerEncryptionShell Scripting





./config --prefix=/usr/local/stow/openssl-0.9.8e shared
The 'shared' statement will make OpenSSL build shared libraries. You want this (see e-mail thread at the bottom of this file).
make
make test # (or 'time make test')
sudo make install

Apache 2.2.6

XML feed

The Current Terror Alert Level is...
Terror Alert Level

All content is © Copyright 2013 by Brian Manning, unless otherwise noted. See Site Credits/Categories pages for website and image credits.