Google Plus

Install Lighttpd in 4 easy steps

Written by Mel Kham on . Posted in Linux tutorials

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 in Ubuntu):

1. We install the needed packages (possibly need to install MySQL or PostgreSQL if you need them and still do not have one)

 

 sudo aptitude install lighttpd-doc lighttpd php5-cgi  

2. Enabling support for PHP (we respond with “fastcgi”)

 sudo lighty-enable-mod  

3. If you already have installed Apache we change the port that it will Lighttpd. For this first edit the configuration file:

 sudo gedit / etc / lighttpd / lighttpd.conf  

Then find the line that says: # server.port = 81 and change  it to  own  prive  port :

 server.port = 81  

4. Finally reboot the server:

 sudo / etc / init.d / lighttpd force-reload  

Now we agree to use our server as usual at “localhost” but using port 81: http://localhost:81

Links :

  • http://www.lighthttpd.net
For questions please refer to our Q/A forum at : http://ask.unixmen.com

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.
  • Mags

    thanks to this page i got this to work. i had apache2 installed and tried to test lighttpd. At first it kept giving me 403 Forbidden when i tried http://localhost even after i stopped apache2 service. Now i got lighttpd working on port 81.

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

SK

|

Yes i will. Keep visiting. Subscribe us to get daily updates. Thanks for the comment

Rakesh Vijayan

|

Hi SK

I am Rakesh vijayan thanks for your great work ,by your work I start to learn what is ldap , my request is will you make tutorial for ldap and samba pdc for us on ubuntu 12.04

Guest

|

It was a typo. Now its corrected. Thanks for pointing out.

Michael T

|

You shouldn’t be so stupid, in the first time.

PrestaShop

|

Hi! Thank you for this nice article. We’ve 130,000+ active stores, you forgot the “1″ ;-)

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .