Having used Apache server for a long time I was looking for a web server with a much lower memory footprint. The solution I found was Lighttpd which is pronounced 'lighty'. Its used by many web sites including YouTube and Wikipedia as it allows them to scale a lot better with the same hardware. Its easy to use, powerful and quick to setup.
Pre Installation Check
- Default listen port is 80
- Check nothing is already bound to port 80
- If the port was bound you would see
Installation
- On Linux Mint, Ubuntu or Raspberry Pi
- Lighttpd will automatically start. Check the port is now bound
- Check status
* lighttpd is running
- Open in a web browser : http://localhost/index.lighttpd.html and you should see the default message
Manual Bug Fix
- In the latest builds the default lighttpd.conf contains a bug
- Open in a text editor and find the line starting 'index-file.names'
- As hightlighted above there is an extra quoue in " index.lighttpd.html"
- Remove quote and save as shown below
- Restart service
Change Default Port
- Its a good idea to change the default listening port from 80 to another non bound port
- I am going to change it to port 8888
- First check nothing is listening on that port
- Open config file in text editor
- Add
- Save file and restart
- Open in a web browser : http://localhost:8888/index.lighttpd.html
- HTML files location : /var/www
- Default directory index : index.html
- CGI Scripts : /usr/lib/cgi-bin
- Logs : /var/log/lighttpd
- Lighttpd has many support modules that enhance functionality
- RRDTool can be used for statistics
No comments:
Post a Comment