this may be due to a blocked port missing dependencies – XAMPP Error

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 “this may be due to a blocked port missing dependencies” 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 80

Change this port 80 to any number of your choice, here i have taken 8000.
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

Listen 443
to any port of your choice, here i have taken 4433.
Listen 4433
<VirtualHost _default_:443>
to same port number you have chosen above
<VirtualHost _default_:4433>
ServerName or ServerName localhost:443
ServerName 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

Click on the subscribe bell on right bottom corner of the page to get updates about our new posts.

About the Author Aman Dhanda

Aman Dhanda, Founder & CTO of Webolute, is a passionate developer with 10 years of experience in the industry. He focuses on all aspects of websites, ensuring good strategy, excellent speed & performance, search engine-friendly coding, and high responsiveness to all device sizes. He can help you with Branding, Website designing & development, Website maintenance, Digital Marketing, SEO and Social Media Management.

Contact Us

We provide our services around the globe.

[email protected]

+971 5859 22 123

If you have any questions or doubts, fill out the form below.
We'll get back to you ASAP.

    This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.