Here is a quick guide how to install LEMP (linux + nginx + mysql/mariadb + PHP 7.2) on Ubuntu Server 18.04 LTS.
If this is a brand new server, you may want to do the Initial Commands I do for every new Ubuntu server first. It will only take about 3 min and you can find those initial commands here:
https://ubuntu-server-how-to-tips-tricks.blogspot.com/2019/10/initial-setup-commands-for-every-new.html
PREPARE APT
sudo apt update
INSTALL NGINX (web server)
sudo apt install nginx
sudo systemctl enable nginx
INSTALL MYSQL SERVER (or MARIADB)
sudo apt install mariadb-server mariadb-client
sudo systemctl enable mariadb
sudo mysql_secure_installation
INSTALL PHP 7.2+
sudo apt install php7.2 php7.2-fpm php7.2-mysql php-common php7.2-cli php7.2-common php7.2-json php7.2-opcache php7.2-readline
That's it, if all goes well you can do all of the above in less than 10 min!
Congratulations! you now have a fully functional LEMP server!
No comments:
Post a Comment