Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-02-2011, 01:41 AM
|
#1
|
Member
Registered: Feb 2011
Posts: 179
Rep:
|
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
|
|
|
04-02-2011, 02:13 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
04-02-2011, 02:40 AM
|
#3
|
Member
Registered: Feb 2011
Posts: 179
Original Poster
Rep:
|
[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
|
|
|
04-02-2011, 02:59 AM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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?
|
|
|
04-02-2011, 04:36 AM
|
#5
|
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279
|
|
|
|
04-04-2011, 01:41 AM
|
#6
|
Member
Registered: Feb 2011
Posts: 179
Original Poster
Rep:
|
I reboot the machine again iam facing the same problem
|
|
|
04-04-2011, 02:31 AM
|
#7
|
Member
Registered: Mar 2006
Location: Malaysia, Putrajaya
Distribution: CentOS, Ubuntu, Fedora
Posts: 54
Rep:
|
Check your httpd.conf. Check listen port. Did you run multiple web site?
|
|
|
04-04-2011, 02:47 PM
|
#8
|
Member
Registered: Feb 2011
Posts: 179
Original Poster
Rep:
|
Thanks problem Solved
|
|
|
04-04-2011, 04:58 PM
|
#9
|
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279
|
Quote:
Originally Posted by ramecare
Thanks problem Solved
|
How ?
|
|
|
04-05-2011, 06:28 AM
|
#10
|
Member
Registered: Feb 2011
Posts: 179
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 06:30 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|