How To Install Joomla 3 on Amazon EC2 Ubuntu Instance

By -
Joomla is one of the popular open source content management system.There are few steps involved in installing joomla on a EC2 Ubuntu instance. Follow the step by step process to install joomla.

Also read: How to setup joomla on ec2 using bitnami

1. Launch Ubuntu Instance:

How to launch Ubuntu instance on Amazon EC2

2. Connect the Ubuntu Instance using putty:

How to connect Amazon instance using putty

3. Installing the LAMP stack:
# sudo apt-get install lamp-server^
4. Configuring database:

A database has to be created with a user ,granting all privileges to the user.You can do this in two ways. Either you can do it manually using putty or you can install phymyadmin and you can configure the database there.

Configuring Database manually:
# sudo mysql -u root -p
# CREATE DATABASE joomlademo;
# CREATE USER demouser;
# SET PASSWORD FOR joomlauser = PASSWORD("demopassword");
# GRANT ALL PRIVILEGES ON joomlademo.* TO demouser@localhost IDENTIFIED BY 'passwod';
# exit
Configuring database through phpmyadmin:

Install phpmyadmin using the following code

Sudo apt-get install phpmyadmin

Now copy the public DNS of your instance followed by phpadmin [] and

Login using user name “root” and your Mysql password.

Go to–>privileges–>add new user and give the user name.password of your choice and select the database privileges as ashown in the figure below.

5. Configuring apache server:

To configure apache for joomla tou need joomla configuration folder in apache folder.It is done by the following command

sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/joomla

Now set up joomla site and restart the apache server using the following commands

sudo a2ensite joomla
sudo service apache2 restart
6. Downloading and installing Joomla:

Download the Joomla3 setup file using the following code.

sudo wget

Make a folder named joomla inside www folder

sudo mkdir /var/www/joomla

It is in Zip format. So you have to intall zip to unzip the joomla files.Use the following code to install zip

sudo apt-get install zip

Now unzip the joomla files to www

sudo unzip -q -d /var/www/joomla

Inorder to allow joomla to write to your file system during installation you have to set permissions for joomla using the following commands

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

Now copy the public DNS of your ubuntu instance followed by joomla [] paste it in browser and hit enter. Enter the necessary details and follow the steps in the installtion process.Once you enter all the credentials you will be asked to remove the installation files. Click remove it button and set up your site using the joomla dash board.

AWS Certified Solutions Architect and a Cloud Computing Enthusiast.