Posts

Showing posts from October, 2021

Featured post

Learn Basics of Computer

What is Computer ? Computer is an electronic data processing machine which accepts input data from the user, stores the input data in its memory, processes the input data according to given instructions and finally gives us the desired output. What are Data ? Data are the raw facts and figures in the form of bits and bytes. What is information ? Information is processed data. Components of Computer Computer has two components. Such as: Hardware Software What is Hardware ? All the parts of computer that we can see and touch are known as hardware. Example - Keyboard, Mouse, Monitor, etc. What is Software ? A set of statements written in a programming language is known as a instruction. A set of instructions is known as a program. A set of programs is known as a software. Example - Microsoft Windows, Adobe Photoshop, Typing Master, etc. Classification of Computers Computers can be classified into three categories. Those are: According to type of dat...

TutorialConfiguration - Lighttpd - lighty labs

 Configuration How much time do you have to set up lighttpd? 5 minutes? 10 minutes? More? 5 minutes Want to run a fast, low-resource server for static content? It's easy. Create a text file named lighttpd.conf with the following content: server.document-root = "/var/www/servers/www.example.org/pages/" server.port = 3000 mimetype.assign = ( ".html" => "text/html", ".txt" => "text/plain", ".jpg" => "image/jpeg", ".png" => "image/png" ) lighttpd will listen on TCP port 3000 and bind to all interfaces by default. The few important MIME types are assigned and the document root (the base directory that is used for all requests) is set. The files in the document root have to be readable by the user starting the web server. First, check that your configuration is ok: $ lighttpd -tt -f lighttpd.conf Now start the server for testing: $ lighttpd -D -f lighttpd.conf and point your browser (run...

Complete Setup Tutorial For Lighttpd, A Lightweight Web Server

 There is a web server that is very conservative in its resource usage and memory footprint. That server is known as lighttpd (pronounced ‘lighty’). Setting one lighttpd instance can be a bit tricky, so this tutorial serves as a clear guide on how to properly configure a lighttpd server on Linux. Understanding the configuration file for each web server instance is key to successfully running lighttpd. This tutorial will also cover adding PHP support for your web servers. Lighttpd ​Configuration Options After installing lighttpd, we will begin by creating a file that defines the web server settings. Let’s call this ‘example.conf’ in the home directory. We will simply copy the default config file found in /etc/lighttpd. This is a standard ‘.conf’ file so the normal syntax rules apply, that is, for example, any characters after ‘#’ are treated as comments. $ cp /etc/lighttpd/lighttpd.conf ~/webservers/example.conf $ vim ~/webservers/example.conf # Or whatever editor you wish Server Mo...

Installing and configuring lighttpd webserver – HOWTO

 lighttpd is a web server for UNIX/Linux and Windows operating systems. It is an alternative to Apache web server. It is also called Lighty. ADVERTISEMENT It is designed to be secure, fast, standards-compliant, and flexible while being optimized for speed-critical environments. Its low memory footprint (compared to other web servers), light CPU load and its speed goals make lighttpd suitable for servers that are suffering load problems. Visit official site for more information. This document shows you how to install lighttpd and covers basic configuration. Installing lighttpd If you are using RPM based distro (RedHat, Fedora and friends) download RPM and other formats here. Binary RPM is here Download Fedora Core RPM Binary: $ cd /tmp $ wget http://lighttpd.net/download/lighttpd-1.4.13-1.i386.rpm $ su - # rpm -ivh lighttpd-1.4.13-1.i386.rpm Now skip to configuration section. Debian Linux user use apt-get command to install lighttpd: # apt-get install lighttpd Now skip to configurat...

How to Set Up Lighttpd Web Server on Ubuntu 18.04

 Lighttpd is a free, open-source, and high-performance web server designed for speed-critical environments. It is lightweight, secure, fast, and consumes very few resources compared to other web servers. Lighttpd also supports FastCGI, CGI, Output-Compression, Auth and URL-Rewriting, which makes it the perfect web server. Lighttpd can handle up to 10000 connections in parallel on a single server. If you are looking for a fast, efficient, and secure web server, then Lighttpd is the best choice for you. In this tutorial, we will explain how to install Lighttpd web server with PHP and PHP-FPM support on Ubuntu 18.04. Prerequisites A fresh Ubuntu 18.04 VPS on the Atlantic.Net Cloud Platform. A static IP address configured on your server. Step 1 – Create an Atlantic.Net Cloud Server First, log in to your Atlantic.Net Cloud Server. Create a new server, choosing Ubuntu 18.04 as the operating system with at least 2GB RAM. Connect to your Cloud Server via SSH and log in using the credenti...

