Skip to content
This repository
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Installing Joomla on EC2

Create a Linux instance on EC2

In your security group allow access to ssh and http

Login to your instance and add your public key

$ ssh -i ~/.ssh/yourname-ec2.pem
$ echo ssh-rsa AAAA...k= >> .ssh/authorized_keys

Update your Linux system

$ sudo yum -y update

Install MySQL and the Apache, PHP, Git

$ sudo yum install -y mysql-server httpd php php-mysql git

Download and unpack joomla

$ sudo chown -R ec2-user.apache /var/www/html
$ wget
$ unzip  -d /var/www/html

Change the httpd config

$ sudo vi /etc/httpd/conf/httpd.conf
User ec2-user
Group apache

Add MySQL and Apache to runlevel and start the deamons

$ sudo chkconfig --level 3 mysqld on
$ sudo service mysqld restart

$ sudo chkconfig --level 3 httpd on
$ sudo service httpd restart

Put the Joomla installation under version control

$ cd /var/www/html
$ git init
$ git add --all
$ git config --global "Your Name"
$ git config --global ""
$ git commit -a -m "Initial joomla import"

Create a MySQL database

$ mysqladmin -u root create jokiga

Complete the browser based Joomla installation

Make a database backup

$ mkdir /var/www/html/mysqldump 
$ mysqldump -u root jokiga > mysqldump/jokiga-mysqldump.sql
$ git add --all
$ git commit -a -m "Joomla post install checkpoint"

Restoring JoKiGa from GitHub

Restore html into an empty folder

$ sudo chown ec2-user /var/www/html
$ cd /var/www/html
$ git init
$ git remote add origin
$ git pull origin master
$ sudo service httpd restart

Restore database content

$ sudo service mysqld restart
$ mysql -u root -p jokiga < jokiga-mysqldump.sql
Something went wrong with that request. Please try again.