Joomla is a free and open-source content management system (CMS). It is used for publishing web content and it’s great for the websites like e-commerce or social networking.
This guide outlines the general steps to install create a Joomla database and install the Joomla application on a Linux server.
The first step before installing Joomla on the server would be to create a database that would be used to store the Joomla data.
For installing Joomla, the latest Joomla installation archive file first needs to be downloaded. This can be done from the official Joomla downloads page https://downloads.joomla.org/.
Navigate to the path under which the Joomla application is to be installed. This can be under the default document root of the web service or under any website.
In the below example, Joomla is being installed under the default document directory of Apache /var/www/html/
.
# mkdir /var/www/html/joomla
# cd /var/www/html/joomla
Download the latest Joomla installation archive file.
# wget https://downloads.joomla.org/cms/joomla3/3-9-19/Joomla_3-9-19-Stable-Full_Package.zip?format=zip
Extract the zip file into the directory Joomla and the zip file containing the installation files.
# unzip Joomla_3-9-19-Stable-Full_Package.zip?format=zip
Configure Joomla and correct the File Permissions.
Change the htaccess.txt file name that comes with the default Joomla installation files to .htaccess
using the below command from the directory /var/www/html/joomla
.
# mv htaccess.txt .htaccess
Set the right file permissions for apache to be able to access Joomla files.
# chown -R apache:apache /var/www/html/joomla/
# chmod -R 755 /var/www/html/joomla
Now restart and check the status of the Apache service with the below commands for all PHP settings to take place.
# systemctl restart httpd
# systemctl status httpd
The Joomla installation page can now be browsed using a browser.
http://ipaddress/joomla (if joomla installed under default directory)
(or)
http://websitename/joomla (if joomla installed under a website)
Select the preferred installation language and input the sitename
, site description
, Email address
, username
and password
for the administrator in the respective boxes shown below image. Once it is filled, then click on Next
and it will redirect to the Database section.
Here enter the Database details created earlier and click on the Next
.
Click on install
that is shown in the below image.
Once the installation has been completed successfully, you will get the congratulation message.
Now remove the Joomla installation folder from the server with the below commands or remove it from the site that mentioned the above image.
# cd /var/www/html/joomla/
# ll | grep installation
# rm -rf installation
Now test the installation by navigating to the below.
http://ipaddress/joomla (if joomla installed under default directory)
(or)
http://websitename/joomla (if joomla installed under a website)
To log in Joomla site, enter the username
and password
as shown in the below image and click on Log in.
To log in as the site administrator, navigate to the below link and give the logins that we entered in the configuration process.
http://ipaddress/joomla/administrator (if joomla installed under default directory)
(or)
http://websitename/joomla/administrator (if joomla installed under a website)
After clicking on the Log in
button, you will get the control panel page as below.