Starting out with Lighttpd

iomem



spacer

Recent Entries

The Huawei e169 mobile broadband modem and Ubuntu lucid
Saturday, March 19 2011

Using a Virgin Mobile USA Broadband adaptor on Ubuntu 9.10
Wednesday, May 26 2010

Automatic installations of Ubuntu with preseeding
Saturday, June 20 2009

Five great ways to annoy telemarketers with Asterisk
Wednesday, July 23 2008

Checking out Opensolaris 2008.05
Sunday, July 20 2008

Starting out with Lighttpd
Wednesday, April 11 2007

Review: Ubuntu Server Edition 6.06
Friday, September 8 2006

Running Linux for ARM processors under QEMU
Wednesday, June 28 2006

Ethernet Bridges under Linux
Saturday, May 13 2006

Review: Ubuntu Dapper Flight 5
Friday, March 24 2006

Archives

May 2011
April 2011
March 2011
Recent...
Older...

Quicksearch

Links

  • World Mobile Net
  • Linoleum
  • Last Carriage
  • Distrowatch
  • Linux.com
  • LXer

RSS Feeds

spacer

spacer
spacer
spacer
Stumbleupon This Site! spacer
spacer Save to del.icio.us

Categories

  • asterisk
  • freebsd
  • java
  • linux
  • debian
  • fedora
  • linuxmint
  • redhat
  • ubuntu
  • netbsd
  • network
  • openbsd
  • review
  • software
  • solaris


All categories

Linoleum

Lazy user signup for Django

Monday, April 25. 2011
lxml: High-performance Python XML parsing

Monday, March 28. 2011
Porting Perl to Python

Thursday, September 2. 2010
Perl: reading from a string, as if it was a file

Wednesday, November 4. 2009
Potential language changes for JDK7

Monday, March 2. 2009

Starting out with Lighttpd

Wednesday, April 11. 2007
spacer

While a large proportion of the world's webservers are currently using Apache, a competitor has been steadily gaining popularity on many high-usage sites. Lighttpd, pronounced "lighty", is a small-footprint, high-speed webserver, and is notably used by sites such as Sourceforge, YouTube and MiniNova. Netcraft state that Lighttpd is currently being used on 1.38 million sites, and is steadily gaining on Sun's share of the market. This introductory article provides a guide to getting Lighttpd installed and configured.

Compiling a basic server



Lighttpd's build process is quite straightforward, and anyone who has any experience with building applications under Unix before will be quite familiar with the process.

We'll start by unpacking the source code, and configuring it to install under /usr/local/lighttpd, using the --prefix option. There's no hard and fast need for it to be installed in that location, I've just chosen it so that everything is installed under a single directory, where it won't mess up the rest of the filesystem, and everything can be removed easily if need be.

tar xzf lighttpd-1.4.13.tar.gz
cd lighttpd-1.4.13

./configure --prefix=/usr/local/lighttpd
make
su
make install


We'll now create a few extra support directories, as root, to hold
configuration files, logs and our webpages:

mkdir /usr/local/lighttpd/etc
mkdir /usr/local/lighttpd/logs
mkdir /usr/local/lighttpd/www
mkdir /usr/local/lighttpd/var
chgrp nogroup /usr/local/lighttpd/logs
chgrp nogroup /usr/local/lighttpd/var
chmod 775 /usr/local/lighttpd/logs
chmod 775 /usr/local/lighttpd/var


And finally, we'll create a very simple webpage to test things with:

echo "<p>hi</p>" > /usr/local/lighttpd/www/index.html


Pages: PREVIOUS | 1 | 2 | 3 | 4 | 5 | NEXT | All

Trackbacks
Trackback specific URI for this entry

No Trackbacks

Comments
Display comments as (Linear | Threaded)

The examples have bad syntay, often ( ) is used instead of { }
Eg. examples on virtual hosting.
#1 salmonix on 2010-03-24 20:38 (Reply)

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
 
 
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.