Setting module path in lighttpd config file

configurationlighttpdpath

What is the option in lighttpd.conf to set the default path for lighttpd to look for modules? My lighttpd would not start because it keeps looking for critical modules at the default path, and I had the server installed at another location. Thanks!

Best Answer

I don't think this is done with a .conf setting, rather it's set when you compile lighttpd. Depending on how you compiled it (say using configure, you might need to set --prefix to Specify your installation directory if you want to install Lighttpd at a location different from default /usr/local/. Other path setting command-line switches for configure: --bindir, --sbindir, --datadir, --libdir, & --sysconfdir.

Using CMAKE, you'd pass an option like -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/

Nixcraft has a nice install how to and there's always lighthpd.net