You are not logged in.

#1 2008-05-01 03:02:24

skysurfer
Member
From: Greece/Thessaloniki
Registered: 2007-08-10
Posts: 30
Website

Apache 2.2.8 problem

Hi everyone. I'm dealing with a very weird problem!

Apache server was up and running just fine for months. Suddenly, it stopped responding from the internet. I can open my virtual hosts just fine from LAN only!

when i give httpd as root i get this:

(98)Address already in use: make_sock: could not bind to address 10.122.20.70:80
no listening sockets available, shutting down
Unable to open logs

To spare you from giving answers i've already tried, i give you what i've done/checked:

1. /etc/hosts and hostname at /etc/rc.conf are correct

2. My network configuration is ok (port 80 is correctly forwarded to my Arch server)

3. I have checked all httpd conf files to make sure that i have only one "Listen 80" statement

4. I have checked with netstat that nothing else uses port 80.

root ~ #  netstat -lnp | grep :80
tcp        0      0 10.122.20.70:80         0.0.0.0:*               LISTEN      4578/httpd

Althouth netmap returns the above, here is nmap results:

root ~ #  nmap localhost

Starting Nmap 4.60 ( http://nmap.org ) at 2008-05-01 05:29 EEST
Interesting ports on localhost (127.0.0.1):
Not shown: 1701 closed ports
PORT      STATE SERVICE
21/tcp    open  ftp
22/tcp    open  ssh
53/tcp    open  domain
111/tcp   open  rpcbind
139/tcp   open  netbios-ssn
445/tcp   open  microsoft-ds
953/tcp   open  rndc
3306/tcp  open  mysql
5800/tcp  open  vnc-http
5900/tcp  open  vnc
7634/tcp  open  hddtemp
8080/tcp  open  http-proxy
9090/tcp  open  zeus-admin
50000/tcp open  iiimsf

Nmap done: 1 IP address (1 host up) scanned in 0.196 seconds

5. Logs are generated properly at /var/log/httpd
error_log (debug level):

[Thu May 01 05:49:26 2008] [info] Init: Seeding PRNG with 136 bytes of entropy
[Thu May 01 05:49:26 2008] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Thu May 01 05:49:27 2008] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Thu May 01 05:49:27 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu May 01 05:49:27 2008] [info] Init: Initializing (virtual) servers for SSL
[Thu May 01 05:49:27 2008] [info] mod_ssl/2.2.8 compiled against Server: Apache/2.2.8, Library: OpenSSL/0.9.8g
[Thu May 01 05:49:27 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/bin/suexec)
[Thu May 01 05:49:27 2008] [notice] Digest: generating secret for digest authentication ...
[Thu May 01 05:49:27 2008] [notice] Digest: done
[Thu May 01 05:49:27 2008] [info] Init: Seeding PRNG with 136 bytes of entropy
[Thu May 01 05:49:27 2008] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Thu May 01 05:49:27 2008] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Thu May 01 05:49:27 2008] [info] Init: Initializing (virtual) servers for SSL
[Thu May 01 05:49:27 2008] [info] mod_ssl/2.2.8 compiled against Server: Apache/2.2.8, Library: OpenSSL/0.9.8g
[Thu May 01 05:49:27 2008] [debug] proxy_util.c(1670): proxy: grabbed scoreboard slot 0 in child 5232 for worker proxy:reverse
[Thu May 01 05:49:27 2008] [debug] proxy_util.c(1778): proxy: initialized single connection worker 0 in child 5232 for (*)
[Thu May 01 05:49:27 2008] [debug] proxy_util.c(1670): proxy: grabbed scoreboard slot 0 in child 5233 for worker proxy:reverse
[Thu May 01 05:49:27 2008] [debug] proxy_util.c(1689): proxy: worker proxy:reverse already initialized
[Thu May 01 05:49:27 2008] [debug] proxy_util.c(1778): proxy: initialized single connection worker 0 in child 5233 for (*)
[Thu May 01 05:49:27 2008] [debug] proxy_util.c(1670): proxy: grabbed scoreboard slot 0 in child 5234 for worker proxy:reverse
[Thu May 01 05:49:27 2008] [debug] proxy_util.c(1689): proxy: worker proxy:reverse already initialized
[Thu May 01 05:49:27 2008] [debug] proxy_util.c(1778): proxy: initialized single connection worker 0 in child 5234 for (*)
[Thu May 01 05:49:27 2008] [debug] proxy_util.c(1670): proxy: grabbed scoreboard slot 0 in child 5235 for worker proxy:reverse
[Thu May 01 05:49:27 2008] [debug] proxy_util.c(1689): proxy: worker proxy:reverse already initialized
[Thu May 01 05:49:27 2008] [debug] proxy_util.c(1778): proxy: initialized single connection worker 0 in child 5235 for (*)
[Thu May 01 05:49:27 2008] [debug] proxy_util.c(1670): proxy: grabbed scoreboard slot 0 in child 5236 for worker proxy:reverse
[Thu May 01 05:49:27 2008] [debug] proxy_util.c(1689): proxy: worker proxy:reverse already initialized
[Thu May 01 05:49:27 2008] [debug] proxy_util.c(1778): proxy: initialized single connection worker 0 in child 5236 for (*)
[Thu May 01 05:49:27 2008] [notice] Apache/2.2.8 (Unix) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g configured -- resuming normal operations
[Thu May 01 05:49:27 2008] [info] Server built: Mar  8 2008 11:59:38
[Thu May 01 05:49:27 2008] [debug] prefork.c(991): AcceptMutex: sysvsem (default: sysvsem)

6. I tried removing completely apache and reinstalling. I also tried downgrading but i had the same results.

7. I changed the port to something else and still got the same error (98)

8. I tried disabling all vhosts but still nothing.


To sum up, configuration seems right (i've checked it 100 times!) and nothing else is running on port 80. So, what is going on??? tongue

Three days now i'm trying to find an answer through google and forums but i have failed. That's why i wrote this thread. I need your help please smile

Thank u in advance.


Archlinux rulez tongue

My home server running Arch 24/7:
Intel Atom 330, 2GB RAM, 2TB Disks

Offline

Board footer

Powered by FluxBB