"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.1.7 32 bit - Apache 2.4.38 - PHP 7.3.2/7.2.15/7.1.26/7.0.33/5.6.40 - MySQL 5.7.25 - MariaDB 10.3.13
Wampserver 3.1.7 64 bit - Apache 2.4.38 - PHP 7.3.2/7.2.15/7.1.26/7.0.33/5.6.40 - MySQL 5.7.25/8.0.14 - MariaDB 10.3.13
PhPMyadmin 4.8.5 - 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


Sorry, only registered users may post in this forum.