In this tutorial we will help you install Joomla 2.5.1 under Ubuntu 11.10/12.04. As most PHP scripts require a web server having Apache, MySQL, and PHP to run, you need to install one under Ubuntu before proceeding with your first Joomla installation. In this tutorial, I have used the LAMP web server, you can find here instructions on how to install it under Ubuntu.

Joomla 2.5.1 Installation

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

Then follow setup instructions. The installation requires Output Buffering to be turned off, you can do this as instructed here (at the bottom of the page). At the Database page, provide the MySQL details we have created above:


In the Configuration page, provide your email, admin username & password; these details are used to access the admin area for managing your CMS:


When you finish the installation, click Remove installation folder:



The installation is now complete, the Joomla homepage is now accessible.


To access the admin area, open one of these two links:

http://127.0.0.1/joomla/administrator/

or

http://localhost/joomla/administrator/


That's it!
 
Top