Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I just installed apache on ubuntu 10.04. When I try to start apache, It tries to bind to 0.0.0.0:80 then fails. What am I doing wrong here?

sparky$ sudo /etc/init.d/apache2 restart

(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

Looking at what else is on port 80:

sparky$  sudo netstat -lnp | grep '80'

tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1483/netxserv   
udp6       0      0 fe80::280:64ff:fe9c:123 :::*                                1244/ntpd       
unix  2      [ ACC ]     STREAM     LISTENING     4809     1177/pulseaudio     /home/admin/.pulse/843e513a62d1b128539d25a14dce36b8-runtime/native
unix  2      [ ACC ]     STREAM     LISTENING     4056     985/launcher        /tmp/orbit-admin/linc-3d9-0-680082d3cdbb

My Hosts file:

127.0.0.1       localhost.localdomain   localhost

10.10.7.139 sparky.abcco.local sparky
share|improve this question

migrated from stackoverflow.com Oct 7 '11 at 8:23

This question came from our site for professional and enthusiast programmers.

3  
netxserv is using that port, as you can see in your netstat output. –  Mat Oct 6 '11 at 19:38
1  
netxserv is on 80 so apache wont start. I think netxserv is some kind of sip/IPphone software, you will need to stop this before you can run apache. could try killall -9 netxserv –  mister koz Oct 6 '11 at 19:41

1 Answer 1

up vote 1 down vote accepted

This line

tcp      0    0 0.0.0.0:80            0.0.0.0:*          LISTEN     1483/netxserv

shows that netsxerv is running and bound to port 80. Presumably you have a reason to run netxserv on port 80 so you will need to reconfigure it to listen on a different port or run apache on a different port.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.