How to add lighttpd-1.4.13 to embedded linux 

1.	Make sure you are using embedded linux's gcc
	. mkenv.sh

2.	Run configure
	./configure --without-pcre --host=mipsel-linux

	the configure will include perl module by default, so we need to add an option(--without-pcre) to tell
	the configure that we don't want to include perl module.
	
3.	modify lighttpd.conf in the doc folder
	a. 	define where to put html files
		server.document-root = "/www/html"	   
		
	b.	define the default page
		index-file.names = ("login.htm")
		
	c.	add necessary modules, at least mod_access, mod_accesslog and mod_cgi should be loaded
		server.modules = ("mod_access",
						  "mod_accesslog",
						  "mod_cgi")
						  
	d.	define where access log and error log to put in
		server.errorlog = "/var/log/lighttpd/error.log"
		accesslog.filename = "/var/log/lighttpd/access.log"						

4.	type "make" to build files

5. 	type "make initrd" to copy lighttpd to RamDisk
	a.	copy doc/lighttpd.conf to /RamDisk/etc/lighttpd/lighttpd.conf
	b.	create www folder in /RamDisk/
	c.  create html folder in /RamDisk/www/
	d.	create log folder in /RamDisk/var/
	e.	create lighttpd folder in /RamDisk/var/log/
	
6.	before running lighttpd, you should do:
	a.	touch /var/log/lighttpd/access.log
	b.  touch /var/log/lighttpd/error.log
	
7.	Start up lighttpd
	/usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf