"Too more lines in hosts"
Posted by: v.marcus (---.ipv4.broadband.iol.cz)
Date: January 03, 2019 06:10PM

Hello,

I need your help, my Wampserver is not working.
Here is a message:

Sorry,

There is an error.

The C:\Windows\System32\drivers\etc\hosts file
has 15666 lines
that's far too much for proper operation.
The role of the hosts file is to serve as local DNS,
i. e. to give the connections between local IPs and ServerNames.
Its purpose is absolutely not to be used for filtering unwanted urls.

Press ENTER to continue...

Could you help me, please?
Thank you very much.
v.marcus

Options: ReplyQuote
Re: "Too more lines in hosts"
Posted by: Otomatic (Moderator)
Date: January 03, 2019 06:22PM

Hi,

You clean up your hosts file to leave only the next two lines and nothing else.
127.0.0.1 localhost
::1 localhost
There may be additional lines, but only if you use VirtualHost.

------------------------------------------------------------------------------------------------------------
Wampserver 3.2.0 32 bit - Apache 2.4.41 - PHP 7.4.0/7.3.12/..../5.6.40 - MySQL 5.7.28 - MariaDB 10.4.10
Wampserver 3.2.0 64 bit - Apache 2.4.41 - PHP 7.4.0/7.3.12/..../5.6.40 - MySQL 5.7.28/8.0.18 - MariaDB 10.4.10
PhPMyadmin 4.9.2 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: "Too more lines in hosts"
Posted by: usalabs14 (---.tc.ph.cox.net)
Date: October 28, 2019 08:44AM

I know this is a slightly old threaad, but if you see that error produced by WAMPP, just ignore it, the hosts file CAN and DOES get used for blocking unwanted websites, it's used by Spybot Search & Destroy, I have 15622 lines in hosts file put there by Search & Destroy, and I'm damned if I'm going to remove them and allow unwanted sites, just for the sake of WAMPP,,, anyway, even though I have that many entries in the hosts file, WAMPP still works.

So if anyone sees that message from WAMPP just ignore it.

Options: ReplyQuote


Sorry, you can't reply to this topic. It has been closed.