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 systems (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 is Ubuntu 16.04 server.
- Install Apache Server
- Install MySQL
- Install Php
- Install Joomla File
- Creating a Joomla Database in MYSQL
- Test Joomla
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 the 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 the server.)
2. Install Apache Server
Firstly install an Apache server i.e. a web server that helps to host websites and blogs.
Now the next step is to install the apache server by using the command.
# apt-get install apache2
Check the status with,
# systemctl status apache2
3. Install MySQL
MySQL is a software used to create databases, store and get data when requested. MySQL is used by WordPress to store the 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,
Here, we have to configure the basic details of MYSQL and it asked for a password, enter the MYSQL password.
Would you like to set up 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
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,
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 the LAMP stack is completed, now go proceed with installing the Joomla file.
Go inside the html folder
# cd /var/www/html
And download the latest version of Joomla CMS from the internet,
Now install unzip to be able to unzip the downloaded archive.
# apt-get install unzip
Now unzip the downloaded Joomla archive.
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 the 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’;
After that exit the MySQL console.
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.
After the above installation, you will be able to use Joomla CMS to manage your website content in your VPS server.