Install Magento on a CentOS 7 VPS with Nginx, PHP-FPM and MariaDB

May 19, 2015

Magento is a very popular and feature rich open source e-commerce web application. Magento is fully customizable to meet the users requirements and allowing them to create and launch a fully functional online store in minutes. In this tutorial we will show you how to install Magento on a CentOS 7 VPS with Nginx web server, PHP-FPM and MariaDB.

As usual, log in to your server as user root and make sure that your CentOS 7 VPS is fully up-to-date

yum -y update

Magento needs a database, so we will install MariaDB server and create an empty database for the store

yum install mariadb mariadb-server

Start the MariaDB server and enable it to start on boot

systemctl start mariadb
systemctl enable mariadb

Run the mysql_secure_installation post-installation script to improve the security of the MariaDB server and set the root password.