Fixing Lighttpd in Debian on SheevaPlug

Sat 23 January 2010

I was using SheevaPlug as my Home NAS, with and external usb hdd, until recently when I built my new NAS, based on ION ATOM, FreeBSD and ZFS.

I am thinking to add an usb webcam and to use it as a monitoring system.

I updated Debian "squeeze", which is running on an 8G SDHC card, but I got the error:

*After this operation, 0B of additional disk space will be used.  
Do you want to continue [Y/n]? y  
Setting up lighttpd (1.4.25-2) ...  
Starting web server: lighttpd2010-01-22 23:13:31: (network.c.345) can't
bind to port: :: 80 Address already in use  
invoke-rc.d: initscript lighttpd, action "start" failed.  
dpkg: error processing lighttpd (--configure):  
subprocess installed post-installation script returned error exit
status 1  
Errors were encountered while processing:  
E: Sub-process /usr/bin/dpkg returned an error code (1)  

I didn't have anything running and listening on port 80, so, it seems that it is a known bug, and the solution is here:

Add in /etc/lighttpd/lighttpd.conf:

*server.use-ipv6 = "enable"*

And add in /etc/sysctl.d/bindv6only.conf:

"*net.ipv6.bindv6only = 0*"