openSUSE Forums > Network/Internet » Unable to bind apache2 to 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 28-Sep-2009, 10:20
Puzzled Penguin
 
Join Date: Sep 2009
Posts: 1
IT-M0nk3y hasn't been rated much yet
Default Unable to bind apache2 to port 80

Hi all, I'm getting some problems with apache2, when I tried to edit the config in Yast2 I got an error telling me that it "cannot adjust 'apache2' service."

Having tried to start apache from XTerm I got this error:

/etc/init.d/apache2 start
Starting httpd2 (prefork) (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

So, I tried the obvious, I looked for something else running on port 80

I did a netstat and nothing was listening on port 80

I ran lsof -i | grep :http and got no results

I tried ps ax | grep httpd and got pts/1 S+ 0:00 grep httpd

So my question is, how else can I find out what is stopping apache from running?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 29-Sep-2009, 09:34
Student Penguin
 
Join Date: Aug 2008
Location: Temporarily, planet Earth
Posts: 50
BotKeeper hasn't been rated much yet
Default Re: Unable to bind apache2 to port 80

As root, use the command
Code:
fuser 80/tcp
to find the PID of the process with the open port. If this produces no output, the command
Code:
netstat -ant | grep :80
will show more information about the socket.
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