How to Install lighttpd with Fastcgi on CentOS 6.3

In this short guide, we will walk you through the steps to install Lighttpd with FastCGI on CentOS 6.3. Lighttpd is a secure, fast, compliant, and highly flexible web server that has been optimized for high-performance environments. It boasts a low memory footprint compared to other web servers and efficiently manages CPU load. Its advanced feature-set, including FastCGI, CGI, Auth, Output-Compression, URL-Rewriting, and many more, makes Lighttpd the perfect web server software for any server experiencing load problems.

For a deeper understanding of web servers, you may want to explore our articles on the best web servers, Apache, Nginx, and LiteSpeed.

Step 1: Installing Lighttpd and FastCGI

To begin the installation process, you will need to run the following command:

yum install lighttpd lighttpd-fastcgi -y

This command will initiate the installation of both Lighttpd and FastCGI on your CentOS 6.3 system. The ‘-y’ option is used to automatically answer ‘yes’ to any prompts that may appear during the installation process.

Example:

[root@centos63 ~]# yum install lighttpd lighttpd-fastcgi -y
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: mirror1.ku.ac.th
 * epel: mirror.nus.edu.sg
 * extras: mirror.issp.co.th
 * updates: mirror1.ku.ac.th
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package lighttpd.i686 0:1.4.31-1.el6 will be installed
---> Package lighttpd-fastcgi.i686 0:1.4.31-1.el6 will be installed
--> Processing Dependency: spawn-fcgi for package: lighttpd-fastcgi-1.4.31-1.el6.i686
--> Running transaction check
---> Package spawn-fcgi.i686 0:1.6.3-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                       Arch              Version                    Repository         Size
====================================================================================================
Installing:
 lighttpd                      i686              1.4.31-1.el6               epel              296 k
 lighttpd-fastcgi              i686              1.4.31-1.el6               epel               45 k
Installing for dependencies:
 spawn-fcgi                    i686              1.6.3-1.el6                epel               16 k

Transaction Summary
====================================================================================================
Install       3 Package(s)

Total download size: 357 k
Installed size: 808 k
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 357 k
(1/3): lighttpd-1.4.31-1.el6.i686.rpm                                        | 296 kB     00:02
(2/3): lighttpd-fastcgi-1.4.31-1.el6.i686.rpm                                |  45 kB     00:00
(3/3): spawn-fcgi-1.6.3-1.el6.i686.rpm                                       |  16 kB     00:00
----------------------------------------------------------------------------------------------------
Total                                                               112 kB/s | 357 kB     00:03
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : lighttpd-1.4.31-1.el6.i686                                                       1/3
  Installing : spawn-fcgi-1.6.3-1.el6.i686                                                      2/3
  Installing : lighttpd-fastcgi-1.4.31-1.el6.i686                                               3/3
  Verifying  : lighttpd-fastcgi-1.4.31-1.el6.i686                                               1/3
  Verifying  : spawn-fcgi-1.6.3-1.el6.i686                                                      2/3
  Verifying  : lighttpd-1.4.31-1.el6.i686                                                       3/3

Installed:
  lighttpd.i686 0:1.4.31-1.el6                 lighttpd-fastcgi.i686 0:1.4.31-1.el6

Dependency Installed:
  spawn-fcgi.i686 0:1.6.3-1.el6

Complete!

Step 2: Starting Lighttpd

Once the installation is complete, you can start the Lighttpd service by running the following command:

/etc/init.d/lighttpd start

This command will start the Lighttpd service on your server.

See also  How to use tmpwatch to Auto Clean Up Files and Logs in Linux

Step 3: Stopping Lighttpd

If you need to stop the Lighttpd service for any reason, you can do so by running the following command:

/etc/init.d/lighttpd stop

This command will stop the Lighttpd service on your server.

Conclusion

In this guide, we have walked you through the process of installing Lighttpd with FastCGI on CentOS 6.3. We hope you found this tutorial helpful and that it has provided you with the knowledge and confidence to install and manage Lighttpd on your own server. Remember, whether you’re using a dedicated server, a VPS server, cloud hosting, or shared hosting, understanding how to install and configure your web server software is a crucial skill for any webmaster or website administrator.

See also  How to Install Yum on Red Hat Enterprise Linux 5 (RHEL)

Commands Mentioned

  • yum install lighttpd lighttpd-fastcgi -y – This command installs Lighttpd and FastCGI on your CentOS 6.3 system.
  • /etc/init.d/lighttpd start – This command starts the Lighttpd service on your server.
  • /etc/init.d/lighttpd stop – This command stops the Lighttpd service on your server.

FAQ

  1. What is Lighttpd?

    Lighttpd is a secure, fast, compliant, and highly flexible web server that has been optimized for high-performance environments. It has a low memory footprint compared to other web servers and efficiently manages CPU load. It also offers an advanced feature-set, including FastCGI, CGI, Auth, Output-Compression, URL-Rewriting, and many more.

  2. How do I install Lighttpd with FastCGI on CentOS 6.3?

    You can install Lighttpd with FastCGI on CentOS 6.3 by running the command ‘yum install lighttpd lighttpd-fastcgi -y’. This command will initiate the installation of both Lighttpd and FastCGI on your system.

  3. How do I start the Lighttpd service?

    You can start the Lighttpd service by running the command ‘/etc/init.d/lighttpd start’. This command will start the Lighttpd service on your server.

  4. How do I stop the Lighttpd service?

    You can stop the Lighttpd service by running the command ‘/etc/init.d/lighttpd stop’. This command will stop the Lighttpd service on your server.

  5. Why should I use Lighttpd?

    Lighttpd is an excellent choice for high-performance environments due to its low memory footprint and efficient CPU load management. Its advanced feature-set, including FastCGI, CGI, Auth, Output-Compression, URL-Rewriting, and many more, makes it a flexible and powerful web server software.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *