Saturday, April 28, 2012

Installing joomla on ubuntu in 15 minutes


This is a simple and easy to use guide to install joomla without any permission issues on ubuntu. You can successfully install joomla within 15 minutes.

Let's start the clock and start working.

First you need to have a web server on your local machine. Xampp is the most popular open source web server which installs all the required components for your web server.
Download XAMPP for Linux to your your Home folder.

Install XAMPP


Open Terminal and enter:

sudo tar xvfz xampp-linux-1.7.7.tar.gz -C /opt


(replace xampp-linux-1.7.7.tar.gz with the version of XAMPP you downloaded).

This installs ... Apache2, mysql and php5 as well as an ftp server.

Start the xampp server with this command.

sudo /opt/lampp/lampp start

Test your XAMPP localhost server


Open your Browser and point it to
http://localhost
The index.php will redirect to
http://localhost/xampp
There you will find instructions on how to change default usernames/passwords. On a PC that does not server files to the Internet or LAN then changing the defaults is personal choice.

Get Joomla


Download the latest Joomla instalation zip [1]

Unzip to your hard drive

Connect to localhost with an FTP client. You can use FileZilla client as an open source ftp client. you can download it from here

http://filezilla-project.org/download.php

once you installed filezilla, start filezilla and connect to your localhost server with following information.

host: localhost

username: nobody

password: lampp

Create a folder for your Joomla on the localhost server

FTP the unpacked Joomla installation files to the newly created Joomla folder. You can drag and drop files using filezilla client.

Important:
  • The XAMPP installation sets the correct Ownership of the files and permissions.


  • Using the CHOWN command will cause Ownership problems with xampp.


  • Using nautilus to manipulate folders/files on localhost will cause Ownership problems with xampp.


Configure Joomla


In your Browser type
http://localhost/yournewjoomlafolder
In the first Joomla installation screen if error reporting is shown as on then:

In your Terminal type

sudo gedit /opt/lampp/etc/php.ini


In the php.ini file, locate

error_reporting =

And change the value to

error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED

Also locate

display_errors = On

And change the value to

display_errors = Off


Stop then restart xampp for the new settings to take effect

FTP layer is NOT needed

Then  go to your phpmyadmin database page and create a database for the joomla installation. You can do this by going to your localhost folder and then click on the phpmyadmin link and then it will take you to the phpmyadmin home page.

create a database named db_joomla (or whatever name you like)

once the database is created, go to the phpmyadmin home page and click on previleges tab and create a new user and asign all the previleges from the option.

username: user_joomla

password: joomla123 (Best practise is to use the generate password option).

OK. Now you have a separate database for your joomla installation.

Database info

Host: localhost

Database name: db_joomla
Database user: user_joomla
Password for Database user: joomla123
Administrator password is your choice.

Installing Sample Data is recommended for the novice user.

After installation delete the installation directory and point your Browser to:
http://localhost/yournewjoomlafolder
or
http://localhost/yournewjoomlafolder/administrator
That's it. Now you have installed joomla on your ubuntu machine within 15 minutes.
Cheers !!!!!!!!!!!


1 comment: