LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apache start error (https://www.linuxquestions.org/questions/linux-newbie-8/apache-start-error-122105/)

akurtis 12-02-2003 07:18 PM

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

crabboy 12-02-2003 08:49 PM

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

akurtis 12-02-2003 09:00 PM

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

crabboy 12-02-2003 09:24 PM

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.

akurtis 12-02-2003 10:34 PM

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

crabboy 12-02-2003 10:39 PM

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.

akurtis 12-02-2003 11:14 PM

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


All times are GMT -5. The time now is 11:35 PM.