Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache2 problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rshadow
Apprentice
Apprentice


Joined: 28 Nov 2003
Posts: 176

PostPosted: Wed Jul 07, 2004 12:41 pm    Post subject: apache2 problems Reply with quote

I had to re build my gentoo box.. and now I'm having problems.. I emerge djbdns and got it up and running and I emerge apache2 (last time I used 1.x).. but for some reason now apache will not bind to my IP as it states that some other app is allready running on port 80..

How can I figure out what application this is? I have a feeling this might be an issue with djbdns.. but I'm not sure because I can ssh into my server via my domain name, and I can ping my domain name and all my entries set with djbdns.. but I don't have any tcp.xx.cdb files this time ..

Any ideas?
Back to top
View user's profile Send private message
DooMi
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2004
Posts: 103
Location: /dev/null

PostPosted: Wed Jul 07, 2004 2:01 pm    Post subject: Re: apache2 problems Reply with quote

rshadow wrote:
(...) but for some reason now apache will not bind to my IP as it states that some other app is allready running on port 80.. How can I figure out what application this is?


Code:
netstat -lntup

_________________
cyrex ~ # ./vpenis
--- Weeee! Congrats! Your VPenis is actually 356.8 cm long ---
Back to top
View user's profile Send private message
rshadow
Apprentice
Apprentice


Joined: 28 Nov 2003
Posts: 176

PostPosted: Wed Jul 07, 2004 3:13 pm    Post subject: Reply with quote

I tried that already

Code:

sunflower1 conf # netstat -lntup
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:3306          0.0.0.0:*               LISTEN      7272/mysqld
tcp        0      0 211.203.152.27:53       0.0.0.0:*               LISTEN      11898/tcpserver
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      11888/dnscache
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      7278/sshd
udp        0      0 127.0.0.1:53            0.0.0.0:*                           11888/dnscache
udp        0      0 211.203.152.27:53       0.0.0.0:*                           11884/tinydns
udp   108088      0 0.0.0.0:68              0.0.0.0:*                           7085/dhcpcd


From what I can tell.. Nothing is binding to port 80! However apache still complains
Code:

sunflower1 apache2 # /etc/init.d/apache2 start
 * Starting apache2...
(98)Address already in use: make_sock: could not bind to address 211.203.152.27:80
no listening sockets available, shutting down
Unable to open logs               


btw: I don't know why it says "unable to open logs" when it is successfully writting to the log files.

I have confirmed its a port issue by telling apache to bind to port 8080 and successfully starting and making a connection.[/code]
Back to top
View user's profile Send private message
DooMi
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2004
Posts: 103
Location: /dev/null

PostPosted: Wed Jul 07, 2004 4:37 pm    Post subject: Reply with quote

Quote:
I have confirmed its a port issue by telling apache to bind to port 8080 and successfully starting and making a connection.


in this very strange situations i would try a nice reboot on that machine and before i do that i would switch ports back to 80 and do rc-update add apache2 default
_________________
cyrex ~ # ./vpenis
--- Weeee! Congrats! Your VPenis is actually 356.8 cm long ---
Back to top
View user's profile Send private message
rshadow
Apprentice
Apprentice


Joined: 28 Nov 2003
Posts: 176

PostPosted: Thu Jul 08, 2004 2:54 am    Post subject: Reply with quote

Thats a no go. Apache 2 refused to start as on a reboot as well.

Any other ideas?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum