Apache won't start
Posted by: robertzo (104.243.99.---)
Date: April 23, 2021 04:31AM

The log in C:\Windows\System32\drivers\etc\hosts:

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 testing.robertzou.com
127.0.0.1 localhost
::1 localhost

Options: ReplyQuote
Re: Apache won't start
Posted by: Otomatic (Moderator)
Date: April 23, 2021 10:22AM

Hi,

The hosts file has absolutely nothing to do with the subject of your "Apache won't start" message.

Please explain clearly what exactly your problem is, starting with : READ (and answer) BEFORE YOU ASK A QUESTION

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Apache won't start
Posted by: robertzo (104.243.99.---)
Date: April 23, 2021 06:09PM

This is the error message when I run httpd.exe -k start:

(OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address [::]:80
(OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address 0.0.0.0:80
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs

Options: ReplyQuote
Re: Apache won't start
Posted by: Otomatic (Moderator)
Date: April 23, 2021 07:04PM

Hi,

For fuck's sake, why don't you answer the questions asked?

Result of Right-Click Wampmanager icon -> Tools -> Check port 80

> This is the error message when I run httpd.exe -k start
Wrong syntax of the command. It is not httpd.exe that should be started, but the associated service.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Apache won't start
Posted by: myrivertale (---.actcorp.in)
Date: April 29, 2021 09:40PM

It could be that apache is set to automatic on restart. Meaning apache is already using that port. Go to services in your XAMPP control and look for apache (whatever version you have). Look for startup type and double-click it to set it to manual.

Options: ReplyQuote
Re: Apache won't start
Posted by: Otomatic (Moderator)
Date: April 29, 2021 10:04PM

Hi,

Here, It is Wampserver, not XAMPP.
With Wampserver, Apache service is always set to manual.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.