Date: Sat, 10 Dec 2005 07:47:19 +0100 From: =?iso-8859-1?Q?Fr=E9d=E9ric_de_la_Goublaye?= <fredericdelagoublaye@free.fr> To: <freebsd-java@FreeBSD.org> Subject: *** need help *** apache tomcat mod_proxy_ajp.so Message-ID: <01b101c5fd55$935e3780$0400a8c0@iava> References: <001601c5fb7a$cd81b9a0$0400a8c0@iava> <439786EB.5000503@roq.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, I need to use Apache 22 Tomcat 5.5.12. I already know that I have to include in httpd.conf: LoadModule proxy_ajp_module libexec/apache22/mod_proxy_ajp.so How can I install the mod_proxy_ajp.so on FreeBSD 6.0 ? I used this command to install apache22: #cd /usr/ports/www/apache22 #make install clean No error and apache22 is working well # pkg_info | grep portupgrade portupgrade-20041226_9 FreeBSD ports/packages administration and management tool s # pkg_info | grep apache apache-2.2.0_1 Version 2.2 of Apache web server with prefork MPM. # /usr/local/sbin/portupgrade -RrN -m 'WITH_MPM=worker -DWITH_PROXY_MODULES' /usr/ports/www/apache22 [Updating the pkgdb <format:dbm_hash> in /var/db/pkg ... - 129 packages found (-1 +1) (...). done] ** No such installed package or port: /usr/ports/www/apache22 # whereis mod_proxy_ajp.so mod_proxy_ajp.so: There is nothing in the /libexec directory # cd /libexec/ # ls ld-elf.so.1 May be I miss something in the apache installation. Thanks for support Frederic ----- Original Message ----- From: "Michael Vince" <mv@roq.com> To: "Frédéric de la Goublaye" <fredericdelagoublaye@free.fr> Cc: <freebsd-java@FreeBSD.org> Sent: Thursday, December 08, 2005 2:05 AM Subject: Re: *** need help *** apache tomcat mod_jk FreeBSD 6.0 > Use Apache2.2 which is the latest release stable version of Apache over > the 2.1 series which are just experimental betas and should never be used > in an production environment, but the 2.1 series have shown that 2.2 is > really ready to go straight into production use as far as I am concerned. > > I have been testing with Apache 2.2 which seems to have tons of little > things that are much better about it over the old 2.0 Apache series, one > big one is the new built in AJP protocol module for Tomcat, I am using > Tomcat 5.5.9 which appears to work better with AJP then Tomcat 5.0.x. > As long as you aren't under extereme load AJP gives the best performance > but if you really push the load on the server you might get 503 status > errors in Apache logs, but using AJP does perform more requests/sec > because it uses less CPU over using mod_proxy HTTP style connectors to > Tomcat. > > I use a portupgrade command for the apache22 port to install the proxy > modules and worker MPM via a single portupgrade command. > portupgrade -RrN -m 'WITH_MPM=worker -DWITH_PROXY_MODULES' > /usr/ports/www/apache22 > > Make sure you have 'LoadModule proxy_ajp_module > libexec/apache22/mod_proxy_ajp.so' enabled in httpd.conf > > Then in the virtual host directive of Apache link it with Tomcat 5.5.9 > like so > ProxyPass /javacontext ajp://127.0.0.1:8009/javacontext > > Cheers, > Mike > > Frédéric de la Goublaye wrote: > >> I tried to compile the latest mod_jk downloaded from: >> http://tomcat.apache.org/connectors-doc/ >> >> ./configure --with-apxs=/usr/local/sbin/apxs >> >> Making all in common >> /bin/sh /usr/local/share/apache21/build/libtool --silent --mode=compile >> gcc -I/usr/local/include/apache21 -g -O2 -O2 -fno-strict-aliasing -pipe >> -DHAVE_APR -I/usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib/apr/include >> -I/usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib/apr-util/include >> -g -O2 -I/usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib/pcre -I >> /include -I /include/ -c ./jk_ajp12_worker.c -o ./jk_ajp12_worker.lo >> /usr/local/share/apache21/build/libtool: Can't open >> /usr/local/share/apache21/build/libtool: No such file or directory >> *** Error code 2 >> >> Stop in >> /usr/local/tomcat-5.5.12/jakarta-tomcat-connectors-1.2.15-src/jk/native/common. >> *** Error code 1 >> >> Stop in >> /usr/local/tomcat-5.5.12/jakarta-tomcat-connectors-1.2.15-src/jk/native. >> >> >> so so can you help me to compile a mof_jk for Apache21 and Tomcat5.5.12 >> ? >> >> Many thanks in advance :+) >> >> Well I am used to deal with Java and Tomcat. >> I add preference for FreeBSD but as there are so ... many ??? issues with >> Java/Tomcat/FreeBSd maybe I have better to use a Linux Redhat something >> operating systems to make production server. What is a pity to think >> that! >> >> Is it reasonable to use FreeBSd for a Java/Tomcat/Apache server ? >> >> I already compile and install with success JDK1.4, Tomcat 5.5.12 and even >> SQLITE wrapper for Java under FreeBSD. The next step and the last in >> mod_jk ... >> >> I love FreeBSD so can you help me ? >> >> Thanks in advance >> >> Frédéric >> >> >> ----- Original Message ----- From: "Frédéric de la Goublaye" >> <fredericdelagoublaye@free.fr> >> To: <freebsd-java@FreeBSD.org> >> Sent: Wednesday, December 07, 2005 10:31 PM >> Subject: apache tomcat mod_jk on FreeBSD 6.0 >> >> >>> Hi, >>> >>> I need to install the connection between Apache21 and Tomcat 5.5.12 with >>> mod_jk. >>> >>> Which package should I install ? /usr/ports/www/mod_jk-apache2 ? >>> >>> install -o root -g wheel -m 444 >>> /usr/ports/www/mod_jk2-apache2/work/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/../conf/workers2.properties >>> /usr/local/etc/apache2/workers2.properties.sample >>> install: /usr/local/etc/apache2/workers2.properties.sample: No such file >>> or directory >>> *** Error code 71 >>> >>> I think I can find my way to connect Apache and Tomcat after the good >>> installation of mod_jk. >>> >>> Thanks in advance >>> >>> Frédéric >> >> >> _______________________________________________ >> freebsd-java@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-java >> To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01b101c5fd55$935e3780$0400a8c0>