Click here to Skip to main content
15,899,754 members
Articles / Operating Systems / Windows

Solution: Apache Start Issues on Windows 8.1

Rate me:
Please Sign up or sign in to vote.
4.80/5 (2 votes)
8 Jan 2014CPOL2 min read 25K   2
This is a solution for Apache start issues on Windows 8.1

I recently installed WAMP on my Windows 8.1 and the installation went fine. After installation, when trying to start Apache server, I noticed that Apache server is not starting properly and was conflicting with something pre-installed on my PC. At the very first glance, I thought it may be IIS and I disabled IIS and it worked like a charm. But I needed to run both IIS and Apache at the same instance and hence I started to look for options. I found an easy solution to this. By default, both IIS and Apache listen at port 80 which causes a conflict between them. You can change the listening port of either of the two from 80 to a different port and the issue gets resolved. To change the listening port of IIS, you can take a look at this post of mine. To change the listening port of Apache, you can go to “httpd.conf” file present in the “\wamp\bin\apache\apache2.2.22\conf” folder on your hard drive where you have installed WAMP and change the Listening port from 80 to an unused port. Once the changes are done, restart the services and it works fine.

Everything was OK for a couple of days and suddenly I noticed that I was trying to start WAMP server again and again and it was failing. I cross-checked my IIS settings for port settings and it was not changed in last couple of days. So, it had to be soemthing other than IIS. I checked the System logs and found 2 weird error messages from Apache while trying to start. They were:

  • (OS 10048) Only one usage of each socket address (protocol/network address/port) is normally permitted. : make_sock: could not bind to address 0.0.0.0:80
  • no listening sockets available, shutting down

Based on the error messages, it was evident that something else was using Port 80 apart from my Apache. I checked all the running applications and started closing each application one by one to find which application was using the port. As soon as I closed Skype, Apache started perfectly OK. This meant Skype also uses port 80 by default if not configured and can create conflicts when using with Apache. To resolve this issue, follow the below steps:

  • Open Skype
  • Go to Tools > Options
  • Go to Advanced > Connection
  • Uncheck “Use Port 80 and 443 as alternatives for incoming connections” and click Save.

    skype

  • Restart Skype & then Apache server.
  • All well now!

Hope you like this post and it helps you a bit. Share if you like it. Cheers!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Founder Rebin Infotech
India India
A passionate developer with over 10 years of experience and building my software company code by code. Experience withMS Technologies like .Net | MVC | Xamarin | Sharepoint | MS Project Server and PhP along with open source CMS Systems like Wordpress/DotNetNuke etc.

Love to debug problems and solve them. I love writing articles on my website in my spare time. Please visit my Website for more details and subscribe to get technology related tips/tricks. #SOreadytohelp

Comments and Discussions

 
QuestionNot a windows 8.1 specific problems Pin
Tomy21059-Jan-14 6:38
Tomy21059-Jan-14 6:38 
AnswerRe: Not a windows 8.1 specific problems Pin
Nitesh Kejriwal10-Jan-14 3:20
professionalNitesh Kejriwal10-Jan-14 3:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.