Monday, July 5, 2010

Creating Covalent Apache 2.2 instance from ERS 4.0.2 httpd on Linux

1. Get the download of Apache 2.2 add-on "ers-4.0.2-apache-2.2.15-x86-linux-glibc2-20100326.zip.sfx"
2. Change file mode to make it executable
3. Invoke the file to self-extract the contents:
# ./ers-4.0.2-apache-2.2.15-x86-linux-glibc2-20100326.zip.sfx
The archive unpacks all files into the current directory. When it finishes, you should see the following:
apache2.2 ERS_LICENSE.txt fixrootpath.pl perl5.8 php5.2 servers
apache2.2-64 ers-server.pl licenses perl5.8-64 php5.2-64 tools
4. Invoke the fixrootpath.pl perl script
# perl fixrootpath.pl
5. Customize Apache2.2 httpd
# vi [ers-home_install-dir]/servers/test-apache2.2/conf/httpsd.conf
6. Test the Apache HTTP Server 2.2 installation with the provided servers/test-apache2.2
or servers/test-apache2.2-64 instances. For example, start the test-apache2.2 instance as follows:
# cd servers/test-apache2.2
# bin/apache_startup.sh start ( and to stop: # bin/apache_startup.sh stop )
7. Point browser to http://localhost:8080
Enter username "spring", with password "spring" to authenticate to the ERS httpd instance home page

Create new instance for non-test environments:

5a.Create ERS instance:
# perl ers-server.pl --server=apache2.2 --serverdir=servers/apache2.2 --apachever=2.2
ers-server.pl - install an ERS 4.0 server instance
from the default (_instance/ trees) template

Creating new server instance [ers-home_install-dir]/servers/apache2.2
Apache httpd version 2.2

Configuring for Apache 2.2

Use threaded 'worker' MPM [y/n]? y
Enable mod_php5 [y/n]? y
Enable mod_perl [y/n]? y
Enable mod_snmp [y/n]? y
Modify the httpsd.conf to make additional adjustments.

Server hostname (e.g. www.example.com) [apache2.2]? localhost [or x.x.x.x]
Administrator email [webmaster@x.x.x.x]?
Port for http:// traffic [8080]? 5000
Port for https:// SSL traffic [8443]? 5001
Port for ajp13, jk->tomcat [8009]? 5002
Tomcat ajp13 servername [localhost]?
Modify workers.properties to make additional adjustments.

Creating a sample conf/userfile, add initial users
New username (or <Enter> if done): [user]
New password: [password]
Re-type new password: [password]
Adding password for user [user]

New username (or <Enter> if done):

Enable SSL and create a default key [y/n]? n

New server instance created in
[ers-home_install-dir]/servers/apache2.2

Thank you for choosing SpringSource Enterprise Ready Server.
6a. Test the Apache HTTP Server 2.2 installation with new instance servers/apache2.2
# cd servers/apache2.2/
# bin/apache_startup.sh start
Starting Apache
Server started OK
7a. Point browser to http://localhost:5000

No comments: