This short post shows students and new users the steps to install and use Magento 2 on Ubuntu Linux with Apache 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 Apache 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 Apache on Ubuntu Linux
As mentioned above, we will use the Apache web server to run Magento. Magento requires a web server to function, and Apache is one of the most popular open source web servers available today.
To install Apache on Ubuntu, run the following commands:
sudo apt update sudo apt install apache2
After installing Apache, the following commands can be used to stop, start and enable Apache services always start every time the server starts.
sudo systemctl stop apache2.service sudo systemctl start apache2.service sudo systemctl enable apache2.service
To test if Apache is installed and working, open your web browser and look for the IP address or hostname of the server.
http: // localhost