How to setup Joomla 1.5.x in Ubuntu

This is a tutorial on how to set up Joomla in Ubuntu. The set up examples based on Linux Ubuntu desktop 8.04. You can use this as a guide to learn Joomla cms. If you are planning to set up a web server and Joomla as a production server, this tutorial also applicable in Ubuntu server as well (some of it where x-window is not required). However, the tutorial does not cover the web server security and other issues. That's different topics and you can find them in their respective category.

If you are ready, here is the list of what we are going to do:

Set up LAMP server in Ubuntu desktop

Open command terminal by clicking 'Applications - Accessories - Terminal'. Change to root environments using 'sudo su' command. See step by step example below:

kucing@ubuntu-laptop:~$ sudo su
[sudo] password for kucing: 
root@ubuntu-laptop:/home/kucing# tasksel

Choose LAMP server and OK to install. See screenshot example below:

Install LAMP server screenshot image

When LAMP server installation is finished, we can start Apache web server using '/etc/init.d/apache2 start' command. Then, we can start configure Apache web server.

Change directory to /etc/apache2.

root@ubuntu-laptop:/home/kucing# cd /etc/apache2/
root@ubuntu-laptop:/etc/apache2# ls
apache2.conf  envvars     mods-available  ports.conf       sites-enabled
conf.d        httpd.conf  mods-enabled    sites-available

Copy 'sites-available/default' file configuration for Joomla virtual host.

root@ubuntu-laptop:/home/kucing# cp sites-available/default sites-available/joomla-basic

Run 'a2ensite' to enable site:

root@ubuntu-laptop:/etc/apache2/sites-available# a2ensite joomla-basic
Enabling site joomla-basic.
Run '/etc/init.d/apache2 reload' to activate new configuration!
root@ubuntu-laptop:/etc/apache2/sites-available# /etc/init.d/apache2 reload
 * Reloading web server config apache2                                          
apache2: Could not reliably determine the server's fully qualified domain name, 
using 127.0.1.1 for ServerName
                                                                         [ OK ]
root@ubuntu-laptop:/etc/apache2/sites-available# cd ..
root@ubuntu-laptop:/etc/apache2# ls sites-enabled/
000-default  joomla-basic
root@ubuntu-laptop:/etc/apache2# 

Set up MYSQL database for Joomla cms

Create a database for Joomla. See example steps below:

root@ubuntu-laptop:/home/kucing# mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 66
Server version: 5.0.67-0ubuntu6 (Ubuntu)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

Create a new database:

mysql> create database joomladb;
Query OK, 1 row affected (0.07 sec)

mysql>\q

Quit mysql and we can begin the Joomla installation.

Install Joomla in Ubuntu

1) Download latest joomla 1.5.x from official Joomla website:

http://www.joomla.org/download.html

2) Extract joomla 1.5.x and move it to web server home directory. Here is an example on how to transfer Joomla to web server root directory in Ubuntu desktop:

root@ubuntu-laptop:/home/kucing# cd /var/www/
root@ubuntu-laptop:/var/www# mkdir joomla-basic
root@ubuntu-laptop:/var/www# cd joomla-basic/ 
root@ubuntu-laptop:/var/www/joomla-basic# cp -R /home/kucing/Documents/kursus-joomla/Joomla_1.5.14-Stable-Full_Package/* .
root@ubuntu-laptop:/var/www/joomla-basic# cd ..
root@ubuntu-laptop:/var/www# chown -R www-data.www-data joomla-basic/ 

3) Open web browser and key in “localhost/joomla-basic” in the url.

4) Follow joomla installation steps.

Choose language:

Setup Joomla - choose language screenshot image

Pre-installation check:

Setup Joomla - pre-installation check screenshot image

Joomla license agreement:

Setup Joomla - Joomla license agreement screenshot image

Joomla database configuration:

Setup Joomla - Joomla database configuration screenshot image

FTP configuration:

Setup Joomla - FTP configuration screenshot image

Main configuration:

Setup Joomla - Main configuration screenshot image

Finish:

Setup Joomla - Finish installation screenshot image

5) Remove “installation” directory.

root@ubuntu-laptop:/var/www# rm -r /var/www/joomla-basic/installation

Test Joomla cms

Open your new website's administration page by entering the address such as 'localhost/joomla15/administrator' in the web browser url. Replace the 'joomla15' with the name of your joomla's directory name.

Joomla administrator login page screenshot image

Key in joomla's administrator username and password.

Here's Joomla administration menu page:

Joomla administration menu screenshot image.

That's all. What you have to do next is to set up your website. Joomla provides sample data that you can use as an example on how your website can be. You can use that as a guide. My personal opinion, to set up a website using Joomla cms is quite difficult and confusing. It is also hard to find a simple step by step tutorial on how to create a Joomla website out there. Many tutorials just confused you more. Anyway, good luck!

There is a simple explanation about Joomla cms and a step by step guide for a new user in How to create a new website Joomla 1.5 tutorial for beginner tutorial. I hope the tutorial is useful for anybody planning to build a new website based on Joomla.


Nice guide. I love the way

Nice guide. I love the way you explain things. Keep up the good work.

black's last blog post... How to copy a long file name from thumb drive?

I would just add or better

I would just add or better correct the Joomla installation URL. It must point to 'installation' folder.
Something like: http://your_server/joomla/installation/

Thank you.

Thank you.

Thanks. After trying many

Thanks. After trying many many tutorials this is the only one that worked for me! Thanks again.

I'm glad that you found this

I'm glad that you found this tutorial is useful.

Hello there! Great tutorial

Hello there! Great tutorial and I love the way it starts by pointing it to the Desktop environment. Could you please do a detailed instruction for Ubuntu 10.04 and latest Joomla package? I would also like to know how I can upload my first Joomla site and what the requirements are.

Thanks,

Dawit

Well Done, this was a

Well Done, this was a fantastic little tutorial.
Just wanted to add that I used Webmin on the server to transfer the downloaded Joomla file.

Really awesome guide man.

Really awesome guide man. Couldnt have been easier. Thanks

Post new comment

The content of this field is kept private and will not be shown publicly.
This blog uses the CommentLuv Drupal plugin which will try and parse your sites feed and display a link to your last post, please be patient while it tries to find it for you.

Custom Search