When i installed xampp on my pc. It worked great initially. But after some time, i stuck with an error "this may be due to a blocked port missing dependencies". This error suddenly pops-up when i tried to run the apache server. It took hours for me to fix the issue but after banging my head over the wall I came up with a simple solution.

First lets see, what is this error for?

Actually the xampp installs the apache server with the default port 80. If this port is free in your computer, your installation works fine. But if this port is in use by some other application, you will get this error "this may be due to a blocked port missing dependencies".

Usually, skype use this port. So, if you have skype installed in your computer, you must have got this error.

How to solve this problem?

The solution is simple, just change the port from 80 to some other value.

And, how to do that???

Step 1: Go to xampp/apache/conf directory and open httpd.conf in notepad or some other editor. You can also open it directly from the xampp control panel.

Step 2: Find the following code lines and replace as follows:-
#Listen 12.34.56.78:80
Listen 80

Change this port 80 to any number of your choice, here i have taken 8000.
#Listen 12.34.56.78:1234
Listen 8000

Find the following code in the same file httpd.conf
ServerName localhost

Replace with the following, take the same number you have used in upper code.
ServerName localhost:8000

Save and close the httpd.conf file.

Now, restart the xampp control panel and start the apache server again. If it's working, great, otherwise you need to change another port also i.e. 443 by default.

So, where do you find it?

Open httpd-ssl.conf file located in xampp/apache/conf/original/extra or directly from the xampp control panel

Change
Listen 443
to any port of your choice, here i have taken 4433.
Listen 4433
Change
<VirtualHost _default_:443>
to same port number you have chosen above
<VirtualHost _default_:4433>
Change
ServerName www.example.com:443 or ServerName localhost:443
to
ServerName www.example.com:4433 or ServerName localhost:4433

Save and close the httpd-ssl.conf file.

Restart the xampp control panel and click on start button next to apache.... and boooom its working..

Now, you have to use http://localhost:8000 instead of http://localhost

Please comment if you have any query or you are not able to fix the issue. We will personally help you fixing the issue.