From owner-freebsd-questions Wed May 9 17:24:46 2001 Delivered-To: freebsd-questions@freebsd.org Received: from vasquez.zip.com.au (vasquez.zip.com.au [203.12.97.41]) by hub.freebsd.org (Postfix) with ESMTP id D5DDE37B422 for ; Wed, 9 May 2001 17:24:41 -0700 (PDT) (envelope-from brendan@tioki.com.au) Received: from PLATO (kenny13.zip.com.au [61.8.18.141]) by vasquez.zip.com.au (8.9.3/8.9.3/Debian 8.9.3-21) with SMTP id KAA29825; Thu, 10 May 2001 10:24:37 +1000 X-Authentication-Warning: vasquez.zip.com.au: Host kenny13.zip.com.au [61.8.18.141] claimed to be PLATO From: "Brendan Byrne" To: "FreeBSD Mail List" Cc: "Howard Picken" Subject: RE: a bit of help with hosts Date: Thu, 10 May 2001 10:23:34 +1000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I have Windows units on the network (TCP/IP) and mine has Apache, > MySQL and PHP installed and running (named localhost). > > I would like to keep my unit running as is but I would like > to duplicate the configuration on the FreeBSD box (named bsdbox). > I don't know much about what you need to do, but it is a start. I can suggest that you want to change the name of your windows 'localhost' machine. Perhaps to winhost.home.net 'localhost' is usually an alias on unix for the loopback device (when it needs to talk to it's self.) This could cause problems. What is the full entry of your /etc/hosts file? It could look something like: # /etc/hosts #IP hostname alias 127.0.0.1 localhost.home.net localhost 192.168.1.1 bsdbox.home.net bsdbox 192.168.1.100 winbox.home.net winbox I guess that you would need to tell the windows box about the BSD box too. I am not so sure about the resolv.conf file config but it shows the address of where to send packets that are not for the 'local' network, (in the above example, if they are not for the 192.168.1.*) On our BSD dial-up host, the /etc/resolv.conf is similar to (names and addresses changed): # /etc/resolv.conf domain home.net nameserver 127.0.0.1 I think there may be some more that you need to do to apache and I don't know anything about mysql for unix... Good Luck! Brendan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message