lighttpd in a jail says address is already in use (its not)

Vincent Hoffman vince at
Tue Mar 23 17:21:16 UTC 2010

Hi all,
            I'm hoping i'm doing something silly. I have an 8.0-RELEASE
machine with one jail that i'm intending to run lighttpd.
I have nothing running on the host other than sendmail on and
sshd bound to the primary IP. The jail is also now running sshd fine.
when i try and start lighttpd i get
Starting lighttpd.
2010-03-23 17:13:35: (network.c.345) can't bind to port:
80 Address already in use
/usr/local/etc/rc.d/lighttpd: WARNING: failed to start lighttpd

[root at krill /usr/ports/www/lighttpd]# netstat -an
netstat: kvm not available: /dev/mem: No such file or directory
Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address          Foreign Address       (state)
tcp4       0      0      *.*                    LISTEN
tcp4       0      0      *.*                    LISTEN
udp4       0      0     *.*

and i can make nc listen on port 80 using
nc -l 80
and make connections to it from remote
vincenthoffman at macbook
(17:18:13 <~>) 130 $ telnet 80
Connected to
Escape character is '^]'.

So the port definitely isnt in use.

Any suggestions if there is a sysctl or anything i need to change to get
this to work?


More information about the freebsd-questions mailing list