In this tutorial we will show you how to install Joomla on CentOS 8. For those of you who didn’t know, Joomla is a free, open source and popular content management system (CMS) that can be used to build online applications and websites. It uses a PHP application and back-end databases such as MySQL or MariaDB. Joomla can be used for small business and corporate websites, e-commerce stores, online magazines, personal blogs and portfolios and much more.
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Joomla on a CentOS 8 server.
Install Joomla on CentOS 8
Step 1. First of all make sure that all packages are up to date.
Step 2. Installing LAMP Stack.
If you don’t have a LAMP stack already installed on your server, you can follow our guide here. Also install required PHP modules, run the command below to install other required PHP extensions for Joomla:
Now, we download the latest version of Joomla:
wgethttps://downloads.joomla.org/cms/joomla3/3-9-14/Joomla_3-9-14-Stable-Full_Package.zip?format=zip -O joomla.zip
Give proper permissions to the web root directory with the following command:
By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script. You should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB.
Configure it like this:
Next we will need to log in to the MariaDB console and create a database for the Joomla. Run the following command:
This will prompt you for a password, so enter your MariaDB root password and hit Enter. Once you are logged in to your database server you need to create a database for Joomla installation:
We will create Apache virtual host for your Joomla website. First create ‘/etc/httpd/conf.d/vhosts.conf’ file with using a text editor of your choice:
Next, create the virtual host:
Add the following lines:
Save and close the file. Restart the Apache service for the changes to take effects:
In case OS firewall enabled on your server then provide access to port 80 and 443 to be accessed from outside the network:
Open your web browser and type the URL http://your-server-ip, you should see the following page:
Congratulation’s! You have successfully installed Joomla. Thanks for using this tutorial for installing Joomla content management system on CentOS 8 system. For additional help or useful information, we recommend you to check the official Joomla website.