This is an old revision of the document!
A LEMP Server includes NGINX, MariaDB and PHP. For easier administration, we are also going to add PHPmyadmin. As we also need to make sure our sites are secure, we will also be adding Certbot
For this you will need a vanilla Ubuntu Server installation, please find it here
You will need to open up either an ssh client or Putty if on a Windows machine.
sudo apt update sudo apt upgrade sudo apt install nginx sudo ufw allow http https
sudo mkdir /media/webdisk/web-data
sudo chown www-data:www-data /media/webdisk/web-data -R
sudo apt install MariaDB-server MariaDB-client sudo systemctl start MariaDB sudo systemctl enable MariaDB
sudo mysql_secure_installation
It will first prompt you for the root password you set up during installation. Immediately following, you will be asked a series of questions, beginning with if you'd like to change the root password.
This is another opportunity to change your password to something secure if you have not done so already.
You should answer “Y” (for yes) to all of the remaining questions.
This will remove the ability for anyone to log into MySQL by default, disable logging in remotely with the administrator account, remove some test databases that are insecure, and update the running MySQL instance to reflect these changes. (taken from Digital Ocean)
sudo apt install php7.4 php7.4-fpm php7.4-mysql php-common php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline php7.4-mbstring php7.4-xml php7.4-gd php7.4-curl sudo systemctl start php7.4-fpm sudo systemctl enable php7.4-fpm