This document describes the installation of a basic LAMP server, based on an empty Ubuntu instance.
- Apache 2.4
- PHP 7.2
- MySQL 5.7
- SSL support with Let's Encrypt
- Email support
- Multi-domain support
- Setup an empty virtual machine (for
dev
mode), or start from an empty VPS - Configure users and security features
- Install Apache
- Install PHP
- Install MySQL
- Configure SSL support
- Configure email support
- Install an application
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 ofsendmail
)