Also read: How to setup joomla on ec2 using bitnami
# sudo apt-get install lamp-server^
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.
# 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';
# FLUSH PRIVILEGES;
Install phpmyadmin using the following code
Sudo apt-get install phpmyadmin
Now copy the public DNS of your instance followed by phpadmin [ec2-43-22-236-158.compute-1.amazonaws.com/phpmyadmin] 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.
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
Download the Joomla3 setup file using the following code.
sudo wget http://joomlacode.org/gf/download/frsrelease/17574/76732/Joomla_3.0.1-Stable-Full_Package.zip
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 Joomla_3.0.1-Stable-Full_Package.zip -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 [ec2-23-22-186-158.compute-1.amazonaws.com/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.