In this post we will explain how to install Joomla on Ubuntu 16.04, with MariaDB 10.2, PHP-FPM 7.1 and Nginx. Joomla is an open-source content management system (CMS) for publishing web content written in PHP. Joomla is one of the most popular CMSs and it is used all over the world to power millions of websites of all shapes and sizes. This guide should work on other Linux VPS systems as well but was tested and written for an Ubuntu 16.04 VPS.
Table of Contents
Before you start
Update the system and install necessary packages
Install MariaDB 10.2
If you already have MySQL or MariaDB installed you can skip this step and move to the next section. To add the MariaDB repository to your sources list and install the latest MariaDB server, run the following commands:
Secure your installation
When the installation is complete, run the following command to secure your installation:
Create new database
Create a new database and user for the Joomla installation using the following commands:
Install PHP 7.1
PHP version 7.1 is not available in the default Ubuntu 16.04 repositories so we will use the Ondrej’s PPA.
Once you enable the Ondrej’s PPA you can proceed and install PHP 7.1 and all necessary PHP modules using the following command:
Install Joomla
Installing Joomla is pretty easy and straightforward, first download the Joomla zip archive from the Joomla download page:
Once the download is completed, unzip the archive and move the extracted files to the /var/www/my.joomla.site
directory, which will be the root directory of your new Joomla site:
Finally change the ownership of the /var/www/my.joomla.site
directory to the www-data
user:
Install and configure Nginx
If you don’t have Nginx installed on your server, you can install the latest stable version from the official Ubuntu repositories:
Next, create a new Nginx server block:
Activate the server block by creating a symbolic link:
Test the Nginx configuration and restart nginx:
Open http://my.joomla.site/
in your favorite web browser and follow the on-screen instructions to complete the Joomla installation. That’s it. You have successfully installed Joomla on Ubuntu 16.04. For more information about how to manage your Joomla installation, please refer to the official Joomla documentation.
Of course you don’t have to install Joomla on Ubuntu 16.04, if you use one of our managed VPS hosting services, in which case you can simply ask our expert Linux admins to setup this for you. They are available 24×7 and will take care of your request immediately. PS. If you liked this post on how to install Joomla on Ubuntu 16.04, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.
Sorry, but when I perform it all and try to reach
http://my.joomla.site/
it gives Server Not FoundMake sure to replace all occurrences of my.joomla.site with your actual domain name. Also, check the DNS records of your domain name and make sure that your domain is properly pointed to your actual server IP address.