Set up Magento 2 with Redis, Varnish and Nginx as SSL termination – RoseHosting Blog

In this article, we will show you how to install Magento 2 on an Ubuntu 16.04 VPS with MariaDB, PHP-FPM 7.0, Varnish as a full page cache, Nginx as SSL termination and Redis for session storage and page caching. This guide should work on other Linux VPS systems as well but was tested and written for an Ubuntu 16.04 VPS. Login to your VPS via SSH ssh [email protected]_server Update the system and install necessary packages sudo apt-get update && sudo apt-get -y upgrade sudo apt-get -y install curl nano git Install MariaDB 10.0 Install the latest MariaDB 10.0 server from the official Ubuntu repositories: sudo apt-get install -y mariadb-server When the installation is complete, run the following command to secure your installation: mysql_secure_installation Next, we need to create a database for our Magento installation. mysql -uroot -p MariaDB > CREATE DATABASE magento; MariaDB > GRANT ALL PRIVILEGES ON magento.* TO ‘magento’@’localhost’ IDENTIFIED BY ‘my_strong_password’;

Source: Set up Magento 2 with Redis, Varnish and Nginx as SSL termination – RoseHosting Blog