Install Lighttpd in 4 easy steps
November 16th, 2010 by upa_kid
Lighttpd (pronounced lightly) is a web server designed to be fast, secure, flexible, and true to the standards. It is optimized for environments where speed is important, and therefore consumes less CPU and RAM than other servers. For all it offers, lighttpd is suitable for any server that has problems loading.
If you want to try this program you can follow these steps (we assume that you install...Lighttpd: How do I use more than two IP address (bind) for virtual hosting?
November 13th, 2010 by upa_kid
Virtual hosting is nothing but the provision of Web server hosting services so that a company (or individual) doesn’t have to purchase and maintain its own Web server and connections to the Internet.
Lighttpd does support or allows you to bind more than two IP address simultaneously using $SERVER["socket"]..
For example,
IP # 1: 192.168.1.1 domain nixcraft.com
IP # 2: 192.168.1.2 domain theos.in
Open...Lighttpd deny access to certain files
November 13th, 2010 by upa_kid
Generally, I update web pages over ssh session. The problem is that vim creates a backup files ended with a diacritical mark (~).
Some other open source software use .inc extensions of php and other include for code. However, lighttpd comes with nifty module called mod_access module which is used to deny access to files with given trailing path names.
Open lighty’s config file:
# vi /etc/lighttpd/lighttpd.conf
Append...Lighttpd beware of default php session path permission
November 13th, 2010 by upa_kid
Session support in PHP consists of a way to preserve certain data across subsequent accesses. This enables you to build more customized applications and increase the appeal of your web site.
This path is defined in /etc/php.ini file and all data related to a particular session will be stored in a file in the directory specified by the session.save_path option.
After installing phpMyAdmin I was able...Lighttpd Setup CGI-BIG CGI For Perl Programs
November 13th, 2010 by upa_kid
Lighttpd has mod_cgi module that allows you running Perl and other server side programs via cgi-bin directory. The Common Gateway Interface (CGI) is a standard protocol for interfacing external application software with an information server.
Step #1: Create a CGI cgi-bin Directory
First you need to create a cgi-bin directory for your domain. Assuming that your domain hosted at /home/lighttpd/theos.in/http...Lighttpd setup a password protected directory (directories)
November 13th, 2010 by upa_kid
If you require authentication on certain directories using the Lighttpd web server, you can use Lighttpd’s mod_auth module. It allows you to protect any directory in web server with access restrictions (just like Apache’s password protected directory) .
Lighttpd supports both basic and digest authentication methods. Now consider following sample setup:
1. Domain name: theos.in
2....Lighttpd: redirect feed traffic to a Feedburner account
November 13th, 2010 by upa_kid
Reader chadrick asks, “How to redirect feed traffic to a Feedburner account?”
There is a plugin available for Apache and WordPress, but it will not work with Lighttpd. So if you want to redirect RSS/atom feed from your domain to Feedburner to get accurate feed stats, you need to use Lighttpd’s mod_redirect module.
For example request coming for following urls shoud go to your feedburner...Lighttpd install and configure Webalizer statistics software
November 12th, 2010 by upa_kid
If you are new to Lighttpd, please see how to install and configure Lighttpd web server.
The Webalizer is a fast, free, web-server log files analysis program. It produces highly detailed, easily configurable usage reports in HTML format, for viewing with a standard web browser.
Statistics commonly reported by Webalizer include: hits; visits; referers; the visitors’ countries; and the amount...Lighttpd web server and php eAccelerator cache problem
November 12th, 2010 by upa_kid
eAccelerator is a fork of MMCache which provide an opcode cache and encode i.e. it increases performance of php based application by providing web (content) caching for dynamic apps.
Recently one of Linux box, which runs Lighttpd, started to sever php pages very slowly. First, I thought server might be severing large amount of request but netstat just return over 600 connection:
$ netstat -vtn | wc...Red Hat enterprise Linux Install lighttpd and Fastcgi PHP
November 12th, 2010 by upa_kid
I have received many queries regarding how to configure and install Lighttpd web server under Red Hat Enterprise Linux version 4.0. Mark asks:
RHEL 64 bit v4.0 does not support PHP as FastCGI. Lighttpd is not available from RHN (up2date command). How do I configure and install lighttpd with FastCGI?
Ok let me answer these questions and other queries systematically. I have installed Lighttpd under...Lighttpd FasCGI PHP, MySQL chroot jail installation under Debian Linux
November 12th, 2010 by upa_kid
The instruction mentioned below only applies to Debian and Ubuntu Linux. I am going to document following things:
=> Install lighttpd
=> Prepare the file system for the jail
=> Run FastCGI PHP and MySQL from the jail
=> Add Perl support to the jail
=> Take care of sendmail
=> Run multiple domains (virtual hosting) from chrooted jail etc
Please note that information outlined below...Lighttpd install perl, mysql support in chrooted jail
November 12th, 2010 by upa_kid
Perl is Practical Extraction and Report Language, which is quite famous and used by many web application. A Perl5 database interface to the MySQL database is provided by libdbd perl mysql shared library.
A note to readers
Following article is about running lighttpd perl in secure chrooted jail.
If you just need to run perl cgi-bin program out of box, please follow this previous article.
You can install...