How to install Lighttpd web server on Ubuntu 18.04

 Lighttpd is an open source web server known for its excellent performance on many environments. Thanks to the low hardware requirements, it manages high data traffic even on poorly performing systems. This tutorial provides a step by step explanation of how to install and configure Lighttpd on Ubuntu 18.04 and on how to maximize its performance by activating data compression, configuring a virtual host and improving keep-alive parameters. First, connect to your server via an SSH connection. If you haven’t done so yet, following our guide is recommended to connect securely with SSH. In case of a local server, go to the next step and open the terminal of your server. Installation of Lighttpd First, update the distribution repositories, to be sure you download the latest version of Lighttpd: $ sudo apt update Then, proceed with the installation by running the following command: $ sudo apt install lighttpd Once the installation is completed, the Lighttpd service is ready to be enabled...

Lighttpd - Wiki

lighttpd Jump to navigationJump to search lighttpd is "a secure, fast, compliant, and very flexible web-server that has been optimized for high-performance environments. It has a very low memory footprint compared to other webservers and takes care of cpu-load. Its advanced feature-set (FastCGI, CGI, Auth, Output-Compression, URL-Rewriting and many more) make lighttpd the perfect webserver-software for every server that suffers load problems." Contents 1 Installation 2 Configuration 2.1 Basic setup 2.1.1 Basic logging 2.1.2 Enabling https via SSL 2.1.2.1 Self-signed 2.1.2.2 Let's Encrypt 2.1.3 Redirect http requests to https 2.1.4 Password protecting a directory 2.2 CGI 2.3 FastCGI 2.3.1 PHP 2.3.1.1 Using php-cgi 2.3.1.2 Using php-fpm 2.4 uWSGI 2.5 Output compression 3 See also Installation Install the lighttpd package. Configuration Basic setup The lighttpd configuration file is: /etc/lighttpd/lighttpd.conf. By default it should produce a working test page. To check your...

How to Install Lighttpd on Ubuntu Server

 In this tutorial, we will walk you through how to install Lighttpd on Ubuntu Server. Lighttpd web server is an open-source web server for Windows and UNIX/Linux. It uses minimal system resources and is extremely quick in serving web pages to the requesting clients. This makes Lighttpd an essential web server for people looking to improve their web page loading speeds. Pre-requisites We have used a Ubuntu server system for this tutorial. But you can use any Ubuntu or Debian system. Make sure you have the following two things before you begin: Access to the root user or a user with sudo privileges No existing web server application (like apache) installed Steps to Install Lighttpd On Ubuntu Server To install Lighttpd on Ubuntu, you don’t need to download anything. It’s available in the default Ubuntu repositories. The name of the package is “lighttpd” and you can download it using the apt command. 1. Update APT Repositories Before we begin, we want to make sure that we can download ...

Apache HTTP Server - Tutorial

 TABLE OF CONTENTS Installation and configuration of the Apache HTTP server 1. Apache HTTP 2. Configuring virtual hosts in Apache 3. Apache HTTP links Installation and configuration of the Apache HTTP server This articles contains information about the Apache HTTP server. 1. Apache HTTP The Apache HTTP server project develops and maintains an open-source HTTP server. The Apache HTTP web server is one of the most used web server worldwide. 1.1. Installation On Ubuntu you can install the Apache HTTP server with the following command. sudo apt-get install apache2 1.2. Starting Apache To start the Apache service, use the following command. sudo service apache2 start Use the following commands to check if the Apache configuration is valid and to reload. sudo apache2ctl configtest sudo service apache2 reload Use the following command to list the available modules of the Apache HTTP server. /etc/init.d/apache2 -l 1.3. Configuration Files The main configuration file for the Apache Http ser...

