Project

General

Profile

Can't run lighttpd without providing config file location

Added by equinox over 15 years ago

Hi,
I've installed and configured lighttpd (lighttpd/1.4.25 (ssl)) on my debian server (Debian GNU/Linux 5.0.3 (lenny)).

When I start lighttpd using

# lighttpd -f /etc/lighttpd/lighttpd.conf

everything works fine. But when I try to use the init script. I get an error:
# lighttpd start
2010-01-07 22:51:09: (server.c.581) No configuration available. Try using -f option.

I can't figure out, why this is happening. I've installed lighttpd as described in the documentation, so I have a file "/etc/sysconfig/lighttpd" with this content:

LIGHTTPD_CONF_PATH=/etc/lighttpd/lighttpd.conf

and my config file: /etc/lighttpd/lighttpd.conf

Permissions for both files are set to 755, with root as owner.

The init script is the one that came with the lighttpd installation package.

As far as I can see, all files seem to be in the right place, but the init script is still not working.

I hope, someone can help me out here.


Replies (1)

RE: Can't run lighttpd without providing config file location - Added by beau about 12 years ago

If the configuration file is properly loaded, that error may still happen.
Try changing the line
server.event-handler = ""
to another option. (the options are listed on the wiki)
I had to use server.event-handler = "poll"
Sorry for being 3 years late.

    (1-1/1)