Monday, January 7, 2013

Installation of Joomla on Ubuntu 11.10 / 12.04

1. After installing LAMP, add support and enable Joomla in Apache with the following commands:

cd /etc/apache2/

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

sudo a2ensite joomla

sudo /etc/init.d/apache2 restart


2. Next, we will create a MySQL database and MySQL user to use during the installation of Joomla later on. I will mark them in red, you can rename them to whatever you want.


- Via the terminal sign in to the MySQl server with this command:
mysql -u root -p 
- Create a MySQL database with this command:
create database joomla;
- We need also to create a MySQL user having the same name of the MySQL database with this command (replace "1234" with any password of your choice):
CREATE USER 'joomla'@'localhost' IDENTIFIED BY '1234';
- Grant now this user all access privileges on the already created database:
GRANT ALL PRIVILEGES ON joomla.* TO 'joomla' IDENTIFIED BY '1234';
Exit the MySQL server with this command:
exit

3. IIt's time now to download and install Joomla. The installation folder will be in /var/www/joomla. Via the terminal, run these commands:
cd /tmp && wget -O Joomla_2.5.7-Stable.zip http://goo.gl/41TMS
sudo mkdir /var/www/joomla

sudo unzip Joomla_2.5.7-Stable.zip -d /var/www/joomla

sudo chown -R www-data.www-data /var/www/joomla/
- Start now the installation of Joomla 2.5.1 by opening one of these two links:
http://127.0.0.1/joomla
or 
http://localhost/joomla