Friday, 27 September 2013

How to Apache Tomcat Intigration with mod_jk on Linux/Centos

httpd-devel (provides /usr/sbin/apxs )
apr-devel (provides the appropriate include files)
apr (required by apr-devel)
apr-util-devel (required by httpd-devel)
apr-util (required by apr-util)

#yum install httpd-devel apr-devel apr apr-util-devel apr-util
#cd /opt/

Download connector:
 http://www.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.37-src.tar.gz
#tar -zxvf tomcat-connectors-1.2.37-src.tar.gz
#cd tomcat-connectors-1.2.37-src/native/
#which apxs (if not getting any output please install gcc)

#yum install gcc gcc-cpp gcc-c++
#which apxs
/usr/sbin/apxs
#./configure --with-apxs=/usr/sbin/apxs --enable-api-compatibility
#find / -name mod_jk.so  (if you got mod_jk.so , it's fine)
#make
#make install

No comments:

Post a Comment

Install XRDP in Centos 7

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum update yum groupinstall "GNOME Desktop" ...