LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Troubles In Apache: I can neither start nor stop it (https://www.linuxquestions.org/questions/linux-software-2/troubles-in-apache-i-can-neither-start-nor-stop-it-297699/)

sanmartin 03-04-2005 03:07 PM

Troubles In Apache: I can neither start nor stop it
 
See:

[root@coisa root]# httpd -k start
(98)Endereço já em uso (Address in use) : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[root@coisa root]# httpd -k stop
httpd (no pid file) not running

When I open http://localhost/ (or its subpastes) in Mozilla, there's nothing but a blank page.

I guess that httpd misstarted once and it cannot fix itself. I've already reboot the computer.
In the Gnome's System Monitor I would normally find httpd running, bur it is not there.
What can I do?
How to make that socket free?

(using CL-10)

david_ross 03-04-2005 03:30 PM

Can you post the output from:
netstat -nlp

sanmartin 03-05-2005 11:50 AM

netstat -nlp
 
Conexões Internet Ativas (sem os servidores)
Proto Recv-Q Send-Q Endereço Local Endereço Remoto Estado PID/Program name
tcp 0 0 0.0.0.0:111 0.0.0.0:* OUÇA 1791/portmap
tcp 0 0 0.0.0.0:80 0.0.0.0:* OUÇA 2609/skype
tcp 0 0 0.0.0.0:32912 0.0.0.0:* OUÇA 2609/skype
tcp 0 0 0.0.0.0:631 0.0.0.0:* OUÇA 2037/cupsd
tcp 0 0 127.0.0.1:61945 0.0.0.0:* OUÇA 2751/wish
tcp 0 0 0.0.0.0:443 0.0.0.0:* OUÇA 2609/skype
udp 0 0 0.0.0.0:514 0.0.0.0:* 1825/syslogd
udp 0 0 0.0.0.0:32772 0.0.0.0:* 2609/skype
udp 0 0 0.0.0.0:32912 0.0.0.0:* 2609/skype
udp 0 0 0.0.0.0:111 0.0.0.0:* 1791/portmap
udp 0 0 0.0.0.0:631 0.0.0.0:* 2037/cupsd
Domain sockets UNIX ativos (sem os servidores)
Proto CntRef Flags Tipo Estado I-Node Rota PID/Program name Caminho
unix 2 [ ACC ] STREAM OUVINDO 3516 2262/gpg-agent /tmp/gpg-ryxqm0/S.gpg-agent
unix 2 [ ACC ] STREAM OUVINDO 3527 2268/kdeinit: Runni /tmp/ksocket-root/kdeinit__0
unix 2 [ ACC ] STREAM OUVINDO 3790 2308/kdeinit: ksmse /tmp/.ICE-unix/2308
unix 2 [ ACC ] STREAM OUVINDO 3529 2268/kdeinit: Runni /tmp/ksocket-root/kdeinit-:0
unix 2 [ ACC ] STREAM OUVINDO 3535 2271/kdeinit: dcops /tmp/.ICE-unix/dcop2271-1110126633
unix 2 [ ACC ] STREAM OUVINDO 3557 2273/kdeinit: klaun /tmp/ksocket-root/klauncher1aRMua.slave-socket
unix 2 [ ACC ] STREAM OUVINDO 3622 2280/artsd /tmp/mcop-root/coisa_localdomain-08e8-422b302c
unix 2 [ ACC ] STREAM OUVINDO 4045 2354/gconfd-2 /root/tmp/orbit-root/linc-932-0-4d6249d87ea2e
unix 2 [ ACC ] STREAM OUVINDO 3251 2096/gpm /dev/gpmctl
unix 2 [ ACC ] STREAM OUVINDO 4057 2343/evolution-alar /root/tmp/orbit-root/linc-927-0-65c44890b750c
unix 2 [ ACC ] STREAM OUVINDO 4098 2360/bonobo-activat /root/tmp/orbit-root/linc-938-0-52141e53c5468
unix 2 [ ACC ] STREAM OUVINDO 6054 2645/mozilla-bin /root/tmp/orbit-root/linc-a55-0-3a24c849f3a34
unix 2 [ ACC ] STREAM OUVINDO 3359 2201/X /tmp/.X11-unix/X0

david_ross 03-05-2005 11:53 AM

It looks like you have skype using port 80:
tcp 0 0 0.0.0.0:80 0.0.0.0:* OUÇA 2609/skype

Since only one proccess can use the same port it will not let you start apache.

zippo85 03-05-2005 11:45 PM

My remedy is to su - (make sure you have the dash after the su)
and type
apachect1 -k start

when i use httpd as the command, i get the same problem, but that one works fine!

david_ross 03-06-2005 09:58 AM

If there is another app running on the same port it won't start though.


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