If you’ve ever wanted to write a blog that you had complete control over, you can install WordPress directly on Linux using what is known as a LAMP stack. LAMP is an acronym for Linux Apache MySQL and PHP, four basic packages needed for many modern websites, WordPress included. Installing the LAMP stack is fairly easy but will require some time and patience to get it done correctly. It is advised that you start with a fresh installation of Linux on bare metal or in a virtual machine to avoid dependency and security issues associated with hosting a web server.
Installing the LAMP stack
Directions for installing the LAMP stack on your Linux server can be found at the URL below. These instructions are meant for DigitalOcean droplets but can be used as a generic guide for any installation.
Debian (9 & 10)
Installing WordPress on LAMP Stack