I’ve just finish install Lighttpd on FreeBSD with ZFS support. Actually, no difference between ZFS support or not. Lighttpd on this session act as webserver to present squidstats and bandwidthd. For squidstats you can revisit my post here while for bandwidthd I will post later.
Lighttpd is a secure, fast, compliant and very flexible web-server which has been optimized for high-performance environments. It has a very low memory footprint compared to other webservers and takes care of cpu-load. Its advanced feature-set (FastCGI, CGI, Auth, Output-Compression, URL-Rewriting and many more) make lighttpd the perfect webserver-software for every server that is suffering load problems. Installing lighttpd is quite simple under FreeBSD operating system using pkg_add.
# pkg_add -rv lighttpd
Edit /etc/rc.conf to auto start lighttpd
# ee /etc/rc.conf
Append following lines:
lighttpd_enable=”YES”
To start Lighttpd server, enter:
# /usr/local/etc/rc.d/lighttpd start
Verify that lighttpd is running:
# netstat -nat
If there is error message due to /usr/local/www/data/ unable find by the configuration. Just create the directory
# mkdir /usr/local/www/data
put test file on that directory with file name index.html. Just type several word to displaying on browser.
Restart Lighttpd web server
#/usr/local/etc/rc.d/lighttpd restart
browse the Lighttpd web server FreeBSD based on your IP config. Ensure the index.html appear on your browser. However if you need some tweaking for Lighttpd web server, Please note for the configuration file location:
Config file location: /usr/local/etc/lighttpd.conf
Default documentation root location : /usr/local/www/data/
Default username and groupname : www
Once Lighttpd web server running well on your FreeBSD box, we can configure with any services that support browser such as squidstats, bandwidthd, nagios and many more. Hopefully this short tutorial how to Install Lighttpd on FreeBSD useful for you.

Thanks for the tutorial, its helpfull..