Web Servers

A Web Server is a computer or software that stores, processes, and delivers web pages to users via the Internet.

Overview

Common Uses of Web Servers

Web Server Working

Popular Web Servers

Server Description
Apache HTTP Server This is the most popular web server in the world developed by the Apache Software Foundation. Apache web server is an open source software and can be installed on almost all operating systems including Linux, UNIX, Windows, FreeBSD, Mac OS X and more. About 60% of the web server machines run the Apache Web Server.
NGINX Nginx was created to solve the so-called c10k problem, meaning that a web server that uses threads to handle user requests is unable to manage more than 10,000 connections at the same time.
Internet Information Services (IIS) The Internet Information Server (IIS) is a high performance Web Server from Microsoft. This web server runs on Windows NT/2000 and 2003 platforms (and may be on upcoming new Windows version also). IIS comes bundled with Windows NT/2000 and 2003; Because IIS is tightly integrated with the operating system so it is relatively easy to administer it.
Lighttpd The lighttpd, pronounced lighty is also a free web server that is distributed with the FreeBSD operating system. This open source web server is fast, secure and consumes much less CPU power. Lighttpd can also run on Windows, Mac OS X, Linux and Solaris operating systems.
Sun Java System Web Server This web server from Sun Microsystems is suited for medium and large web sites. Though the server is free it is not open source. It however, runs on Windows, Linux and UNIX platforms. The Sun Java System web server supports various languages, scripts and technologies required for Web 2.0 such as JSP, Java Servlets, PHP, Perl, Python, and Ruby on Rails, ASP and Coldfusion etc.
Jigsaw Server Jigsaw (W3C's Server) comes from the World Wide Web Consortium. It is open source and free and can run on various platforms like Linux, UNIX, Windows, and Mac OS X Free BSD etc. Jigsaw has been written in Java and can run CGI scripts and PHP programs.

Apache HTTP Server

Apache Pros and Cons

Pros:

Cons:

Setting Up a Web Server Using XAMPP

XAMPP is a free, open-source web server solution that makes it easy to develop and test PHP-based applications on your local computer.

XAMPP Includes:

Server-Side Scripting Language:
A language designed to be executed on a web server to generate dynamic web pages, interact with databases, handle user authentication, and perform other server-related tasks.

MariaDB vs MySQL

XAMPP Installation

Downlaod and installation

Start services (MAC OS)

Start services (Windows)

Test


What if you cannot start MySQL server?

Real-world Production Readiness

XAMPP is for development, not production

What do companies use instead?

Reference