The nixCraft FAQ collection is now available to anyone who wants to browse it off-line in a PDF format. This tar ball contains 1530 Linux, *BSD, UNIX, Perl, Bash and scripting related faqs, mini-howtos, and tutorials compiled and written by nixCraft.
Upgrading lighttpd is a piece of cake. There are two methods:
a) Use yum or apt-get or FreeBSD ports / command to update binary lighttpd package
b) Just download latest lighttpd tar ball from official web site and install the same.
Let us see how to upgrade lighttpd using source code (tar ball).
# 1 : Download lighttpd
# 2 : Verify lighttpd
Use sha1sum or md5sum hash to verify lighttpd tar ball integrity:
$ md5sum lighttpd-1.4.17.tar.gz
# 3: Configure lighttpd
Now configure and compile lighttpd web server:
# 4: Stop lighttpd
First stop currently running lighttpd web server:
# /etc/init.d/lighttpd stop
Make sure you are in installation directory, use the following command to uninstall old version:
# make uninstall
# 5: Install lighttpd
Just enter the following command:
# make install
# /etc/init.d/lighttpd start
Watch out for lighttpd log files for any problems:
# tail -f /var/log/messages
# tail -f /var/log/lighttpd/error.log
# tail -f /var/log/lighttpd/scripts.log
# tail -f /var/log/lighttpd/access.log
A note about binary package upgrade method
You can download rpm file or use yum / apt-get command:
apt-get update lighttpd
yum update lighttpd
Installing software from a source code is common practice in Linux and Unix world. Some time this is preferred method because it gives all power and flexibility you need to optimize your software such as MySQL, PHP, Apache and more. However, uninstalling files installed from a source code tar ball can be a big headache.
Two methods can be used to uninstall files:
Continue reading “Uninstall files installed from a source code tar ball on Linux or Unix”