0

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.

migajek
  • 171
  • 2
  • 10

4 Answers4

2

Are you running lighttpd as root (sudo)? Normal users can't launch processes that bind on ports < 1024 ...

Daniele Santi
  • 2,479
  • 1
  • 25
  • 22
1

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.

migajek
  • 171
  • 2
  • 10
1

I solved this by commenting out below line and the IPv6 Virtual Host in /etc/lighttpd.conf file.

#include_shell "/usr/share/lighttpd/use-ipv6.pl" 
1

Just in case this was overlooked or not showing up for some reason, but skype uses port 80, so make sure it isn't running when you start your server....

Lobabob
  • 11
  • 1