LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-02-2003, 08:18 PM   #1
akurtis
Member
 
Registered: Nov 2003
Location: Washington
Distribution: Redhat 9, 98
Posts: 38

Rep: Reputation: 15
apache start error


when i start apache i get this error

httpd failed. The error was: Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
[FAILED]
how do i remedy this?
Thanks
Alex
 
Old 12-02-2003, 09:49 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
Looks like there is already something bound to port 80. Check the output of netstat and look for an http entry. An entry for http will show up if something is already boud to 80. Also check for an instance of apache already running ps -ef | grep http
 
Old 12-02-2003, 10:00 PM   #3
akurtis
Member
 
Registered: Nov 2003
Location: Washington
Distribution: Redhat 9, 98
Posts: 38

Original Poster
Rep: Reputation: 15
heres what i get

[root@www root]# netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 192.168.1.101:32848 linuxquestions.org:http TIME_WAIT
tcp 0 0 192.168.1.101:32842 206.112.112.13:http ESTABLISHED
tcp 0 0 192.168.1.101:32841 206.112.112.13:http ESTABLISHED
tcp 0 0 192.168.1.101:32849 216.239.57.104:http ESTABLISHED
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node Path
unix 10 [ ] DGRAM 2154 /dev/log
unix 3 [ ] STREAM CONNECTED 11568 /tmp/.ICE-unix/dcop2858-1070417810
unix 3 [ ] STREAM CONNECTED 11567
unix 3 [ ] STREAM CONNECTED 11561 /tmp/.ICE-unix/2889
unix 3 [ ] STREAM CONNECTED 11560
unix 3 [ ] STREAM CONNECTED 11557 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 11556
unix 3 [ ] STREAM CONNECTED 11469 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 11468
unix 3 [ ] STREAM CONNECTED 10716 /tmp/ksocket-root/klaunchernCp8nb.slave-socket
unix 3 [ ] STREAM CONNECTED 10715
unix 3 [ ] STREAM CONNECTED 4261 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 4260
unix 3 [ ] STREAM CONNECTED 4252 /tmp/.ICE-unix/2889
unix 3 [ ] STREAM CONNECTED 4251
unix 3 [ ] STREAM CONNECTED 4234 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 4233
unix 3 [ ] STREAM CONNECTED 4230 /tmp/.ICE-unix/dcop2858-1070417810
unix 3 [ ] STREAM CONNECTED 4229
unix 3 [ ] STREAM CONNECTED 4223 /tmp/.ICE-unix/2889
unix 3 [ ] STREAM CONNECTED 4222
unix 3 [ ] STREAM CONNECTED 4221 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 4220
unix 3 [ ] STREAM CONNECTED 4216 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 4215
unix 3 [ ] STREAM CONNECTED 4213 /tmp/.ICE-unix/dcop2858-1070417810
unix 3 [ ] STREAM CONNECTED 4212
unix 3 [ ] STREAM CONNECTED 4203 /tmp/.ICE-unix/dcop2858-1070417810
unix 3 [ ] STREAM CONNECTED 4202
unix 3 [ ] STREAM CONNECTED 4195 /tmp/.ICE-unix/2889
unix 3 [ ] STREAM CONNECTED 4194
unix 3 [ ] STREAM CONNECTED 4183 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 4182
unix 3 [ ] STREAM CONNECTED 4179 /tmp/.ICE-unix/dcop2858-1070417810
unix 3 [ ] STREAM CONNECTED 4178
unix 3 [ ] STREAM CONNECTED 4167 /tmp/.ICE-unix/2889
unix 3 [ ] STREAM CONNECTED 4166
unix 3 [ ] STREAM CONNECTED 4163 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 4162
unix 3 [ ] STREAM CONNECTED 4158 /tmp/.ICE-unix/dcop2858-1070417810
unix 3 [ ] STREAM CONNECTED 4157
unix 3 [ ] STREAM CONNECTED 4154 /tmp/.ICE-unix/dcop2858-1070417810
unix 3 [ ] STREAM CONNECTED 4153
unix 3 [ ] STREAM CONNECTED 4147 /tmp/.ICE-unix/2889
unix 3 [ ] STREAM CONNECTED 4146
unix 3 [ ] STREAM CONNECTED 4143 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 4142
unix 3 [ ] STREAM CONNECTED 4137 /tmp/.ICE-unix/dcop2858-1070417810
unix 3 [ ] STREAM CONNECTED 4136
unix 3 [ ] STREAM CONNECTED 4131 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 4130
unix 3 [ ] STREAM CONNECTED 4124 /tmp/ksocket-root/kdeinit-:0
unix 3 [ ] STREAM CONNECTED 4123
unix 3 [ ] STREAM CONNECTED 4116 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 4115
unix 3 [ ] STREAM CONNECTED 4112 /tmp/.ICE-unix/dcop2858-1070417810
unix 3 [ ] STREAM CONNECTED 4111
unix 3 [ ] STREAM CONNECTED 4060 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 4059
unix 3 [ ] STREAM CONNECTED 4036 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 4035
unix 3 [ ] STREAM CONNECTED 4020 /tmp/.ICE-unix/dcop2858-1070417810
unix 3 [ ] STREAM CONNECTED 4019
unix 3 [ ] STREAM CONNECTED 4007 /tmp/.ICE-unix/dcop2858-1070417810
unix 3 [ ] STREAM CONNECTED 4006
unix 3 [ ] STREAM CONNECTED 4001
unix 3 [ ] STREAM CONNECTED 4000
unix 3 [ ] STREAM CONNECTED 3337 /tmp/.font-unix/fs7100
unix 3 [ ] STREAM CONNECTED 3336
unix 3 [ ] STREAM CONNECTED 3341 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 3331
unix 2 [ ] DGRAM 3050
unix 2 [ ] DGRAM 2948
unix 2 [ ] DGRAM 2929
unix 2 [ ] DGRAM 2913
unix 2 [ ] DGRAM 2672
unix 2 [ ] DGRAM 2380
unix 2 [ ] DGRAM 2230
unix 2 [ ] DGRAM 2162
[root@www root]# ps -ef | grep http
root 3308 3275 0 18:56 pts/1 00:00:00 grep http
[root@www root]#

