Xampp is not running with avast

xampp is running perfectly but yesterday, I have purchased Avast Internet Security and activated it. Now I could start “Apache and MySQL” from xampp but localhost is not responding. Browser shows following error:

This site can’t be reached
localhost refused to connect.

If I stop Avast, everything will be fine. Please help me to resolve this.

Hi, set the Avast FW to private mode.

I just downloaded and installed Avast today. I don’t see FW from the Avast User Interface.

Can you please help to find the place where I need to change this mode?

avast FAQ >> https://support.avast.com/

Firewall >> https://support.avast.com/en-eu/article/Antivirus-Firewall-Application-Rules

===================================================================
NOTE:The Network profiles control the settings which determine how strictly Firewall protects your PC.

Private: a lower level of security suitable for when your PC is connected to a trusted network such as your home or work network. This profile enables better connectivity, and permits all communication within the network.

Public: a higher level of security suitable for when your PC is connected to a public network such as in a cafe or airport. Because public networks present greater security risks, no incoming communication is permitted when this profile is set.

I have opened Firewall Interface and is in “Off” mode. I couldn’t change it to “ON” mode.

Try the following:

Repair & Clean Install of Avast https://goo.gl/t7aJGq
Repair Avast:
Control Panel> Program and Features (Add/remove program)>Select Avast> Select Repair. Reboot when completed
https://www.avast.com/faq.php?article=AVKB204

If Repair doesn’t fix the problem, try the following:
If your Avast settings are not the default settings and you want them restored after the Clean Install, follow this before removing Avast.
https://goo.gl/TXjM7h
Clean Install of Avast:
https://goo.gl/4Ptzkf
If you need additional help with the Clean Install, watch this:
https://youtu.be/p-h3myRD51A