How To Install Joomla Content Management System On CentOS 8

We can install and download Joomla cms on CentOS 8 / 7. you can also download Joomla for other Linux versions as well. Let’s see, how to install Joomla on Linux.

How To Install Joomla Content Management System On CentOS 8

Joomla is a content management system for building websites or blogs using this tool. you can download the latest version of Joomla with the below command. 


Check Out: Install and Secure phpMyAdmin On Ubuntu 20.04 / 19.10

Once the package is unzipped, we need to move the package inside the /var/www/html directory with the following commands. 

mkdir -p /var/www/html/joomla
unzip -d /var/www/html/joomla/

Install the PHP, MariaDB, and apache using the below command.

yum install httpd -y
yum install mariadb mariadb-server -y
yum install install libapache2-mod-php php-mysql php-curl php-gd php-pear php-imagick php-imap php-mcrypt php-pspell php-tidy php-xmlrpc php-xml

When you have installed apache and PHP on the server. we need to start the Apache and MariaDB service.

systemctl start httpd && systemctl enable httpd
systemctl start mariadb && systemctl enable mariadb

Create a database for Joomla:

You can use any database to install Joomla CMS on Linux. we have already installed MariaDB 10 and going to create a database. 

MariaDB [(none)]> create database joomla;
Query OK, 1 row affected (0.002 sec)

MariaDB [(none)]> grant all privileges on joomla.* to 'joomla'@'localhost' identified by 'password';
Query OK, 0 rows affected (0.015 sec)

MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.009 sec)

Now the database has been created. we need to change the owner of the Joomla folder and permission as well. 

chown -R www-data:www-data /var/www/html
chmod -R 755 /var/www/html

Check Out: How To Configure Free SSL Certificate Using Certbot On Ubuntu

Create a virtual host for Joomla and open the vim /etc/httpd/conf.d/vhost.conf file. 

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/joomla
ErrorLog /var/log/joomla_error.log
CustomLog /var/log/joomla_access.log combined

Reload the apache service and access the Joomla using the URL http://yourip/joomla. Fill the details and click on “Next“. 

joomla download and install on centos 8

Now, we need to set up the database and fill the details. you need to select the database type as well. Click on “Next“.

If you have FTP configured on your machine, use the details to fill up otherwise leave it.

We can install the sample data but I don’t want it and select “None“.

Check Out: How To Upgrade Linux Kernel Version On CentOS

install joomla on centos

Scroll down and you will have to create a “configuraion.php” file if it’s not able to create itself. Copy the content and paste in the file /var/www/html/joomla/configuration.php and reload the apache service.

joomla download for linux

Once you have done with the above step, we need to delete the installation folder from the directory /var/www/html/joomla.

rm -rf installation

install joomla cms

Check Out: How To Install Drupal CMS 8.8 Version on Linux

Reload the URL http://yourip/joomla and you will see the output like below then you can use your admin credentials to log in.

joomla install centos

We’ve successfully installed Joomla on CentOS. In a similar way, you can download and install Joomla for other Linux versions. 

That’s it.

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment