LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-04-2005, 03:07 PM   #1
sanmartin
Member
 
Registered: Sep 2004
Distribution: Kurumin 5 - KDE 3.3.2
Posts: 42

Rep: Reputation: 15
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)
 
Old 03-04-2005, 03:30 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Can you post the output from:
netstat -nlp
 
Old 03-05-2005, 11:50 AM   #3
sanmartin
Member
 
Registered: Sep 2004
Distribution: Kurumin 5 - KDE 3.3.2
Posts: 42

Original Poster
Rep: Reputation: 15
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
 
Old 03-05-2005, 11:53 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
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.
 
Old 03-05-2005, 11:45 PM   #5
zippo85
Member
 
Registered: Dec 2004
Distribution: Fedora Core 3
Posts: 66

Rep: Reputation: 15
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!
 
Old 03-06-2005, 09:58 AM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

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


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
having to stop and start alsa evil_empire Red Hat 3 03-21-2005 04:19 PM
how can i start, stop or restart Paxmaster Slackware 3 11-27-2004 02:31 PM
stop/start firewall matt1982 Debian 6 11-12-2004 08:17 AM
Start/stop services on start-up koyi Slackware 5 08-04-2003 09:20 AM
start and stop services log Linux - General 7 03-21-2003 09:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:30 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