This short post shows students and new users the steps to install and use Magento 2 on Ubuntu Linux with the Nginx HTTP web server. This post will also have a link to set up free Let’s Encrypt SSL certificates to protect your Magento websites and applications.
Magento is a free and open source e-commerce platform based on PHP and MySQL that is used by millions of small businesses to sell and manage their products online. If you want to create an online store, Magento might be the easiest way to do it, especially if you will need user support to manage and maintain the store.
Magento allows users to create a complete online store, including inventory management, product catalogs, shipping, billing, and many more.
This tutorial is based on Ubuntu Linux. We will install the Nginx web server, the MariaDB database server and the PHP modules. We will also link to another post that will show you how to protect your Magento website using free SSL certificates from Let’s Encrypt.
For more information on Magento, see their Homepage
To start installing Magento on Ubuntu Linux, follow the steps below:
How to install Nginx on Ubuntu Linux
As mentioned above, we will use the Nginx web server to run Magento. Magento requires a web server to function, and Nginx is one of the most popular open source web servers available today.
To install Nginx on Ubuntu, run the following commands:
sudo apt update sudo apt install nginx
After installing Nginx, the following commands can be used to stop, start and enable Nginx services always start every time your server starts.
sudo systemctl stop nginx.service sudo systemctl start nginx.service sudo systemctl enable nginx.service
To test if Nginx is installed and working, open your web browser and look for the IP address or hostname of the server.
http: // localhost