In this tutorial we’ll learn how to install Joomla on CentOS 7. We will also install and configure its prerequisites. Joomla is a powerful content management system for building websites and programs. Written in PHP, Joomla forces a variety of websites, including portals, intranets, online books, e-commerce shops, and government apps. Joomla also has a rich ecosystem of plugins, themes, and specialist consultants to ease the process of building everything you might want on its wealthy platform.
I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.
Install Joomla on CentOS 7
Step 1. First, ensure your system is fully up-to-date by running the following:
yum -y update
Step 2. Installing LAMP on CentOS 7.
You should check out this LAMP stack install tutorial for CentOS 7, if you haven’t installed LAMP yet. Once it’s installed, come back here and read on. We also will install the required packages for LAMP stack and the important PHP extension that Joomla relies on:
yum install php70w php70w-dom php70w-mbstring php70w-gd php70w-pdo php70w-json php70w-xml php70w-zip php70w-curl php70w-mcrypt
Step 3. Installing Joomla.
To download the Joomla package, go to its official website, copy the link of Joomla 3.7.5 stable zip package from it and paste it using ‘wget’ command on your terminal:
wget https://downloads.joomla.org/cms/joomla3/3-7-5/Joomla_3-7.5-Stable-Full_Package.zip unzip -q Joomla*.zip -d /var/www/html
Once it is done, set the owner permission for Apache root directory:
chown -R apache:apache /var/www/html chmod -R 755 /var/www/htm
Step 4. Configure Database for Joomla.
Next, we need to create a database for the Joomla installation:
mysql -uroot -p
Run the following command to create a database for Joomla:
MariaDB [(none)]>create database joomladb; MariaDB [(none)]>create user joomlauser@localhost identified by 'password'; MariaDB [(none)]>grant all privileges on joomladb.* to joomlauser@localhost; MariaDB [(none)]>flush privileges; MariaDB [(none)]>exit
Step 5. Configure Firewall.
You will need to allow port 80 and 443 to access the Joomla from outside network. You can do this by running the following commands:
firewall-cmd --permanent --add-service=http firewall-cmd --permanent --add-service=https
Step 5. Accessing Joomla Web Installation.
Now you can access the Joomla web install wizard in your browser by entering the domain name or http://your_ip/ to continue your Joomla installation.
Congratulation’s! You have successfully install and configured Joomla CMS on your CentOS 7 server. Thanks for using this tutorial for installing Joomla on CentOS 7 system.