Author Topic: Installing mod_jk to Apache web Server  (Read 5899 times)

Romio

  • Global Moderator
  • Full Member
  • *****
  • Posts: 226
Installing mod_jk to Apache web Server
« on: August 01, 2007, 12:30:39 PM »
# go to opt folder and download mod_jk source, url might be different. get from site ..

You can Download it from http://tomcat.apache.org/download-connectors.cgi

To download file by using Proz Use this command
wget "http://apache.siamwebhosting.com/tomcat/tomcat-connectors/jk/source/jk-1.2.22/tomcat-connectors-1.2.22-src.tar.gz"

# untar and unzip
tar xzvf tomcat-connectors-1.2.22-src.tar.gz
cd tomcat-connectors-1.2.22-src

# take backup of current mod_jk module for safety
cp /data/apache2/modules/mod_jk.so /data/apache2/modules/mod_jk.so.1.2.20

# change to native folder and start compiling...DO NOT INSTALL... Will Crash Apache

cd native/
./configure --with-apxs=/data/apache2/bin/apxs
make

# take copy of old workers.pro as for backup...
cp /data/apache2/conf/workers.properties /data/apache2/conf/workers.properties.1.2.20

# change parameters if required....
vi /data/apache2/conf/workers.properties

# stop apache before installing new module...
/data/apache2/bin/apachectl stop
/data/apache2/bin/apachectl stop

# now delete old module
rm -f /data/apache2/modules/mod_jk.so

# install new mod_jk modules....
make install


# start apachge..
/data/apache2/bin/apachectl startssl
W w W . o P e n g U y s . o R g

GoogleTagged