jfclere 2002/09/10 04:15:15 Modified: jk/xdocs/jk aphowto.xml Log: Add a session and 2 examples for the static linking of mod_jk. Revision Changes Path 1.7 +63 -0 jakarta-tomcat-connectors/jk/xdocs/jk/aphowto.xml Index: aphowto.xml =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/xdocs/jk/aphowto.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- aphowto.xml 10 Sep 2002 08:38:27 -0000 1.6 +++ aphowto.xml 10 Sep 2002 11:15:15 -0000 1.7 @@ -857,4 +857,67 @@ </p> </section> +<section name="Getting mod_jk linked staticly with Apache"> +<p> +mod_jk allows to install mod_jk in the Apache source tree to get a staticly +linked mod_jk. Having mod_jk in the httpd executable brings some performance +improvements. The configure option --with-apache prepare mod_jk to install it +in the Apache source tree. +The option --with-apache works both for Apache-1.3 and Apache-2.0. +The examples below show how to get mod_jk in the httpd process. +</p> + +<subsection name="Installation in Apache-2.0"> +<screen> +<note> /home/apache20/httpd-2.0.40 is the directory where the httpd-2.0 sources +are located. </note> +<type>./configure --with-apache=/home/apache20/httpd-2.0.40</type><br/> +<type>make</type><br/> +<note>Install the mod_jk library and other files in +/home/apache20/httpd-2.0.40/modules: </note> +<type>make install</type><br/> +<note> It is not possible to configure Apache directly because the config.m4 of mod_jk must +be added to the configure of httpd-2.0. </note> +<type>cd /home/apache20/httpd-2.0.40</type> +<type>sh buildconf</type> +<type>configure ... --with-mod_jk</type> +<type>make</type> +<type>make install</type><br/> +</screen> +<p> +The enable-jk=share and enable-jk=static are not supported. --with-mod_jk only +allow static linking of mod_jk. +</p> +</subsection> + +<subsection name="Installation in Apache-1.3"> +<screen> +<note> /home/apache/apache_1.3.26 is the directory where the apache-1.3 sources +are located. </note> +<type>./configure --with-apache=/home/apache/apache_1.3.26</type><br/> +<type>make</type><br/> +<note>Install the libjk library, mod_jk.c, includes and other files in +/home/apache/apache_1.3.26/src/modules/jk: </note> +<type>make install</type><br/> +<note> Configure in the Apache sources: </note> +<type>cd /home/apache/apache_1.3.26</type> +<type>configure ... --enable-module=dir --disable-shared=dir \ </type> +<type> --activate-module=src/modules/jk/libjk.a \ </type> +<type> --disable-shared=jk</type> +<type>make</type> +<type>make install</type><br/> +</screen> +<p> +The --enable-shared=jk is also working and builds a dso file. +</p> +<screen> +<note> Just change the configure in the Apache sources: </note> +<type>configure ... --enable-module=dir --enable-shared=dir \ </type> +<type> --activate-module=src/modules/jk/libjk.a \ </type> +<type> --enable-shared=jk</type> +</screen> +</subsection> + +</section> + </document>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>