Install Joomla in Ubuntu

Prior to the installation of joomla, we have to install "apache" server.  Why do we need apache server? :) Apache is the open source freely available software. It is platform independent i.e it works on all Operating systems such as Unix, GNU, FreeBSD, Linux, Solaris, Novell NetWare, Mac OS X, Microsoft Windows :) So, this web server is majorly used.


Well, first we should install this. This can be installed by Opening the Terminal (Applications > Accessories > Terminal).  Then type the following in terminal.    sudo apt-get install apache2.   The Terminal will then ask you for you're password, type it and then press enter.


Testing Apache:-




  • Open up any web browser and then enter the following into the web address. http://localhost/

  • Now you will see a message saying "It works!" , congrats to you!


Now we have to install PHP. Type the following in terminal.


sudo apt-get install php5 libapache2-mod-php5


This will install PHP.  Now we have to restart our apache server.  This is done by entering the following in terminal.


sudo /etc/init.d/apache2 restart


Testing PHP phase:-


In the terminal copy/paste the following line.


sudo gedit /var/www/testphp.php


Copy/Paste this line into the phptest file.   <?php phpinfo(); ?>


Save and close the file.


Now open you're web browser and type the following.


http://localhost/testphp.php This will open a file which is in blue color and this shows that php is configured.


Now we are done with Apache and PHP :) ;)


Install MySQL:-


Type the following in terminal.    sudo apt-get install mysql-server


Now open a file my.cnf by entering the following command in the terminal.


gksudo gedit /etc/mysql/my.cnf


Change the line  bind-address = 127.0.0.1 to bind-address = localhost


Enter mysql -u root -p in terminal.


Now you will be shown "mysql>" prompt. Enter


SET PASSWORD FOR 'root'@'localhost'=PASSWORD('yourpassword');

[change yourpassword to a password of your choice.]

phpMyAdmin is an easy tool to edit your databases. We can install this by entering in the terminal   sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin

Enter gksudo gedit /etc/php5/apache2/php.ini

Change this line  ;extension=mysql.so to  extension=mysql.so

Now just restart Apache   sudo /etc/init.d/apache2 restart

Now, its time for the installation of joomla :)


First download the package of joomla from their own site for free. http://www.joomla.org/download.html


Now extract the files to some folder.  Now open your terminal and enter the following command.  sudo -R 777 /var/www


After doing this, browse to /var/www folder and create a new folder with the name joomla(You can give any name) and copy the extracted files to this folder.  Now open your browser and in address bar, type as http://localhost/joomla and then press enter.


Now select your language and click on next.  Now just click "Next" in 2nd and 3rd page too.  In 4th page, you need to enter the information. The information is as shown below. In the picture, you can see the database name as srikanth1. This is done by a entering the command mysql -u root -p in terminal and then enter you mysql password.  Now "mysql>" prompt will be shown.


Now enter mysql>create database srikanth1; and then press enter.  Press cntl+z or type mysql>exit. Now we have created a database with the name srikanth1. This name is given in the joomla installtion too.


In FTP configuration page, just click on "Next".


In the "Main Configuration" page, enter the details and in this page, you can see one option called "Install sample data". This installs the sample content to your site. Sample means an example like thing and if you install this, you will be able to understand how exactly the site is developed and if you do not want to install Sample data, then no problem, Just enter the information in the fields and click on "Next".


Now the last page names "Finish" says PLEASE REMEMBER TO COMPLETELY
REMOVE THE INSTALLATION DIRECTORY
.  To do this, go to /var/www/joomla and delete the folder named "Installation".


Now open the browser and type http://localhost/joomla/administrator and here type the username as "admin" and password which you provided in the "Finish" page :)


That's it :)  You are logged in to joomla and you are ready to explore yourself with joomla :) :)


Any problems regarding the installation can be posted in comment panel or you can mail me to srikanth.gundaz@gmail.com


Thanks you :) ;)