LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-02-2011, 01:41 AM   #1
ramecare
Member
 
Registered: Feb 2011
Posts: 179

Rep: Reputation: 0
http error


Hi to all,

[root@itsupport ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[FAILED]
Iam facing the above error when i restart the service httpd,can any one help me on this.

Thanks in advance
 
Old 04-02-2011, 02:13 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it's already running, kill the existing process (or whatever else is listening on port 80). run "netstat -plnt" and see what the pid is for the relevant process.
 
Old 04-02-2011, 02:40 AM   #3
ramecare
Member
 
Registered: Feb 2011
Posts: 179

Original Poster
Rep: Reputation: 0
[root@itsupport ~]# netstat -plnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN 2515/hpiod
tcp 0 0 0.0.0.0:2401 0.0.0.0:* LISTEN 2556/xinetd
tcp 0 0 0.0.0.0:35175 0.0.0.0:* LISTEN 3389/skype
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2651/mysqld
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 2750/smbd
tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 3267/vino-server
tcp 0 0 0.0.0.0:781 0.0.0.0:* LISTEN 2295/rpc.statd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2260/portmap
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 2982/perl
tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 2882/dnsmasq
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 2568/vsftpd
tcp 0 0 10.200.1.66:53 0.0.0.0:* LISTEN 2241/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 2241/named
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2542/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2684/sendmail: acce
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 2241/named
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 2750/smbd
tcp 0 0 127.0.0.1:2207 0.0.0.0:* LISTEN 2520/python
tcp 0 0 :::80 :::* LISTEN 3505/httpd
tcp 0 0 :::22 :::* LISTEN 2533/sshd
tcp 0 0 ::1:953 :::* LISTEN 2241/named
[root@itsupport ~]#

I killed the httpd process by kill -9 3505 & after tat i restarted, again iam facing the same error

Thanks in advance
 
Old 04-02-2011, 02:59 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well either the process still there or it's not. once you've tried to kill it, is that port now free? Can you not just reboot if you're getting confused?
 
Old 04-02-2011, 04:36 AM   #5
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Maybe this will help
http://ubuntuforums.org/showthread.php?t=1636667
 
Old 04-04-2011, 01:41 AM   #6
ramecare
Member
 
Registered: Feb 2011
Posts: 179

Original Poster
Rep: Reputation: 0
I reboot the machine again iam facing the same problem
 
Old 04-04-2011, 02:31 AM   #7
newFreeBSD
Member
 
Registered: Mar 2006
Location: Malaysia, Putrajaya
Distribution: CentOS, Ubuntu, Fedora
Posts: 54

Rep: Reputation: 0
Check your httpd.conf. Check listen port. Did you run multiple web site?
 
Old 04-04-2011, 02:47 PM   #8
ramecare
Member
 
Registered: Feb 2011
Posts: 179

Original Poster
Rep: Reputation: 0
Thanks problem Solved
 
Old 04-04-2011, 04:58 PM   #9
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Quote:
Originally Posted by ramecare View Post
Thanks problem Solved
How ?
 
Old 04-05-2011, 06:28 AM   #10
ramecare
Member
 
Registered: Feb 2011
Posts: 179

Original Poster
Rep: Reputation: 0
In /etc/httpd/conf directory i had more than 3 httpd.conf file because i took back up of the httpd.conf file in the /etc/httpd/conf,tat's y it shows error after removing the backup file of httpd.conf file in /etc/httpd/conf, i restarted the httpd service it does not show any error.

Thank u
 
  


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
Http error Jkset linuxguy08 Linux - Server 3 02-14-2011 05:35 PM
[SOLVED] http 404 error ansrewdps Linux - Server 11 02-08-2011 11:48 AM
Update manager error: GPG error: http://ppa.launchpad.net ... signatures ... Nonc Linux - General 0 08-18-2010 07:36 PM
monodoc-http gives a http 500 internal server error ernesto_cgf Linux - Software 0 05-10-2007 04:48 PM
Http 405 Error? Ricardo77uk Linux - Networking 2 06-20-2001 02:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06: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
Open Source Consulting | Domain Registration