Hi, I am trying to install virtualmin, though it terminates after first "y/n" and it states: "There is no localhost entry in /etc/hosts. Installation cannot continue." I tried to create a "localhost" folder in "/etc/hosts" but nothing is working. I am not a very experienced with webmin and I would like to ask you if you know what does it mean exactly and how to go around this problem. My server is a new CentOS 5 (it was set up only this morning) and everything is working. Here is the address: http://ds330936-1.lcndedicated.com/ Thank you.

Status: 
Active

Comments

Howdy -- can you post the contents of your /etc/hosts file? You can get that by running "cat /etc/hosts".

However, I believe what it's requesting is a line in your /etc/hosts file that looks like this:

127.0.0.1       localhost

Without that line, some things won't work correctly.

Joe's picture
Submitted by Joe on Mon, 07/05/2010 - 10:39 Pro Licensee

That's really weird that your system doesn't have a localhost in the hosts file, as it exists, by default on pretty much every system we support. What kind of install is this? Some sort of VPS, I presume? I don't remember why I added that test, but localhost is definitely a requirement...it's not just an arbitrary thing.

Mail, DNS, and databases will all fail to work in the default configuration without an appropriate localhost entry.