{"id":22249,"date":"2017-05-18T07:24:48","date_gmt":"2017-05-18T12:24:48","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=22249"},"modified":"2022-06-03T03:42:10","modified_gmt":"2022-06-03T08:42:10","slug":"how-to-install-magento-2-with-apache-varnish-and-memcache","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-magento-2-with-apache-varnish-and-memcache\/","title":{"rendered":"How to Install Magento 2 with Apache, Varnish and Memcache"},"content":{"rendered":"
<\/p>\n
In this article, we will show you how to install Magento 2 on an Ubuntu 16.04 VPS<\/a> with MariaDB, Varnish as a full page cache, Apache and Memcache for session storage. This guide should work on other Linux VPS systems as well but was tested and written for an Ubuntu 16.04 VPS.<\/p>\n Before we begin, you may want a different setup for your Magento. You can follow this tutorial<\/a> 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.<\/p>\n If you have any different requirements, just get a Linux VPS from us<\/a> and we’ll set everything up for you, free of charge.<\/p>\n INSTRUCTIONS:<\/strong><\/p>\n First of all login to your Ubuntu 16.04 VPS via SSH<\/a> as user root<\/p>\n At the very beginning, it is best to start a screen session<\/a> by executing the following command<\/p>\n Update the system<\/a> and install necessary packages:<\/p>\n Make sure to always keep your server up to date. You can even enable automatic updates<\/a>.<\/p>\n Table of Contents<\/p>\nssh root@IP_address<\/pre>\n
screen -U -S magento<\/pre>\n
apt-get update && apt-get -y upgrade\r\napt-get -y install curl nano git<\/pre>\n