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.
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 Joomla_3.9.21-Stable-Full_Package.zip -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
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 ServerName 192.168.185.147 ErrorLog /var/log/joomla_error.log CustomLog /var/log/joomla_access.log combined </VirtualHost>
Reload the apache service and access the Joomla using the URL http://yourip/joomla. Fill the details and click on “Next“.
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“.
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.
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
Reload the URL http://yourip/joomla and you will see the output like below then you can use your admin credentials to log in.
We’ve successfully installed Joomla on CentOS. In a similar way, you can download and install Joomla for other Linux versions.