How to install Joomla on Linux Cloud Servers

2020-06-15 By Ryan 5165 Views linux joomla cms_application
19 reviews

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.


Create Joomla database

The first step before installing Joomla on the server would be to create a database that would be used to store the Joomla data.


  1. Log in to the database server by executing the below command.

    # mysql -u root -p
    

    Joomla1

  2. Create the Joomla database and an associated database user.

    > CREATE DATABASE db_joomla;
    
    > CREATE USER 'user_joomla'@'localhost' IDENTIFIED BY 'joomlapwd';
    

    Joomla2

    NOTE: db_joomla is the database name, user_joomla is the database user associated with db_joomla and joomlapwd is the password for the user user_joomla.

  3. Grant permissions for the database user to access the Joomla database.

    > GRANT ALL ON db_joomla.* TO 'user_joomla'@'localhost' IDENTIFIED BY 'joomlapwd';
    

    Joomla3

  4. Exit the MySQL/MariaDB database server.

    > FLUSH PRIVILEGES;
    
    > quit;
    

    Joomla4

    NOTE: Replace the database name and username with your original database name and username and set a strong password.


Start to install Joomla

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/.


  1. 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
    

    Joomla5

  2. 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
    

    Joomla6

  3. 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
    

    Joomla7

  4. 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
    

    Joomla8

  5. 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
    

    Joomla9

  6. 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
    

    Joomla10

  7. 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.

    Joomla11

  8. Here enter the Database details created earlier and click on the Next.

    Joomla12

  9. Click on install that is shown in the below image.

    Joomla13

  10. Once the installation has been completed successfully, you will get the congratulation message.

    Joomla14

  11. 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
    

    Joomla15

  12. 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)
    

    Joomla16

  13. To log in Joomla site, enter the username and password as shown in the below image and click on Log in.

    Joomla17

  14. 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)
    

    Joomla18

  15. After clicking on the Log in button, you will get the control panel page as below.

    Joomla19


Related Tutorials

What do you think about this article?

Rate this article
LayerStack Promotion
Need assistance?

Try this guide to receive free bundled services at signup on a new free account.

Sign Up

Your Feedback Is Important

We hope you’ll give the new products and updates a try. If you have an idea for improving our products or want to vote on other user ideas so they get prioritized, please submit your feedback on our Community platform. And if you have any questions, please feel free to ask in the Community or contact our Technical Support team.