How To Install the Apache Web Server on Ubuntu

 Introduction The Apache HTTP server is the most widely-used web server in the world. It provides many powerful features including dynamically loadable modules, robust media support, and extensive integration with other popular software. In this guide, you will learn how to install an Apache web server on your Ubuntu 18.04 server. This guide also outlines information about important Apache files and directories. Prerequisites Before you begin this guide, you should have a regular, non-root user with sudo privileges configured on your server. Additionally, you will need to enable a basic firewall to block non-essential ports. You can learn how to configure a regular user account and set up a firewall for your server by following our initial server setup guide for Ubuntu 18.04. When you have an account created, log in as your non-root user to begin. Step 1 — Installing Apache Apache is available within Ubuntu’s default software repositories, making it possible to install it using con...

What is EasyApache and how do I use it?

 What is EasyApache? EasyApache is a powerful and simple-to-use tool built into WHM/cPanel that you can use to update and configure your Apache web server. How do I get to EasyApache? EasyApache can be accessed two different ways. The most common (user friendly) method is via your WHM Panel. While the less 'user friendly', however more efficient method is via command line (SSH). Accessing EasyApache via WHM Login to your WHM Panel via the 'root' user. ( https://<server ip>:2087 ) Type 'EasyApache' in the search box located in the top left of the navigation panel (or) navigate to the "Software" category and select "EasyApache (Apache Update) This is the main view for EasyApache via WHM Accessing EasyApache via Command Line SSH into your server as root. ssh root@<servers ip> -p 2200 Once connected to your server, run the following command: /scripts/easyapache When EasyApache launches successfully you should see something similar to the f...

Using the EasyApache 4 feature in WHM

 Table Of Contents • Introduction • Accessing the EasyApache 4 feature • Review of the EasyApache 4 profiles • Customize your EasyApache4 Profiles Introduction The “EasyApache 4” feature in the WHM control panel allows you to update and configure your current Apache/PHP components on the server. In addition to that, you are able to install new Apache and PHP modules/extensions along with additional software on the server such as the Ruby programming language, NodeJS, Apache Tomcat, etc. Using the “EasyApache 4” feature, you will be able to create custom profiles that contain specific software along with the Apache/PHP configuration that you can then deploy on another server. This comes in handy if you have more than one server as the “EasyApache 4” functionality has a huge number of settings and going through all of them each time, selecting the ones you need can be very time-consuming. In this tutorial, we will not be covering each individual component of PHP or Apache as there is...

What is EasyApache?

 EasyApache is software installed in WHM and cPanel which is used to compile and configure both PHP and Apache modules. It installs, modifies and validates the Apache web server, PHP, Tomcat and other components of the web server. EasyApache is a command line activated script that can be accessed either through WHM or SSH to update and reconfigure Apache web server. It also updates and configures the PHP installation automatically. The required modules of PHP and Apache can be added, removed and installed on the server. Benefits of EasyApache: EasyApache is a user-friendly tool to be used via WHM panel. It provides the following benefits for the users. The user can select the automatic updates to PHP, Apache and the modules. Due to automatic updates, the possibility for security vulnerabilities can be decreased. Provides a simplified interface to add, remove or install components of the web server. Minimizes the downtime due to its automatic recovery process. Simplified access to c...

Deploying A WAR File in EasyApache 4 and Tomcat (Experimental)

 Recently EasyApache 4 started to provide Tomcat support on an experimental basis. After migrating from EasyApache 3 to EasyApache 4 it becomes very difficult and confusing for users to deploy and configure their web application (.war) in their VPS server. I also faced the same problem. Below are the short instructions on how I solved the problem. First of all, you need to read below documents. https://documentation.cpanel.net/display/EA4/Tomcat https://httpd.apache.org/docs/current/mod/mod_proxy_ajp.html Now follow the below instructions. 1) Build your web app - let's go with a .war file for example purposes. Rename it to ROOT.war. 2) In your VPS server go to the /home/user-name/ea-tomcat85/webapps location 3) Copy your ROOT.war file into the location (Step 2) 4) Go to /home/user-name/ea-tomcat85/conf file. There you should find a server.xml file. 5) Use the command vi server.xml to view the server.xml file. Find the Ajp/1.3 connector port. It should look something like this: 1 ...