Installation
Previous  Top  Next

While not necessary it is wise to use Apache to handle HTTP requests rather than using Tomcat, at least if that is possible. We will then connect to port 80 of our server instead of port 8180.

To use Cocoon (or better Tomcat) through Apache we will need to install a module that communicates with the Tomcat server. Tomcat comes with the webapps module, which we need to download first.

Navigate to http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/linux/i386/ and download the file webapp-module-1.0-tc40-linux-glibc2.2.tar.gz. We will install the module once Apache is setup and working, but since it's already compiled this will be easy.

To download Apache navigate to http://www.apache.org/dist/httpd/
and retrieve the file apache_1.3.23.tar.gz. Unpack the archive and run the following commands to compile the source:

./configure --enable-module=rewrite --enable-module=so
make
make install

I then copied (and adjusted the file and directory locations) the httpd startup script from another Redhat installation to the /etc/init.d/ directory.

If you install Apache from an .rpm file then the startup script httpd will be placed in the /etc/init.d directory automatically.