View previous topic :: View next topic |
Author |
Message |
rshadow Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/TV Stars/picard1.jpg)
Joined: 28 Nov 2003 Posts: 176
|
Posted: Wed Jul 07, 2004 12:41 pm Post subject: apache2 problems |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
DooMi Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/199826500440e0368be8de5.gif)
Joined: 03 May 2004 Posts: 103 Location: /dev/null
|
Posted: Wed Jul 07, 2004 2:01 pm Post subject: Re: apache2 problems |
|
|
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? |
_________________ cyrex ~ # ./vpenis
--- Weeee! Congrats! Your VPenis is actually 356.8 cm long --- |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rshadow Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/TV Stars/picard1.jpg)
Joined: 28 Nov 2003 Posts: 176
|
Posted: Wed Jul 07, 2004 3:13 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
DooMi Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/199826500440e0368be8de5.gif)
Joined: 03 May 2004 Posts: 103 Location: /dev/null
|
Posted: Wed Jul 07, 2004 4:37 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
rshadow Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/TV Stars/picard1.jpg)
Joined: 28 Nov 2003 Posts: 176
|
Posted: Thu Jul 08, 2004 2:54 am Post subject: |
|
|
Thats a no go. Apache 2 refused to start as on a reboot as well.
Any other ideas? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|