Wednesday, December 01, 2004

Setting up java tomcat on linux IV - Install APACHE

Install APACHE

  • cd /usr/local/src
  • tar xfz httpd-2.0.52.tar.gz
  • cd httpd-2.0.52
  • ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite --enable-ssl --with-ssl=/usr/local/ssl --enable-proxy
  • make
  • make install (supposed to places in /usr/local/apache2, but make install placed it into /usr/locacl/apache2, see if this causes any problems later)


Build/Install MOD_JK Connector

  • cd /usr/local/src
  • unzip jakarta-tomcat-connectors-jk-1.2-src-current.zip
  • cd jakarta-tomcat-connectors-jk-1.2.6-src/jk/native
  • ./buildconf.sh
  • ./configure --with-apxs=/usr/locacl/apache2/bin/apxs
  • make
  • cp apache-2.0/mod_jk.so /usr/local/apache2/modules


Configure Apache for mod_jk

Put these lines in /usr/locacl/apache2/conf/http.conf just before NameVirtualHost

<IfModule !mod_jk.c>

LoadModule jk_module modules/mod_jk.so

</IfModule>

No comments:

Post a Comment