From owner-freebsd-questions@FreeBSD.ORG Wed Jul 14 20:02:54 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 100DF1065675 for ; Wed, 14 Jul 2010 20:02:54 +0000 (UTC) (envelope-from peter@boosten.org) Received: from smtpq3.tb.mail.iss.as9143.net (smtpq3.tb.mail.iss.as9143.net [212.54.42.166]) by mx1.freebsd.org (Postfix) with ESMTP id 0A5788FC21 for ; Wed, 14 Jul 2010 20:02:52 +0000 (UTC) Received: from [212.54.42.134] (helo=smtp3.tb.mail.iss.as9143.net) by smtpq3.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1OZ8AN-0001Yr-M2; Wed, 14 Jul 2010 22:02:51 +0200 Received: from [84.25.59.18] (helo=ra.egypt.nl) by smtp3.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1OZ8AB-0008Rr-Fd; Wed, 14 Jul 2010 22:02:39 +0200 Received: from mbp.egypt.nl (mbp.egypt.nl [192.168.13.33]) by ra.egypt.nl (Postfix) with ESMTP id 4D9903983E; Wed, 14 Jul 2010 22:02:39 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v1081) From: Peter Boosten In-Reply-To: Date: Wed, 14 Jul 2010 22:02:39 +0200 Message-Id: References: To: Ed Flecko X-Mailer: Apple Mail (2.1081) X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1OZ8AB-0008Rr-Fd X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: geen spam, SpamAssassin (niet cached, score=0.378, vereist 5, BAYES_50 0.00, CM_SLOPPY_BRK1 0.30, HTML_MESSAGE 0.00, SPF_PASS -0.00, TW_ZJ 0.08) X-ZiggoSMTP-MailScanner-From: peter@boosten.org X-Spam-Status: No Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Help with "ezjail-admin create" command 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: Wed, 14 Jul 2010 20:02:54 -0000 On 14 jul 2010, at 21:49, Ed Flecko wrote: > Hi folks, > I've found a website ( http://wiki.freebsd.org/AppserverJailsHOWTO ) > with a tutorial that steps me through most if what I'm trying to > set-up; I'm trying to use ezjail to set up the latest version of > Apache with my website. I've carefully followed the steps, and the > only step that I've found that seems to be wrong is the author's > reference to "default" which doesn't seem to exist; it's actually > "example" so I've changed my commands accordingly. >=20 > I'm confused about the "ezjail-admin create" command. >=20 > When I installed FreeBSD, I set up a partition called "www", because I > thought it might be easier for me to backup all of my web sites, etc., > and it's easier for me to remember where I installed Apache. >=20 > I've modified my ezjail.conf file and the ezjail_jaildir line to read: > ezjail_jaildir=3D/www/jails >=20 > When I issue this command: >=20 > ezjail-admin create -f example apache 192.168.225.128 >=20 > I get this error: >=20 > find: /www/jails/apache/pkg/: no such file or directory > Note: Shell scripts for flavour example installed, flavourizing on > jails first startup. I think you're better off creating a fresh jail, and install apache via = the ports collection. for the templates to work you need to specify all = dependencies by hand. >=20 > It also throws an error about "some services already seem to be > listening on IP 192.168.225.128" >=20 > 1.) What did I screw up? This isn't normal, is it? This is a normal thing. By default services on FreeBSD listen on all = interfaces, and since jails use an alias on an existing interface, it'll = listen on that as well. You will need to change the configurations of = the services on the host for at least all services you will run on the = jail as well (so if your host runs apache, you'll need to reconfigure = apache to listen only on one IP address, or have apache in the jail = listen on another port than 80). Same goes for sshd and other services. >=20 > 2.) When using the "ezjail-admin create" command, the IP address that > I'm passing is supposed to be the IP address of the HOST machine > (because it has the "basejail", right?), isn't it? No, the IP address the jail will have (but you have to create an alias = on the host to that IP address) >=20 > 3.) When I type: find / -name apache >=20 > I get: >=20 > /usr/local/etc/ezjail/apache and /www/jails/apache >=20 > Does the ezjail program create TWO instances of what will be my > "jailed" Apache? Why does it do that? Did I goof something else up, or > is that "normal"? Those are probably symlinks... Peter --=20 Peter Boosten http://www.boosten.org