Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache installation on Windows 7

I am a newbie with Apache. I am learning .. after the installation when I tried to start the service I got the following errors.

The Apache service named reported the following error:

Unable to open logs .

The Apache service named reported the following error:

no listening sockets available, shutting down .

The Apache service named reported the following error:

(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 .

The Apache service named reported the following error:

httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.6 for ServerName .

like image 603
Gainster Avatar asked Aug 14 '10 08:08

Gainster


3 Answers

The following error usually means that some other program is listening on the HTTP port (80).

(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 .

In my experience, IM (chat) clients like to connect to port 80.

From a command prompt, (cmd.exe) run the command:

netstat -an

See if there is a listener on port 80 (Look for a line that says:

   TCP    0.0.0.0:80           0.0.0.0:0              LISTENING
   ===           ====

the important thing being TCP and 80. If you find something, you'll need to track it down using something like TcpView

like image 140
Adrian Pronk Avatar answered Sep 27 '22 22:09

Adrian Pronk


If Skype is your problem and it seems it usually is, alter Skype's port usage.

Click on Tools in Skype, click on Options, click Advanced, click Connections. In Connection is the option to use another port, I use a high numbered port such as 65432, then un-click the alternative use of port 80 and 443. Close and restart Skype.

like image 26
nativetrader Avatar answered Sep 27 '22 21:09

nativetrader


modifying C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd sloved the problem.

If you had installation problems, note that you might experience some errors such “ no services installed ” if Apache is trying to share port 80 with another web server or application, such as a locally installed firewall application. To fix this, you can tell Apache to use a different port. Open your httpd.conf file in the conf subdirectory ( C:\Program Files\Apache Software Foundation\Apache2.2\conf by default) and locate the following lines:

# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the < VirtualHost >
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80
Change the last line of this block to read:
Listen 8080
like image 20
Gainster Avatar answered Sep 27 '22 21:09

Gainster