Question: I have a question related to PHP. I am .net developer. I usually work on asp.net and c#.I installed Visual Studio and SQL Server in my laptop.Now I am trying to Install Xampp server on my system. Here I getting some problem.After Installation When it check for port. It show me message port 80 or 443 aleardy in use apache server installation is failed. I Guess it is happening due to IIS installed in my system. I stopped the IIS and Installed it again But the same problem is coming again. I uninstall the Skype too for this but nothing is working for me. Please tell me why this is happening and what is the solution for this. I hope you understand what is my problem. Please help me for this

Answer: 
There are many tools which would let you know which program is using port 80 or 443 already. But I prefer a simple command to do so. Open up a command prompt then type.

```
netstat -a

```

It will let you know which program is using port 80 and for an explanation of all options.

```
netstat /?

```

Second Part of the question to Change the Apache port. You have to change the settings in apache httpd.conf settings from:

```
Listen 80
ServerName localhost:80

```

to

```
Listen 8012
ServerName localhost:8012

```

Then try to run in web browser as **`http://localhost:8012`**
type: 

```
net stop was /y

```

in command prompt as administrator

[![admin command prompt](https://i.stack.imgur.com/a2tR7.jpg)](https://i.stack.imgur.com/a2tR7.jpg)