INFORMATICS

The Best

How to Install Joomla CMS on CentOS 8

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active
 

Step 1 - Update your base system with the latest available packages.

dnf update -y

 

Step 2 Install Server

dnf install httpd mariadb-server php php-cli php-common php-spl php-hash php-ctype php-json php-mbstring php-zip php-gd php-curl php-mysqli php-xml unzip -y

 

start the Apache and MariaDB services and enable them to start after system reboot with the following command:

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

Step 3 – Configure the MariaDB Database
By default, MariaDB is not secured. You can secure it using the following script:

mysql_secure_installation
This script will set the MariaDB root password, remove anonymous users, disallow root login remotely, and remove the test database, as shown below:

Enter current password for root (enter for none): Just Press Enter
Set root password? [Y/n] Y
Remove anonymous users? [Y/n] Y
Disallow root login remotely? [Y/n] Y
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y
Once you are done, log in to the MariaDB shell with the following command:

mysql -u root -p
Provide your root password, then create a database and user for Joomla:

CREATE DATABASE joomladb;
GRANT ALL PRIVILEGES ON joomladb.* TO 'joomla'@'localhost' IDENTIFIED BY 'password';
Next, flush the privileges and exit from the MariaDB shell with the following command:

FLUSH PRIVILEGES;
EXIT;
Once the MariaDB is configured, you can proceed to the next step.

 

Search