Wednesday, September 9, 2009

Setup mod_jk on Ubuntu (Dapper) for Ofbiz

Install a few Ubuntu packages required prior to building mod_jk:

#apt-get install libtool automake autoconf apache2-threaded-dev

Download the latest version of tomcat-connectors
Build and install the mod_jk libraries with the following commands:

#tar xvzf tomcat-connectors-1.2.23-src.tar.gz
#cd tomcat-connectors-1.2.23-src/native
#./configure --with-apxs=/usr/bin/apxs2
#make install

Short cut
#sudo apt-get install libapache2-mod-jk

This installed the libraries in /usr/lib/apache2/modules.
Create /etc/apache2/mods-enabled/jk.load:
equal to-

LoadModule jk_module /usr/lib/apache2/modules/
Create /etc/apache2/mods-enabled/jk.conf:

JkWorkersFile /etc/apache2/
JkLogFile /var/log/apache2/jk.log
JkMount /ecommerce/* worker1
JkMount /images/* worker1
JkMount /content/* worker1

Create /etc/apache2/

# Define 1 real worker using ajp13
# Set properties for worker1 (ajp13)

There are no extras defined here. This is only to get things up and running. There are extra steps that you should take to ensure that things are secure.

No comments:

Post a Comment

tag ur valuable ideas below