How to install Joomla – 3.8.6 on Ubuntu – 17.04

To install Joomla 3.8.6 on Ubuntu 17.04

Joomla is an open source CMS tool which helps to build a dynamic website and manage online applications easily. It also publishes and manages your website contents like pictures, articles, video on the website. in this tutorial, we will cover the installation of Joomla 3.8.6 on Ubuntu 17.04.

Prerequisites

Joomla CMS requires a web server to functionally based on LAMP setup on your system and also with following required PHP modules.

apt-get install php-mysql php-curl php-json php-cgi php libapache2-mod-php php-mcrypt php-xmlrpc php-gd php-mbstring php  php-common  php-xmlrpc php-soap  php-xml php-intl  php-cli  
php-ldap php-zip php-readline php-imap php-tidy php-recode

Installing Joomla 3.8.6

Let' s first start with Updating the system repository

root@linuxhelp1:~# apt-get update
Hit:1 http://old-releases.ubuntu.com/ubuntu zesty InRelease
Hit:2 http://old-releases.ubuntu.com/ubuntu zesty-updates InRelease
Hit:3 http://old-releases.ubuntu.com/ubuntu zesty-backports InRelease
Hit:4 http://old-releases.ubuntu.com/ubuntu zesty-security InRelease
Reading package lists... Done

After Updating the system repository we need to create a database for Joomla and configure as follows.

root@linuxhelp1:~# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with   or g.
Your MariaDB connection id is 10
Server version: 10.1.25-MariaDB- Ubuntu 17.04

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type ' help '  or ' h'  for help. Type ' c'  to clear the current input statement.

MariaDB [(none)]>  CREATE DATABASE joomla 
Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]>  GRANT ALL PRIVILEGES ON joomla.* TO ' joomlauser' @' localhost'  IDENTIFIED BY ' 123'  
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]>  FLUSH PRIVILEGES 
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]>  EXIT 
Bye

And then, Let' s switch to the /tmp directory and download the Joomla package from the terminal using the following command .

root@linuxhelp1:~# cd /tmp/
root@linuxhelp1:/tmp# wget https://downloads.joomla.org/cms/joomla3/3-8-6/Joomla_3-8-6-Stable-Full_Package.zip?format=zip
--2018-03-27 11:49:50--  https://downloads.joomla.org/cms/joomla3/3-8-6/Joomla_3-8-6-Stable-Full_Package.zip?format=zip
Resolving downloads.joomla.org (downloads.joomla.org)... 72.29.124.146
Connecting to downloads.joomla.org (downloads.joomla.org)|72.29.124.146|:443... connected.
HTTP request sent, awaiting response... 303 See Other
.
.
Resolving s3-us-west-2.amazonaws.com (s3-us-west-2.amazonaws.com)... 52.218.209.96
Connecting to s3-us-west-2.amazonaws.com (s3-us-west-2.amazonaws.com)|52.218.209.96|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13502576 (13M) [application/zip]
Saving to: ‘ Joomla_3-8-6-Stable-Full_Package.zip?format=zip’ 

Joomla_3-8-6-Stable-Ful 100%[==============================> ]  12.88M   503KB/s    in 21s     

2018-03-27 11:50:16 (630 KB/s) - ‘ Joomla_3-8-6-Stable-Full_Package.zip?format=zip’  saved [13502576/13502576]

And then create a New directory named Joomla on apache root directory to extract the downloaded package.

root@linuxhelp1:/tmp# mkdir /var/www/joomla
root@linuxhelp1:/tmp# unzip Joomla_3-8-6-Stable-Full_Package.zip?format=zip -d /var/www/joomla/
Archive:  Joomla_3-8-6-Stable-Full_Package.zip?format=zip
  inflating: /var/www/joomla/LICENSE.txt  
  inflating: /var/www/joomla/README.txt  
   creating: /var/www/joomla/administrator/
   creating: /var/www/joomla/administrator/cache/
  inflating: /var/www/joomla/administrator/cache/index.html  
   creating: /var/www/joomla/administrator/components/
.
.
extracting: /var/www/joomla/templates/system/images/j_button2_right.png  
 extracting: /var/www/joomla/templates/system/images/selector-arrow.png  
  inflating: /var/www/joomla/templates/system/index.php  
  inflating: /var/www/joomla/templates/system/offline.php  
   creating: /var/www/joomla/tmp/
  inflating: /var/www/joomla/tmp/index.html  
  inflating: /var/www/joomla/web.config.txt

Next, we need to change the value of php.ini configuration file as follows.

root@linuxhelp1:/var/www# vim /etc/php/7.0/apache2/php.ini
[..] 
(line no : 230, 22)
output_buffering = Off
[..]

Next, switch to the Apache root directory and change the ownership and permission of Joomla Directory.

root@linuxhelp1:/tmp# cd /var/www/ 
root@linuxhelp1:/var/www# chown -R www-data.www-data joomla 
root@linuxhelp1:/var/www# chmod -R 775 joomla

After assigning permission, create Virtual Hosts for Joomla.

root@linuxhelp1:/var/www# vim /etc/apache2/sites-available/joomla.conf 
< VirtualHost *:80> 
ServerName www.linuxhelp1.com
DocumentRoot /var/www/joomla/

< Directory /var/www/joomla/> 
AllowOverride All
allow from all
< /Directory> 

< /VirtualHost> 

After Virtual Host Configuration enable the site using the following command.

root@linuxhelp1:/var/www# a2ensite joomla.conf
Enabling site joomla.
To activate the new configuration, you need to run
  systemctl reload apache2

And then restart the apache2 service to make the changes effect.

root@linuxhelp1:/var/www# systemctl restart apache2

Don' t forget to disable the default apache site.

root@linuxhelp1:/var/www# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
  systemctl reload apache2

And then restart the apache2 service to make the changes effect.

root@linuxhelp1:/var/www# systemctl restart apache2

Now, you can proceed the further installation from the browser by navigating the URL: http://local IP (or) domain name.

First Configure the Joomla main Configuration and proceed Next.


And then configure the database configuration and proceed further.

Now take an overview of the Configuration and finalize it.

After Finalizing the configuration Joomla will start installing on the server.

After installation, it will show the installation successful Status.

After Installation completes, you can access the Joomla by using Admin credentials.

After Successful login, you will see the following page.

With this, the method to install Joomla 3.8.6 on Ubuntu 17.04 comes to an end.

Tag : Joomla Ubuntu
Comment
franckc
Oct 03 2018
thks for the help.
Add a comment
FAQ
Q
How to create a directory on Joomla?
A
Run the following command:

# cd /var/www/html/

#mkdir joomla
Q
How to Verify the whether the httpd is running and listening the request on port 80 ?
A
you can Verify the httpd is running and listening the request on port 80 using the following command



netstat -antp | grep httpd
Q
How to unzip the zoomla file?
A
Use the following command:

#unzip Joomla_3.6.0-stable-Full_Package.zip -d /var/www/html/joomla
Q
give me the link to download latest version?
A
use the link to get download the latest version fo this "https://downloads.joomla.org/".
Q
Wanna I need for documentation for this?
A
refer this link as follow, https://docs.joomla.org/