DEV Community

Kirtiwardhan Rawal
Kirtiwardhan Rawal

Posted on

Web Servers Installtion- Apache, Ngnix, LiteSpeed and IIS

Web Server:-

Web server is a computer where the web content is stored. Basically a web server is used to host the web sites but there exists other web servers also such as gaming, storage, FTP, email etc.

Web Server Working

Web server respond to the client request in either of the following two ways:

  • Sending the file to the client associated with the requested URL.
  • Generating response by invoking a script and communicating with database

Image description

Apache Installation On Ubuntu

Apache is an open source web server that’s available for Linux servers free of charge.

Prerequisites

  • Ubuntu Server 20.04 LTS
  • Secure Shell (SSH) access to your server
  • Basic Linux command line knowledge

Step1:- Installing Apache
Step2:- Creating Your Own Website
Step3:-Setting up the VirtualHost Configuration File
Step4:-Activating VirtualHost file

Nginx Installation On Ubuntu

NGINX is open source software for web serving, reverse proxying, caching, load balancing, media streaming, and more. It started out as a web server designed for maximum performance and stability.

Prerequisites

  • Ubuntu Server 20.04 LTS
  • Secure Shell (SSH) access to your server
  • Basic Linux command line knowledge

Step1:- Installing Nginx
Step 2:- Adjusting the Firewall
Step3:- Checking your Web Server
Step4:- Managing the Nginx Process
Step5:- Setting Up Server Blocks

LiteSpeed Installation On Ubuntu

OpenLiteSpeed is a high-performance, lightweight, open source HTTP server edition of LiteSpeed Web Server Enterprise.

Prerequisites

  • Ubuntu Server 20.04 LTS
  • Secure Shell (SSH) access to your server
  • Basic Linux command line knowledge

Step 1: Add LiteSpeed Repository to Ubuntu 20.04
Step 2: Install OpenLiteSpeed onUbuntu 20.04
Step 3: Install PHP onUbuntu 20.04
Step 4: Setting the Administrative Password
Step 5: Access OpenLiteSpeed Web Admin onUbuntu 20.04
Step 6: Creating a Test Virtual Host on OpenLiteSpeed
Step 7: Change default Virtual Host Listening Port

IIS Server Installation on Windows

Internet Information Services is the feature of the Windows 10/8/7 or server running Desktop or Server hardware to provide a localhost web server. It is developed by Microsoft and only available in Windows.

Step 1: Run PowerShell as Admin
Step 2: Install IIS services
Command:- Enable-WindowsOptionalFeature -Online -FeatureName
Step3:- Run IIS Server

Top comments (1)

Collapse
 
ibtisam021 profile image
Ibtisam021

Hey Kirtiwardhan, you explained it very smoothly, and I would love to read more of your work.
Litespeed hosting, in my opinion, is the best in terms of performance and reliability, and if someone opts for choosing a hassle free process, I would recommend that they should go for managed cloud hosting with litespeed servers.
There are plenty to choose from, but it all comes down to user preferences. There are free trial periods available so they can try using the trial first.