Search Perform an advanced search query SOFTPEDIA
 
SOFTPEDIA
Updated one minute ago
HomeSubmit a program for being reviewedAdvertise on our websiteGet help on surfing our websitesSend us your feedbackGet information about our XML/RSS backend and how to use itBrowse the news archiveVisit our discussion forumVizitati forumul in limba romana



KLIP
  1. HOME
  2. SCIENCE
  3. TECHNOLOGY
  4. WEBMASTER
  5. SECURITY
  6. MICROSOFT
  7. LINUX
  8. APPLE
  9. GAMES
  10. TELECOMS
  11. REVIEWS
  12. LIFE & STYLE
  13. EDITORIALS
  14. INTERVIEWS
  15. RSS
Welcome!
Hello, Guest

Login if you have a Softpedia.com account.

Otherwise, register for one.

OTHER TIPS, TRICKS AND TUTORIALS

Installing Lighttpd on Fedora and Ubuntu

- A faster alternative to Apache.

By: Mihai Marinof, Linux Editor

I've always wanted to have a spare alternative to everything, just in case something goes wrong with the first, I could always fall back to second, third and so on, and I'm pretty sure I'm not the only one who likes it this way. When you think about a web server for Linux, you'll undoubtedly think about Apache. Why? Either because it's the only web server application you've worked with, or thanks to its constantly increasing popularity level due to the fact that most (if not all) Linux distributions are released with Apache pre installed by default. Or because you're simply not aware of other web server applications, besides Apache. In that case, you'll be pleased to know that there's an alternative to the popular webserver and it's called lighttpd, which meets and probably even exceeds Apache's capabilities.

Lighttpd (light footprint + httpd) is a web server designed to be fast, secure, standards-compliant and flexible, while being optimized for speed-critical environments. Its memory footprint is very low compared to other web servers, while its CPU load and its speed make lighttpd the most suitable for servers that suffer load problems. Moreover, Lighttpd is distributed
under the BSD license, which makes lighttpd free.

Install lighttpd

on Fedora

- Install lighttpd through yum:
CODE

yum install lighttpd


- Stop Apache (httpd) if you have it installed and running
Also, make sure it won't auto-start at the next reboot:
CODE

service httpd stop
chkconfig httpd off


on Ubuntu

- Install lighttpd:
CODE

sudo apt-get install lighttpd


building from Source Code

- Make sure the following requirements are met:
• automake 1.8 or higher
• autoconf 2.57 or higher
• libtool 1.5 or higher

- Next, download the latest source package from SOFTPEDIA
- Open a terminal, change directory, compile and install:
CODE

tar xfz lighttpd-x.x.x.tar.gz
cd lighttpd-x.x.x
./configure
make
make install


Enable PHP support

on Fedora

- Install fastcgi mod for lighttpd:
CODE

yum install lighttpd-fastcgi


- Make sure you have php-cgi installed by typing php-cgi -v. If you get a command not found error, type:
CODE

yum install php-cli


- Open /etc/lighttpd/lighttpd.conf in your favorite editor and look for the fastcgi.server section. Uncomment the lines in that section so it will look like this:
Also, make sure that the "bin-path" is correct by running command /usr/bin/php-cgi -v. If it's wrong, run type php-cgi to get the correct one.

Note: It's possible that when you try to view a php file in lighttpd, you will get a 403 forbidden error. If you follow the above guide, that error will be remedied.

on Unbuntu

- Install PHP5-cgi:
CODE

sudo apt-get install php5-mysql


- Enable CGI for lighttpd:
CODE

sudo lighty-enable-mod cgi


Running lighttpd

on Fedora:

- Login as root and type:
(use 'restart', just in case it has been auto ran)
CODE

/etc/init.d/lighttpd restart

By default, the document root (web server directory that holds the HTML files) for lighttpd on Fedora is in /srv/www/lighttpd/.

on Ubuntu:

- Open a terminal and type:
CODE

sudo /etc/init.d/lighttpd start

By default, the document root for lighttpd on Ubuntu is in /var/www.

MORE RELATED ARTICLES: GNU Screen Tutorial Setting Up A Central Syslog Server Creating a Local Update Repository for FC6 Wolfenstein: Enemy Territory Server Setup How to Bind a Range of IPs Screencast Guide: Capure Your Linux Desktop on Video! How to Setup an Encrypted Filesystem Grant Root Privileges to Regular Users
 
Comments | Link here | Subscribe
Print | Send to friend
Today's News | Yesterday's News

Search:

16th January 2007, 11:34 GMT | Copyright (c) 2007 Softpedia | Contact:
Read by 10,110 user(s) | Rating: | 9 vote(s) so far | Cast your vote:
Installing Lighttpd on Fedora and Ubuntu - USER OPINIONS




We are sorry, there are no opinions available for this article.






SHARE YOUR OPINION ABOUT Installing Lighttpd on Fedora and Ubuntu

Since you are not logged on, your comments will have to be approved before being displayed.
Click here to login, or register.
Your Name:
Your Email:
Type in the result:
Your Opinion:
 


DO YOU WANT TO CONTACT US?  

If you have some comments or you want to send us some information you can send us an email directly to .
You can use the form below for the same purpose.
Your full name: (at least 3 characters)
Your email address: (at least 5 characters)
Message subject: (at least 5 characters)
Message text:
(at least 10 characters)
Type in the result:
 
 



© 2001 - 2008 Softpedia. All rights reserved.
Softpedia™ and Softpedia™ logo are registered trademarks of SoftNews NET SRL.
Copyright Information | Privacy Policy | Terms of Use | Contact Softpedia | Update your software | Archive