/webserver

Installation of a basic LAMP server

LAMP logos

Webserver

This document describes the installation of a basic LAMP server, based on an empty Ubuntu instance.

Features

  • Apache 2.4
  • PHP 7.2
  • MySQL 5.7
  • SSL support with Let's Encrypt
  • Email support
  • Multi-domain support

Installation

Philosophy

The server can run in two modes:

  • dev, in a local virtual machine (as a MAMP replacement, for instance)
  • prod, somewhere on the Internet (like a DigitalOcean droplet)

There are almost no differences between the two, but:

  • A few Apache parameters (look for <If> conditions in apache2.conf)
  • The SSL support (in dev mode, Let's Encrypt is not used)
  • The mailing support (in dev mode, Mailcatcher is used instead of sendmail)