CentOS Install Lighttpd Web-server With yum Command

ww‮ual.w‬tturi.com
CentOS Install Lighttpd Web-server With yum Command

To install the Lighttpd web server on CentOS using the yum package manager, you can use the following steps:

  1. Make sure that the epel-release repository is enabled on your system. The Lighttpd web server is available in the epel-release repository. You can enable the epel-release repository by running the following command:
sudo yum install epel-release
  1. Once the epel-release repository is enabled, you can install the Lighttpd web server using the yum package manager:
sudo yum install lighttpd

This will install the Lighttpd web server and all of the required dependencies.

  1. Once the installation is complete, you will need to start the Lighttpd service and enable it to start automatically at boot:
sudo systemctl start lighttpd
sudo systemctl enable lighttpd
  1. If you are using a firewall, you will need to allow incoming connections on the HTTP port (port 80) to access the Lighttpd web server. You can use the firewall-cmd command to allow incoming connections on port 80:
sudo firewall-cmd --add-service=http --permanent
sudo firewall-cmd --reload
  1. You can verify that the Lighttpd web server is running by accessing it from a web browser. Open a web browser and navigate to the http://your-server-ip URL, replacing your-server-ip with the actual IP address or hostname of your server. You should see the default Lighttpd welcome page.

The Lighttpd web server is now installed and running on your CentOS system. You can customize the Lighttpd configuration by editing the /etc/lighttpd/lighttpd.conf file. Consult the Lighttpd documentation for more information on configuring and administering the Lighttpd web server.

Created Time:2017-10-16 14:38:40  Author:lautturi