Small steps through software development

Did you get one of the following errors when trying to start Apache from XAMPP control or using apache_start.bat?

(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:443 no listening sockets available, shutting down
Unable to open logs

or

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
Unable to open logs

There are several ways to fix this. One option would be to change IIS port bindings, which I will cover in a future post.

Another option is to change the httpd.conf, under: <xampp_install_dir>\apache\conf. Look for a line that says Listen: 80. Replace 80 with any other available port (e.g. 8080).

Then, you may still get the complaint about port 443. If you look through the httpd.conf,  you won’t be able to find 443. But, you will find the following:

# Secure (SSL/TLS) connections
Include “conf/extra/httpd-ssl.conf”

Look in the httpd-ssl.conf file, and replace 443 with some other port.

Enjoy!

About these ads

Comments on: "Apache cannot start error (OS 10048) about port 443 / 80" (9)

  1. Thank you for the solution, very useful ^^

    • Pretty Cool. I love the solution you provide unlike the forums. I had really searched until I stumbled onto your blog. Thanks

  2. Thank you, this solved quickly my problems and the conflict with visual studio installation.

  3. thank you:-) wonderful solution..

  4. Searched for the whole night for the solution, thanks! :)

  5. Thanks you save my time

  6. Great way to explain the solution. Thank you very much.

  7. Thanks for the tip with port 443

  8. marcelo said:

    Check Listen 127.0.0.1:80 does not appear twice. That it there is no listener for any port for virtual host twice. it could even be 0.0.0.0 or other variant

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Tag Cloud

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: