I have this same problem.
I tried to install LAMP on WSL by following this blog: LAMP on WSL but when I issued this command :
/etc/init.d/apache2 start
I got this same error:
* Starting Apache httpd web server apache2
(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
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
*
I had previously tried to install Nginx on Windows proper and failed but I remembered I had bound Nginx to port 80. Problem is I am no Linux expert and I could not see in apache2 conf file the area to bind to a port.
I tried running:
sudo netstat -tulpn | grep :80
and got nothing. I had also forwarded the port in my router so I could not understand how to solve the error.
I know Nginx was not running so port 80 should have been fine except for chrome which I assume was also running on port 80
So in frustration not knowing what will happen I proceeded the command with sudo
like this:
sudo /etc/init.d/apache2 start
and I got:
* Starting Apache httpd web server apache2
*
By proceeding the start command with sudo
, Apache2 has authority to run. This is a short-term solution because it is not advisable to run Apache2 with root privileges (so we are informed) so the solution is still out there but for now, I can at least proceed with my tests.
If anyone knows the solution do please let us know.
/etc/apache2/apache2.conf
,/etc/apache2/sites-enabled/000-default.conf
and if you have defined your/etc/apache2/sites-available/yourFile.conf