XAMPP localhost does not work correctly

1

Good afternoon. I've been dealing with a problem that has come up with XAMPP for quite a few hours and it's giving me headaches.

A few days ago, apache worked perfectly since I work every day with him but during the last weekend, it stopped working and I do not know for what reason. Xampp starts normally but it seems that "localhost" now does not recognize it.

I have already tried to reinstall XAMPP from scratch, to change the ports in case it was incompatible with other programs that use port 80 and several other things but it still does not work.

Does anyone know what the failure might be? Thanks

I have looked at the Apache error.log file and it contains the following:

[Fri May 06 09:16:45.989120 2016] [ssl:warn] [pid 1280:tid 604] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri May 06 09:16:46.097431 2016] [core:warn] [pid 1280:tid 604] AH00098: pid file D:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri May 06 09:16:46.168301 2016] [ssl:warn] [pid 1280:tid 604] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri May 06 09:16:46.827006 2016] [mpm_winnt:notice] [pid 1280:tid 604] AH00455: Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.20 configured -- resuming normal operations
[Fri May 06 09:16:46.827006 2016] [mpm_winnt:notice] [pid 1280:tid 604] AH00456: Apache Lounge VC11 Server built: Oct 13 2015 10:54:13
[Fri May 06 09:16:46.827006 2016] [core:notice] [pid 1280:tid 604] AH00094: Command line: 'd:\xampp\apache\bin\httpd.exe -d D:/xampp/apache'
[Fri May 06 09:16:46.840723 2016] [mpm_winnt:notice] [pid 1280:tid 604] AH00418: Parent: Created child process 2592
[Fri May 06 09:16:47.305611 2016] [ssl:warn] [pid 2592:tid 704] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri May 06 09:16:47.426765 2016] [ssl:warn] [pid 2592:tid 704] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri May 06 09:16:47.461038 2016] [mpm_winnt:notice] [pid 2592:tid 704] AH00354: Child: Starting 150 worker threads.
    
asked by Alberto Rodriguez Diaz 04.05.2016 в 13:03
source

2 answers

6

I was finally able to solve the problem. For some reason that I still do not know, the file "hosts" had been modified and had no written 127.0.0.1 localhost. So I added that line again and that's it, everything working.

Thanks anyway

    
answered by 09.05.2016 / 12:19
source
1

To solve this problem I did the following:

  • I opened the CMD with the rights of a member.
  • Enter with the following address: windows / system32 / drivers / etc (The address they posted above is wrong, this is the good one)
  • Once in the folder, they put "notepad hotst" and a text file will be opened.
  • It should be like this:

    127.0.0.1 localhost 
    ::1 localhost
    
  • If you have a cat sign at the beginning and spaces, remove them
  • If the address of 127.0.0.1 localhost is repeated, delete the one below the :: 1 localhost, it appeared twice and delete one.
  • answered by 17.11.2016 в 04:01