From owner-freebsd-questions@FreeBSD.ORG Thu Jul 22 22:20:56 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 54CFA1065670 for ; Thu, 22 Jul 2010 22:20:56 +0000 (UTC) (envelope-from edflecko@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 208EC8FC16 for ; Thu, 22 Jul 2010 22:20:55 +0000 (UTC) Received: by iwn35 with SMTP id 35so10421632iwn.13 for ; Thu, 22 Jul 2010 15:20:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=uy0ufGOfiKDhIF6CKnmqIzPs09I8KYnfeJ9jejLh9lM=; b=gksqw7bk6I9WM5vWkExD1y7DbdkHGM4kJAyAVjRpOGkkfvGUdnM9274bzkm9PGESiF /XOCdYXclB/mhXDENWF5zBWrVh8WN+paL5mfZ7LARQpqkQv8JIGGGmB7fbAxwh3d0ddP urGaX4zRHlU/kB+1KYpC5gkK+Sth9Pkr2T6C8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=nBWUUbBtJe2ct3Cnpt5EPp7CKFMiPrE1RoVdJAUCm/b8yTprMuKdoanmIm2Nnmryep Kd42w3n3aCpcACy89vQ8kC6qNawwF5YZpX4/3kXMNJhqwH/rnSLyIp4t1EH8v+DPWmi0 wWsd8EQCTew6McjesIeKUlxUlCwtVHvD9Kgkc= MIME-Version: 1.0 Received: by 10.231.146.129 with SMTP id h1mr2578584ibv.181.1279837255056; Thu, 22 Jul 2010 15:20:55 -0700 (PDT) Received: by 10.231.118.98 with HTTP; Thu, 22 Jul 2010 15:20:55 -0700 (PDT) Date: Thu, 22 Jul 2010 15:20:55 -0700 Message-ID: From: Ed Flecko To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: How do you automatically start Apache, Bind, etc. in a jail? 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: Thu, 22 Jul 2010 22:20:56 -0000 Hi folks, I have Apache installed in a "qjail" named "webserver" (I.P. address 192.168.225.130) using the "pkg_add -r apache22" command, but how do you get Apache (or Bind, etc.) to automatically start upon boot? I got the jail to start by adding qjail_enable="YES" to hosts' /etc/rc.conf and I also added apache22_enable="YES", but that doesn't seem to work. Suggestions? Also, when I console into the jail, and issue an "apachectl start" command, I get the following error: httpd: apr_sockaddr_info_get() failed for webserver httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName I figured out if I add the IP address of the jail as well as "webserver" to the jails' hosts file, I can start Apache, but I still get this error: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.225.130 for ServerName What am I doing wrong? Finally, rather than installing Apache using the typical "pkg_add -r apache22" command, is there a way to install Apache using the ./configure script? In MY case, I know the EXACT parameters I want to pass to the ./configure script (like enabling SSL, etc), but I don't know how to do this in a "jail". >From the jail console, I tried: cd /usr/ports/www/apache22 ./configure --enable-ssl...etc., etc., etc.??? but this doesn't work. Do I need to do the opposite, i.e., from the HOST console: ./configure --prefix=/PathToJail --enable-ssl...etc., etc., etc??? Thank you! Ed