How to Install joomla in localhost

Just like drupal, joomla can also be used as a content management for web sites.

  • You must have mysql,php and apache installed in your machine.
  • Create a database in mysql for joomla
  • Download joomla.
  • Unzip the  file
    $ mkdir joomla
    $ mv joomla
    $ cd joomla
    $ unzip
  • Find out the root directory of your Apache. The value will be present in httpd.conf
     DocumentRoot "/usr/local/apache2/htdocs" 
  • Copy the joomla directory to the Document Root directory
    $ sudo cp -r joomla /usr/local/apache2/htdocs 
  • Now start apache
    $ sudo apachectl start 
  • Enter in your browser the following address “http://localhost/joomla”
  • If everything is fine, you will see a guided menu to install joomla in your machine.
  • Enter the database name, username and password for the database created.

In some cases, you may not be able to create a configuration.php file, then follow the following procedure

$ sudo vim joomla/configuration.php

Simply add the configuration details which you obtain in the last step of joomla installation. After removing the installation directory, you will be able to access joomla

sudo rm -rf joomla/installation

Enter “http://localhost/joomla” in your browser. And you can see that the joomla setup is ready

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s