OpenSolaris

Discussions Communities Projects Download Source Browser

Home » OpenSolaris Forums » distribution » discuss

Thread: eon 0.59.4 hostname

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Last Post: Nov 10, 2009 4:31 AM by: patbuck Threads: [ Previous | Next ]
patbuck

Posts: 2
From:

Registered: 11/7/09
eon 0.59.4 hostname
Posted: Nov 7, 2009 8:54 AM
To: Communities » distribution » discuss
  Click to reply to this thread Reply

Hi!

I just tried eon for the first time and it looks like a really cool tool! I am having a problem with my hosts file though.

I ran /bin/setup and entered my hostname of choice when prompted. I also managed to install eon to hard drive using /bin/install.sh. So far so good. Apache however refuses to start (trying to generate a unique id containing the host's IP address) since /etc/hosts maps 127.0.0.1 to "eon" rather than the hostname I chose during installation. If I manually edit /etc/hosts and replace "eon" with my real hostname, I can start apache with svcadm. The change I make to /etc/hosts does not survive the next reboot even though I run /bin/updimg.sh before rebooting. It seems to me that everyone not having eon as hostname would run into this problem which makes me suspect that I am probably doing something terribly wrong.

Cheers,
Patrik

dre2kse

Posts: 274
From: US

Registered: 4/17/06
Re: eon 0.59.4 hostname
Posted: Nov 9, 2009 3:33 PM   in response to: patbuck
To: Communities » distribution » discuss
  Click to reply to this thread Reply

patbuck,

changing hostname shouldn't be a problem.

Couple of possibilities:
try adding /etc/inet/hosts (/etc/inet/ipnodes for ipv6) to /mnt/eon0/.backup instead of /etc/hosts which is a symlink to /etc/inet/hosts before running updimg.sh (have to investigate symlink issue)

change ServerName 127.0.0.1 in /etc/apache2/2.2/httpd.conf to match IP entry in /etc/hosts

patbuck

Posts: 2
From:

Registered: 11/7/09
Re: eon 0.59.4 hostname
Posted: Nov 10, 2009 2:12 AM   in response to: dre2kse
To: Communities » distribution » discuss
  Click to reply to this thread Reply

Thanks dre! Works like a charm after changing etc/hosts/ to /etc/inet/hosts in /mnt/eon0/.backup.

Cheers,
Patrik

Message was edited by: patbuck




Terms of Use | Privacy | Trademarks | Copyright Policy | Site Guidelines
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.
Copyright © 1995-2005 Sun Microsystems, Inc.