I recently installed Lighttpd on Ubuntu Server 10.04 x86_64 and created several websites. What I do is include /etc/lighttpd/vhost.d/*.conf and put a configuration file for each website in that directory.
The problem I have is when I "service lighttpd start" I get the message that the service started, there is no error message:
root@178-33-104-210:~# service lighttpd start
Syntax OK
* Starting web server lighttpd [ OK ]
But then if I take a look at the services listening, Lighttpd is nowhere to be seen:
root@178-33-104-210:~# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost:mysql *:* LISTEN 829/mysqld
tcp 0 0 *:ftp *:* LISTEN 737/vsftpd
tcp 0 0 *:ssh *:* LISTEN 739/sshd
tcp6 0 0 [::]:ssh [::]:* LISTEN 739/sshd
So I'm looking at ways I could troubleshoot this. I checked in /var/log/lighttpd/error.log and there's nothing in it.
Edit: Sorry, I indicated I use CentOS but it's actually Ubuntu Server (I usually use CentOS but had to go with Ubuntu for that one).
Test config:
Run foreground(for debug):
Did you disable
in your .conf? I ran into the same problem and found with
that the server was listening on ipv6. After disabling server.use-ipv6 I was able to connect to lighttp via ipv4. There is also an old bug report on this issue, where they say that it is a BSD specific problem. I am using Ubuntu.
http://redmine.lighttpd.net/issues/509
Perhaps lighttpd tries to log to some location where it does not have write access? Check the logging directives.