Install Joomla on Fedora 36

This article will take you through how to install Joomla on Fedora 36. Joomla is a content management system (CMS) used to create websites such as discussion forums, photo galleries, e-Commerce, and user communities. It is made by a group of volunteers with the aid of the administrative, financial, and legal resources of Open Source Matters, Inc.

How to Install Joomla on Fedora 36

If you have a server, PHP, and database installed skip to the Joomla installation.

Update your packages.

sudo dnf -y update

Install Apache Web Server on Fedora 36

  • Install Apache using the command below.
sudo dnf -y install httpd
  • Start Apache using the command below.
sudo systemctl start httpd
  • Enable Apache to start on boot.
sudo systemctl enable httpd
  • Allow HTTP and HTTPS on your firewall.
sudo firewall-cmd --add-service={http,https} --permanent
  • Restart the firewall to apply changes.
sudo firewall-cmd --reload

Install PHP 8.1 on Fedora 36

  • Add PHP Remi repository to your system using the command below.
sudo dnf -y install http://rpms.remirepo.net/fedora/remi-release-36.rpm
  • Next, enable PHP using the following commands.
sudo dnf config-manager --set-enabled remi
sudo dnf module enable php:remi-8.1
  • Then install PHP.
sudo dnf module install php:remi-8.1
  • Install commonly used PHP extensions.
sudo dnf install -y php-cli php-devel php-gd php-pear php-fpm php-zip php-mcrypt php-mbstring php-bcmath php-json  php-curl php-xml php-mysqlnd
  • Restart Apache.
sudo systemctl restart httpd

Install MariaDB Database Server on Fedora 36

  • Install MariaDB using the command below.
sudo dnf install mariadb mariadb-server -y
  • Start MariaDB using the following command.
sudo systemctl start mariadb
  • Enable MariaDB to start on boot.
sudo systemctl enable mariadb
  • Secure MariaDB.
sudo mysql_secure_installation

Sample output

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
haven't set the root password yet, you should just press enter here.

Enter current password for root (enter for none): 
OK, successfully used password, moving on...

Setting the root password or using the unix_socket ensures that nobody
can log into the MariaDB root user without the proper authorisation.

You already have your root account protected, so you can safely answer 'n'.

Switch to unix_socket authentication [Y/n] n
 ... skipping.

You already have your root account protected, so you can safely answer 'n'.

Change the root password? [Y/n] n
 ... skipping.

By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] y
 ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] y
 ... Success!

By default, MariaDB comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] y
 ... Success!

Cleaning up...

All done!  If you've completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!

Create Joomla Database on Fedora 36

  • Login to your MariaDB.
sudo mysql -u root -p
  • Create the Joomla database.
CREATE DATABASE Joomla_db;
  • Next, create a database user and password.
CREATE USER 'joomla_user'@'localhost' IDENTIFIED BY 'Joomla_password';
  • Give all privileges to the created user.
GRANT ALL PRIVILEGES ON Joomla_db.* TO 'joomla_user'@'localhost';
  • Flush privileges.
FLUSH PRIVILEGES;
  • Exit MariaDB.
exit;

Sample output

Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 9
Server version: 10.5.16-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> CREATE DATABASE Joomla_db;
Query OK, 1 row affected (0.001 sec)

MariaDB [(none)]> CREATE USER 'joomla_user'@'localhost' IDENTIFIED BY 'Joomla_password';
Query OK, 0 rows affected (0.004 sec)

MariaDB [(none)]> GRANT ALL PRIVILEGES ON Joomla_db.* TO 'joomla_user'@'localhost';
Query OK, 0 rows affected (0.005 sec)

MariaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.001 sec)

MariaDB [(none)]> exit;
Bye

Install Joomla on Fedora 36

wget https://downloads.joomla.org/cms/joomla4/4-1-5/Joomla_4-1-5-Stable-Full_Package.zip?format=zip
  • Create Joomla directory inside /var/www/html/.
sudo mkdir /var/www/html/joomla
  • Next, unzip Joomla to the directory created above.
sudo unzip Joomla_4-1-5-Stable-Full_Package.zip?format=zip -d /var/www/html/joomla
  • Give permission to Apache.
sudo chown -R apache:apache /var/www/html/joomla
sudo chmod 755  /var/www/html/joomla

Fedora 36 Joomla Apache virtual host configuration

  • Create Apache virtual host configuration file.
sudo nano nano /etc/httpd/conf.d/joomla.conf

Paste the configuration settings below. Note, change www.your-server.com with your actual domain.

<VirtualHost *:80>
   ServerAdmin [email protected]
   DocumentRoot "/var/www/html/joomla"
   ServerName www.your-server.com            
   ErrorLog "/var/log/httpd/example.com-error_log"
   CustomLog "/var/log/httpd/example.com-access_log" combined

<Directory "/var/www/html/joomla">
   DirectoryIndex index.html index.php
   Options FollowSymLinks
   AllowOverride All
   Require all granted
</Directory>
</VirtualHost>

Save(ctrl+s) and exit(ctrl+x) the file.

  • In case you don’t use SELinux, put it on passive mode
sudo setenforce 0
  • Alternatively, you can disable it.
sudo sed -i 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
  • Check its status.
sudo sestatus
  • Restart Apache web server.
sudo systemctl restart httpd

Access Joomla Web Interface on Fedora 36

  • Enter your server IP or domain name on your browser. Select your language and site name.
Install Joomla on Fedora 36
Install Joomla on Fedora 36
  • Enter your login credentials.
Install Joomla on Fedora 36
Install Joomla on Fedora 36
  • Enter your database details.
Install Joomla on Fedora 36
Install Joomla on Fedora 36
  • You should be able to see the page below if the data you provided was accurate.
Install Joomla on Fedora 36
Install Joomla on Fedora 36
  • You will be required to enter the username and password you inputted during the installation when you select administrator.
Install Joomla on Fedora 36
Install Joomla on Fedora 36
  • Sample administrator dashboard.
Install Joomla on Fedora 36
Install Joomla on Fedora 36
  • Joomla sample site.
Install Joomla on Fedora 36
Install Joomla on Fedora 36
  • That marks the end of our article, Cheers! We have gone through how to install Joomla on Fedora 36.

Read more on Joomla Documentation

Other Tutorials

Install LAMP Stack on OpenSUSE

Install WordPress with Apache on OpenSUSE

Install WordPress with LEMP Stack on Ubuntu 22.04

System administrator | Software Developer | DevOps

Leave a Comment