How to install and configure LAMP (Linux,Apache Mysql/MariaDB,Php) with Joomla CMS in Ubuntu 16.04. - CloudMinister

How to install and configure LAMP (Linux,Apache Mysql/MariaDB,Php) with Joomla CMS in Ubuntu 16.04.

Joomla is one of the most popular and open source Content Management System(CMS), which is used to build websites and online applications. It is free and extendable which is separated into front-end and back end templates.

In this blog we are going to configure Joomla with LAMP in Ubuntu 16.04 for that the Prerequisite are Ubuntu 16.04 server.

Contents

  1. Prerequisite
  2. Install Apache Server
  3. Install MySQL
  4. Install Php
  5. Install Joomla File
  6. Creating a Joomla Database in MYSQL
  7. Test Joomla

1. Prerequisite

Firstly required Ubuntu 16.04 VPS along with root privileges or you can also use sudo in starting of the commands.
Several commands are used to check the system status for installation of joomla CMS on the server.

# df -h (To check the status of memory in the system.)

#cat /etc/os-release(To check the operating system of the server.)

# apt-get update(To update all the packages in server.)

2. Install Apache Server

Firstly install Apache server i.e. a web server that help to host websites and blogs.
Now the next step is to install apache server by using command.

# apt-get install apache2

Check the status with,

# systemctl status apache2

3. Install MySQL

MySQL is a software used to create databases, stores and get data when requested. MySQL is used by wordpress to store database of its users. 

Now the next step is to install MYSQL and link it with PHP.

# apt-get install mysql-server php7.0-mysql

One dialog box is prompted for MySQL password, give the root password.

Now complete the MYSQL installation,   

# mysql_secure_installation

Here, we have to configure the basic details of MYSQL and it asked for password, enter the MYSQL password.

Would you like to setup validate password plugin? N (Use to setup     password policy)

Change the root password? N

Remove anonymous users? Y

Disallow root login remotely? Y

Remove test database and access to it? Y

Reload privilege tables now? Y

4.Install PHP

Joomla requires all the components of LAMP and the last PHP 7.0 to be installed.

# apt-get install php7.0 libapache2-mod-php7.0 php7.0-mcrypt   php7.0-xml php7.0-curl php7.0-json php7.0-cgi

Check that php is installed correctly or not, For that remove default file from /var/www/html directory i.e. index.html and create new file i.e. info.php.

# cd /var/www/html

# nano info.php

And enter the sample code in info.php file,

<?php

phpinfo();

?>

Restart the apache server.

#systemctl restart apache2

After that open any browser and give IP i.ehttp://ip_address_server/

and here check the default page for php.

Now remove the index.php file,

# rm /var/www/html/index.html

5. Install Joomla File

Once the configuration of LAMP stack is completed, now go proceed with installing Joomla file.

Go inside the html folder

# cd /var/www/html

And download the latest version of Joomla CMS from internet,

#wgethttps://downloads.joomla.org/cms/joomla3/3-7-5/Joomla_3-7.5-Stable-Full_Package.zip

Now install unzip to be able to unzip the downloaded archive.

# apt-get install unzip

Now unzip the downloaded Joomla archive.

#unzip Joomla_3-7.5-Stable-Full_Package.zip

After that set the appropriate file permissions,

# chown -R www-data.www-data /var/www/html

#chmod -R 755 /var/www/html

6. Creating a Joomla Database in MYSQL

Before proceeding with the installation of Joomla we have to create Database for Joomla in MySQL console.

# mysql -u root -p

Enter the password of MySQL and after that create a new database for Joomla

mysql>CREATE DATABASE Joomla;

Now create a new user and grant all privileges to the Joomla database.

mysql>GRANT ALL PRIVILEGES on Joomla.* to 

‘username’@’localhost’ IDENTIFIED BY ‘password’;

mysql>FLUSH PRIVILEGES;

After that exit the MySQL console.

mysql>exit

7. Test Joomla

Now after all the configuration done successfully, Restart the apache web server.

# Systemctl restart apache2

After the server is restarted go in any browser and typehttp://ip_address/

And then the installation page is open here i.ehttp://ip_address/instalation/

Now configure the basic details. And after the administrator prompt is open. Launch the website in its control panel and refresh the URL.

CONCLUSION:

After the above installation, you will be able to use Joomal CMS to manage your website content in your VPS server.

Learn how to scale, manage, and optimize your applications with a SLB. Read our solution brief "Get More from Your Enterprise Network".

DOWNLOAD SOLUTION BRIEF

Get started with CloudMinister Today