Thanks
Aelx
 
Old 12-02-2003, 10:24 PM   #4
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
Try to connect to port 80 with telnet and if it connects submit a bogus command.
Code:
telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
dummy
See if there is any output.
 
Old 12-02-2003, 11:34 PM   #5
akurtis
Member
 
Registered: Nov 2003
Location: Washington
Distribution: Redhat 9, 98
Posts: 38

Original Poster
Rep: Reputation: 15
i run that and get this

[root@www root]# telnet www.theusefulnet.com 80
Trying 69.10.134.196...
telnet: Unable to connect to remote host: Connection refused
[root@www root]#


My server is the usefulnet.com, not localhost, and the ip it tries to connect to is that of the DNS server that i have, zoneedit.com.

Thanks
Alex
 
Old 12-02-2003, 11:39 PM   #6
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
localhost will always work if you are on the machine you are trying to connect to. Either try to telnet to localhost or the IP address of your machine.
 
Old 12-03-2003, 12:14 AM   #7
akurtis
Member
 
Registered: Nov 2003
Location: Washington
Distribution: Redhat 9, 98
Posts: 38

Original Poster
Rep: Reputation: 15
i try to connect to localhost and it says
localhost: unknown host
then i tried this
[root@www root]# telnet 192.168.1.1 80
Trying 192.168.1.1...
Connected to 192.168.1.1 (192.168.1.1).
Escape character is '^]'.
Connection closed by foreign host.
[root@www root]#
[root@www root]# telnet 12.229.226.160 80
Trying 12.229.226.160...
Connected to 12-229-226-160.client.attbi.com (12.229.226.160).
Escape character is '^]'.
Connection closed by foreign host.
[root@www root]#


Thanks
Alex
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache wont start. Never seen this error before mpriddy Linux - Software 1 10-12-2004 04:44 PM
Apache start error varunbihani Linux - Software 1 05-06-2004 02:39 PM
apache start error esteeven Linux - Software 4 09-04-2003 06:52 PM
apache start error automicro Linux - Newbie 2 08-01-2003 06:09 PM
Apache error on start! DragonClaw Linux - General 5 08-09-2001 12:34 PM


All times are GMT -5. The time now is 01:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration