Apache2 mod Jk
De BlaxWiki
Aller à la navigationAller à la rechercheApache2 + mod_jk
Base : http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html
Apache2 + mod_jk2 a ete brievement testé, mais s'est révélé pas stable du tout. Nous allons donc utiliser mod_jk , que nous utilisons également avec Apache 1.3
1/ Récupérer les sources du connector ici : https://www.sp.fr.clara.net/files/jakarta-tomcat-connectors-jk-1.2.6-src.tar.gz
2/ Décompresser les sources où bon vous semble ...
3/ Aller dans le répertoire jakarta-tomcat-connectors-jk-1.2.6-src/jk/native/ puis
jk/native#./buildconf.sh
4/ Continuer avec
jk/native#./configure --with-apxs=/usr/bin/apxs2 --with-java-home=${JAVA_HOME} --with-apr=/usr/include/apr-0
5/ Vérifier dans le fichier common/Makefile le contenu de la balise APXSCFLAGS , qui doit ressembler à ca :
APXSCFLAGS=-pipe -I/usr/include/apr-0 -I/usr/include/xmltok -I/usr/include/openssl -O2 -pipe -I/usr/include/xmltok -I/usr/include/openssl -O2 -pthread -DHAVE_APR -I -g -O2 -DEAPI
et le chemin vers LIBTOOL qui doit etre correct :
LIBTOOL = /bin/sh /usr/bin/libtool --silent
6/ Ecrire le fichier Makefile si besoin, puis lancer le make
7/ Ensuite, copier le module mod_jk.so :
# cp /usr/local/src/jakarta-tomcat-connectors-jk-1.2.6-src/jk/native/apache-2.0/mod_jk.so /usr/lib/apache2/modules/.