Joomla is without doubt one of the hottest open-source content material administration methods and software program instruments on the planet that it’s used to create, set up, handle, and publish content material for small companies, governments, non-profits, and enormous organizations globally.
Joomla is supported by an unlimited group and powers:
Practically 2 million lively web sites.
Over 9% of all enterprise web sites.
Over 6% of the worldwide CMS market.
Greater than 3% of the complete net.
Joomla offers an amazing likelihood to develop your enterprise by constructing web sites and purposes. Its robust code and enormous world group make it simple to get began shortly. Whether or not you need to create web sites, develop purposes, design templates, or construct new instruments utilizing our framework, Joomla presents limitless potentialities.
As of now, the most recent steady launch is Joomla 5.1.2, which presents important developments over earlier releases, together with improved efficiency, enhanced safety, and a contemporary person interface.
On this information, we’ll stroll you thru the steps to put in the most recent model of Joomla on Crimson Hat Enterprise Linux (RHEL) 9 utilizing the LAMP stack (Linux, Apache, MySQL, PHP), together with configuring your database, downloading Joomla, and finishing the set up by way of an internet interface.
What’s LAMP Stack
LAMP is an open-source net growth software program stack whereby Linux is the working system, Apache is the net server, MySQL is an RDBMS, MariaDB is a community-developed fork of MySQL, and PHP is the object-oriented scripting language.
Conditions
Earlier than you start the set up of Joomla, guarantee you’ve gotten the next:
A RHEL 9 server is up and operating.
You will want root (sudo) privileges to put in the mandatory packages and configure companies.
It’s advisable to have a site title pointed to your server’s IP handle for accessing your Joomla web site.
Step 1: Setting System Hostname
To set the hostname to joomla.tecmint.com on RHEL 9, use the next hostnamectl command.
sudo hostnamectl set-hostname joomla.tecmint.com
hostnamectl
Subsequent, open the /and many others/hosts file to map the hostname to your server’s IP handle.
sudo nano /and many others/hosts
Add the next line to affiliate the hostname together with your server’s IP handle (substitute your_server_ip together with your precise IP handle).
192.168.122.31 joomla.tecmint.com
Step 2: Putting in LAMP Stack
Joomla requires an internet server (Apache) to serve its net pages, a database (MySQL) to retailer its content material, and PHP together with the mandatory extensions to operate correctly.
To put in the LAMP stack, run the next command.
sudo dnf set up httpd mariadb-server php php-mysqlnd php-xml php-mbstring php-json php-zip php-gd php-intl
![Install LAMP Stack](https://www.tecmint.com/wp-content/uploads/2015/07/Install-LAMP-Stack.png)
As soon as the LAMP stack is put in, begin the Apache and MariaDB service and allow it to start out on boot.
sudo ystemctl begin httpd mariadb
sudo systemctl allow httpd mariadb
Subsequent, it’s worthwhile to safe the MariaDB set up by operating the MySQL safety script, which is able to ask you to set the basis password, take away nameless customers, disallow root login remotely, take away the check database, and reload privilege tables.
sudo mysql_secure_installation
Upon getting your MariaDB set up, you may connect with the MySQL server and create a brand new database and person for Joomla.
sudo mysql -u root -p
CREATE DATABASE joomla;
CREATE USER ‘ravi’@’localhost’ IDENTIFIED BY ‘rig!43B#’;
GRANT ALL PRIVILEGES ON joomla.* TO ‘ravi’@’localhost’;
FLUSH PRIVILEGES;
EXIT;
![Create Joomla Database](https://www.tecmint.com/wp-content/uploads/2015/07/Create-Joomla-Database.png)
Subsequent, it’s worthwhile to configure the next required PHP settings within the /and many others/php.ini configuration file.
sudo nano /and many others/php.ini
Discover and replace the next settings within the php.ini file:
memory_limit = 256M
upload_max_filesize = 30M
post_max_size = 30M
max_execution_time = 30
Step 3: Downloading and Configuring Joomla
Now that we’ve got our net server, database, and PHP surroundings prepared, we are able to proceed to obtain and configure Joomla by visiting the Joomla obtain web page or utilizing the next wget command to obtain it instantly within the terminal.
wget https://downloads.joomla.org/cms/joomla5/5-1-2/Joomla_5-1-2-Steady-Full_Package.zip
Subsequent, extract the Joomla package deal to the net root listing.
sudo unzip Joomla_5-1-2-Steady-Full_Package.zip -d /var/www/html/joomla
Now change possession of the listing with person and group “apache” recursively with the beneath command.
sudo chown -R apache:apache /var/www/html/joomla
sudo chmod -R 755 /var/www/html/joomla
Step 4: Configure Apache for Joomla
To make Joomla accessible, you’ll have to configure Apache to serve the Joomla listing.
sudo nano /and many others/httpd/conf.d/joomla.conf
Add the next configuration.
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/joomla
ServerName your_domain_or_IP
<Listing /var/www/html/joomla>
Choices Indexes FollowSymLinks
AllowOverride All
Require all granted
</Listing>
ErrorLog /var/log/httpd/joomla-error.log
CustomLog /var/log/httpd/joomla-access.log mixed
</VirtualHost>
Change your_domain_or_IP together with your area title or server IP handle.
Take a look at the Apache configuration for syntax errors and restart Apache to use the brand new configuration.
sudo apachectl configtest
sudo systemctl restart httpd
Subsequent, it’s worthwhile to open port 80 for HTTP and port 443 for HTTPS on firewalld.
sudo firewall-cmd –permanent –add-service=http
sudo firewall-cmd –permanent –add-service=https
sudo firewall-cmd –reload
Step 5: Full the Joomla Set up through Internet Browser
Now that every part is ready up, you may full the Joomla set up by way of your net browser by going to the next URL.
http://your_domain_or_IP
![Joomla Installation Language](https://www.tecmint.com/wp-content/uploads/2015/07/Joomla-Installation-Language.png)
Observe the on-screen directions to finish the set up:
![Joomla Admin Login](https://www.tecmint.com/wp-content/uploads/2015/07/Joomla-Admin-Login.png)
![Joomla Database Settings](https://www.tecmint.com/wp-content/uploads/2015/07/Joomla-Database-Settings.png)
![Joomla Installation Progress](https://www.tecmint.com/wp-content/uploads/2015/07/Joomla-Installation-Progress.png)
![Joomla Installation Completed](https://www.tecmint.com/wp-content/uploads/2015/07/Joomla-Installation-Completed.png)
As soon as the set up is full, you’ll see successful message. You possibly can then log in to the Joomla admin panel utilizing the admin account you created.
![Joomla Admin Dashboard](https://www.tecmint.com/wp-content/uploads/2015/07/Joomla-Admin-Dashboard.png)
Conclusion
You’ve efficiently put in Joomla on RHEL 9, now you may create and handle your weblog, a enterprise web site, or a big e-commerce web site.