"Just another Web Dev blog"

Apache2 startup failed: Permission denied in WSL

Posted by Dillon | 23rd October 2019

After updating to the latest version of Windows, build 1903, are you experiencing issues when starting up Apache2 through Windows SubSystem for Linux? Apache2 startup failed: Permission denied in WSL.

(13)Permission denied: AH00072: make_sock: could not bind to address [::]:80
(13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80

Follow the steps below to fix this problem:

Step 1

Search and open ‘Services’ in the Windows start menu

Step 2

Find and select ‘World Wide Web Publishing Service’. This service provides web connectivity and administration through the IIS manager.

Step 3

Right click and hit stop. This will only stop the service until your restart your machine.

Step 4

Check what the startup type is of the service. This is probably set to Automatic. You may want to simply stop the service for now, but it may cause more issues in the future, so its best to disable the service form starting up again.

If you use IIS alongside your WSL Apache2 service, you may want to start the service up again when you require it.

To disable the service from starting automatically, right click and select properties. This will open an additional popup.

Find startup type and set the field to Disabled. Then apply the changes.

Step 5

Open your bash window, and start the Apache2 service.

sudo serivce apache2 start

Apache 2 should now start as expected.

You can learn more about Windows Subsystem for Linux by visiting the official documentation or you can get help with setting WSL up by following our tutorial.

Related Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.