Ubuntu ServerWeb Hosting

How to Install Joomla on an Ubuntu 18.04

Step 1: Install Joomla

Since the download will be a zip archive, you should begin by installing the unzip tool.

$ sudo apt-get install unzip

Next, cd to the ‘/tmp’ directory and download the latest version of Joomla from the official website.

$ cd /tmp
$ wget https://downloads.joomla.org/cms/joomla3/3-8-10/Joomla_3-8-10-Stable-Full_Package.zip

Joomla will be downloaded and stored under the archive file ‘Joomla_3-8-10-Stable-Full_Package.zip

We need to unzip this file and copy it to the root of our website probably under a directory name like ‘joomla’. You can use any name for this.

So first, we make the directory

$ sudo mkdir /var/www/html/joomla

Unzip the file

$ sudo cp /var/www/html/joomla/htaccess.txt /var/www/html/joomla/.htaccess

Step 2: Configure Joomla and Assign the Right File Permissions

The default Joomla installation comes with a ‘htaccess.txt’ which we should copy to create a ‘.htaccess’ file. Use the commands below to do this:

$ sudo cp /var/www/html/joomla/htaccess.txt /var/www/html/joomla/.htaccess

In order for Apache to be able to access Joomla files, we need to set the right file permissions using the commands below:

$ sudo chown -R www-data.www-data /var/www/html/joomla
$ sudo chmod -R 755 /var/www/html/joomla

Restart Apache for all PHP settings to take place

$ sudo systemctl restart apache2

Step 3: Finalize Joomla Installation via a browser

Next navigate to the URL ‘http://example.com/joomla’ on your browser. Remember to replace ‘example.com’ with your domain name or public IP address of your server


Then enter your site name, description , email address and password that you want to create for the administrator.

Then, click ‘Next’ on the bottom right to proceed.

On the page that follows, enter the database details that you created above and click ‘Next’ to proceed

Then click ‘Install’ on the next screen.

The setup wizard will finalize the installation and you will get a congratulations message:

Click on the ‘Remove Installation Folder’.

Step 4: Test the Installation

Navigate to the URL ‘http://example.com/joomla’ and remember to replace ‘example.com’ with your domain name or public IP address. If the installation was completed successfully, you should see the home page.


Leave a Reply

Your email address will not be published.

Back to top button