Website:
http://www.lighttpd.net/
http://www.cronolog.org
# Installing the Dependency package yum -y install libevent libcurl gamin-devel pcre-devel zlib-devel bzip2-devel python-pycurl# installation lighttpdcd /usr/local/srctar xf Lighttpd-1.4.35.tar.gzcd lighttpd-1.4.35./configure --with-fam --with-bzip2 --with-zlib --with-pcremakemake install# Install Cronlog log cut TAR&NBSP;-ZXVF&NBSP;CRONOLOG-1.6.2.TAR.GZCD cronolog-1.6.2./configuremakemake install# installation CGITAR&NBSP;XF&NBSP;FCGI-2.4.0.TAR.GZ&NBSP;CD fcgi-2.4.0./configuremakemake installecho "/usr/local/lib" >> /etc/ Ld.so.confldconfig error FIX: Make time to meet error fcgio.cpp: in destructor ' Virtual fcgi_streambuf::~fcgi_ Streambuf () ':fcgio.cpp:50:14: error: ' EOF was not declared in this scopefcgio.cpp: in member function ' virtual int fcgi_streambuf::overflow (int) ': fcgio.cpp:70:72: error: ' EOF ' &NBSP;WAS&NBsp;not declared in this scopefcgio.cpp:75:14: error: ' EOF ' was not declared in this scopefcgio.cpp: In member function ' Virtual int fcgi_streambuf::sync () ':fcgio.cpp:86:18: error: ' EOF ' was not declared in this scopefcgio.cpp:87:41: error: ' EOF ' was not declared in this scopefcgio.cpp: In member function ' Virtual int fcgi_streambuf::underflow ( ) ':fcgio.cpp:113:35: error: ' EOF ' was not declared in this scope workaround: Modify source include/fcgio.h contains header file #include <cstdio>, in Make && make install, Problem solving. # detection LIGHTTPD configuration file Syntax/usr/local/sbin/lighttpd -f /data0/test.com/conf/lighttpd.conf -t# Launch/usr/local/sbin/lighttpd -f /data0/test.com/conf/lighttpd.conf# configuration file Example:# vim Lighttpd.confserver.modules = ( "Mod_alias", "Mod_access", "mod_fastcgi", "Mod_extforward", "Mod_accesslog" ) server.document-root = "/data0/test.com/wwwroot/" extforward.forwarder = ( "1.1.1.1" => "Trust", "2.2.2.2" => "Trust" ) server.errorlog = "/data0/log/test.com/error.log" index-file.names = ( " index.php ", " index.html ", "index.htm", "default.htm" ) mimetype.assign = ( ". pdf" &Nbsp; => " Application/pdf ", ". Sig " => "Application/pgp-signature", ". SPL" => "Application/futuresplash", ". Class" => "application/ Octet-stream ", ". PS " => "Application/postscript", ". Torrent" => "Application/x-bittorrent", ". DVI" => "Application/x-dvi", ". Gz" => "Application/x-gzip", ". Pac" => "Application/x-ns-proxy-autoconfig", ". SwF" => "Application/x-shockwave-flash", ". tar.gz " => " application/x-tgz ", ". tgz" => "Application/x-tgz", ". Tar" => "Application/x-tar", ". zip" => "Application/zip", ". mp3" => "Audio/mpeg", ". m3u" => "audio/ X-mpegurl ", ". wma " => "Audio/x-ms-wma", ". Wax" => "Audio/x-ms-wax", ". Ogg" => "Application/ogg", ". wav" => "Audio/x-wav", ". gif" => "Image/gif", ". Jar" => "Application/x-java-archive", ". jpg" => "Image/jpeg", ". jpeg" => "Image/jpeg", ". png" => "Image/png", ". XBM" => "Image/x-xbitmap", ". xpm" = > "Image/x-xpixmap", ". Xwd" => "Image/x-xwindowdump", ". css " => " text/ CSS ", ". html " => "Text/html", ". htm" => "text/html", ". js" => "Text/javascript", ". ASC" => "Text/plain", ". C" => "text/ Plain ", ". cpp " => "Text/plain", ". Log" = > "Text/plain", ". conf" => "Text/plain", ". Text" => "Text/plain", ". txt" => "Text/plain", ". DTD" => "Text/xml", ". xml" => "Text/xml", ". Mpeg" => "Video/mpeg", ". mpg" => "Video/mpeg", ". mov" => "Video/quicktime", ". Qt " => "Video/quicktime", ". Avi " => " Video/x-msvideo ", ". asf " => "video/x-ms-asf", ". asx" => "video/x-ms-asf", ". wmv" => "Video/x-ms-wmv", ". bz2" => "Application/x-bzip", ". Tbz" => "Application/x-bzip-compressed-tar", ". tar.bz2" => "Application/x-bzip-compressed-tar", # default mime type "" = > "Application/octet-stream", ) accesslog.filename = "|/ usr/local/sbin/cronolog /data0/log/test.com/access.log.%y%m%d "url.access-deny = ( "~", ". Inc" ) $HTTP ["url"] = ~ "\.pdf$" { server.range-requests = "Disable"}alias.url += ( "/cgi-bin/" => "/data0/test.com /cgi-bin/" " static-file.exclude-extensions = ( ". php", ". Pl", ". fcgi " ) server.port = 81fastcgi.server = ( "query_isp.fcgi" => ( "localhost" => ( "Socket" => "/tmp/query_isp.socket", "Bin-path" => "/data0/test.com/cgi-bin/query_isp.fcgi", "Min-procs" => 20, "Max-procs" => 20, " Max-load-per-proc " => 100, "Idle-timeout" => 20, ) ), "iplookup.fcgi" => ( "localhost" => ( "Socket" => "/tmp/iplookup.socket", "Bin-path" => "/data0/test.com/cgi-bin/iplookup.fcgi", " Min-procs " => 20, "Max-procs" => 20, "Max-load-per-proc" => 100, "Idle-timeout" => 20, ) ) )
LIGHTTPD installation Configuration