From owner-freebsd-questions@FreeBSD.ORG Sun Nov 27 00:18:15 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA81B16A41F for ; Sun, 27 Nov 2005 00:18:15 +0000 (GMT) (envelope-from mv@roq.com) Received: from vault.mel.jumbuck.com (ppp166-27.static.internode.on.net [150.101.166.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2835B43D49 for ; Sun, 27 Nov 2005 00:18:11 +0000 (GMT) (envelope-from mv@roq.com) Received: from vault.mel.jumbuck.com (localhost [127.0.0.1]) by vault.mel.jumbuck.com (Postfix) with ESMTP id CE40E8A062; Sun, 27 Nov 2005 11:18:00 +1100 (EST) Received: from [192.168.0.4] (ppp157-158.static.internode.on.net [150.101.157.158]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vault.mel.jumbuck.com (Postfix) with ESMTP id 8E28F8A01F; Sun, 27 Nov 2005 11:18:00 +1100 (EST) Message-ID: <4388FB42.4020009@roq.com> Date: Sun, 27 Nov 2005 11:18:10 +1100 From: Michael Vince User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.12) Gecko/20051110 X-Accept-Language: en-us, en MIME-Version: 1.0 To: fbsd@brokendown.net References: <20051126105843.vkayeytf4ssc4c80@webmail.nwiz.biz> In-Reply-To: <20051126105843.vkayeytf4ssc4c80@webmail.nwiz.biz> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-questions@freebsd.org Subject: Re: tomcat + apache + java X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 00:18:15 -0000 fbsd@brokendown.net wrote: >Can anyone point me to a surefire how-to to get tomcat & java & apache running >on a FreeBSD 5.3R box. > >Here are the current setup. > >OS : FreeBSD 5.3R >Apache 2.0.50 >Tomcat 5.0.28 >mod_jk - seems to be 1.2.5 >java - jdk1.4.2 > >Thanks, > >Ed > > > Your best off using mod_proxy to connect tomcat and apache2 especially since your after a sure fire way. I also assume because your using Java your after performance, so you the threaded apache2 worker MPM, but it isn't a good idea to load a module like PHP with worker because they aren't particularly thread safe and uses more memory. portupgrade -NRr -m 'WITH_MPM=worker -DWITH_PROXY_MODULES' /usr/ports/www/apache2 Mike