openSUSE Forums > Network/Internet » Can't start apache on port 80

Go Back   openSUSE Forums > Network/Internet
Forums FAQ Members List Search Today's Posts Mark Forums Read

Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-Jul-2009, 10:50
Puzzled Penguin
 
Join Date: Apr 2009
Posts: 22
Bibliotheekn hasn't been rated much yet
Question Can't start apache on port 80

Hi all, this got me kind of stumped. I couldn't start apache on port 80 all out of sudden, it says it can't bin my adres to it:
Code:
Starting httpd2 (prefork) (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
startproc:  exit status of parent of /usr/sbin/httpd2-prefork: 1
                                                                     failed
but if I use netstat -ltn i dont see anything running on port 80
Code:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 0.0.0.0:389             0.0.0.0:*               LISTEN      
tcp        0      0 127.0.0.1:10025         0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      
tcp        0      0 127.0.0.1:783           0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:6549            0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:8089            0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      
tcp        0      0 :::389                  :::*                    LISTEN      
tcp        0      0 :::139                  :::*                    LISTEN      
tcp        0      0 :::111                  :::*                    LISTEN      
tcp        0      0 :::21                   :::*                    LISTEN      
tcp        0      0 :::22                   :::*                    LISTEN      
tcp        0      0 ::1:631                 :::*                    LISTEN      
tcp        0      0 :::25                   :::*                    LISTEN      
tcp        0      0 :::445                  :::*                    LISTEN
Can anyone help me out plz?
Reply With Quote
  #2 (permalink)  
Old 08-Jul-2009, 11:07
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,109
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: Can't start apache on port 80

Is it repeatable? Sometimes you have to wait a while for the port to become free after a previous service has crashed.

Try and see if something is listening on the http port using lsof

lsof -i | grep :http

Try and see if some other apache is running:

ps ax | grep httpd
Reply With Quote
  #3 (permalink)  
Old 08-Jul-2009, 11:11
Puzzled Penguin
 
Join Date: Apr 2009
Posts: 22
Bibliotheekn hasn't been rated much yet
Default Re: Can't start apache on port 80

it is repeatable and it apparently is bound to apache only because if I use netcat -l -p 80 it works and I can telnet to the port. So this is a problem with apache, maybe my configuration? Can anyone give me an idea where to start?
Reply With Quote
  #4 (permalink)  
Old 08-Jul-2009, 11:15
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,109
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: Can't start apache on port 80

You might have a duplicate Listen directive somewhere in your config files. Have you done any edits recently? Look over them.

Or have you activated apparmor or something like that?

Think about what you changed recently.
Reply With Quote
  #5 (permalink)  
Old 08-Jul-2009, 11:17
Puzzled Penguin
 
Join Date: Apr 2009
Posts: 22
Bibliotheekn hasn't been rated much yet
Default Re: Can't start apache on port 80

ok i have checked my configuration and saw that gadmin-httpd changed something and backup my old. As I uninstalled gadmin I restored the old config and now everything works again. Thanks
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2