Hi, I've had a machine running Ubuntu 9.10, with lighttpd and PHP. After the OS update to Ubuntu 10.04, it installed apache2 automatically for some reason (I believe it is due to some dependencies php -> apache). Anyway I removed apache2 permanently, but starting lighttpd fails, giving provided error -
can't bind to port: :: 80 Address already in use
using
sudo lsof -i :80
results in empty list!!
What is wrong?!
thanks in advance, m.
-
Please show the output of netstat -tulpen
migajek : http://pastebin.com/raw.php?i=Q9EKz9NG however nothing on 80 :(ddeimeke : In this case the error message is misleading. Do a "grep -i lighttpd /var/log/messages" and see if you can find something helpful.migajek : nothing related to lighttpd there :(ddeimeke : please try "sudo /etc/init.d/lighttpd status"From ddeimeke -
Are you running lighttpd as root (sudo)? Normal users can't launch processes that bind on ports < 1024 ...
migajek : I am running as root :) 'sudo service lighttpd start' ;)MrShunz : @migajek the "::" make me think of IPv6... have you tried disabling IPv6 support in lighttpd.conf ?From MrShunz -
Hi, I ended up with replacing the config file with the default one, than copying custom settings back to the new config. I haven't compared the files, however the only change after all the modifications is the order of extension (modules) loading, I think.
From migajek -
Hi. I solved this by commenting out below line and the IPv6 Virtual Host.
include_shell "/usr/share/lighttpd/use-ipv6.pl"
From Frank
0 comments:
Post a Comment