Joomla Tutorials

How to Install Joomla Locally on a P.C.

February 22, 2010 | Written by Rod Martin

Following on from other newsletters where we showed you how to set up Joomla on a Mac and also how to develop locally and moving your site to a live server, this week we're going to walk you through installing Joomla locally, on a P.C..

We're going to use WAMP for this tutorial.

WAMP stands for "Windows, Apache, MySQL, PHP" which are the different elements that allow you to run Joomla on your computer.

Here's how you do it:

Step 1: Install WAMP

  1. WAMP ServerDownload WAMP to your computer.
  2. Run through the WAMP installation process.
  3. In your taskbar, down the by the date in the bottom-right hand corner of your screen, look for the WAMP icon. Click on that icon.
  4. You should see a popup. Click "Start All Services" and then click "Localhost."
  5. Hopefully you'll see a white screen with the Wampserver logo in the top-left corner.

Step 2: Download Joomla

  1. Joomla DownloadGo to Joomla.org and click on the black button saying "Download Joomla. Get the Latest Version". Find the line saying ".... Full Package" and click on the "ZIP" text.
  2. The file you download should have a long name such as Joomla_1.5.15-Stable-Full_Package.zip

Step 3: Move Joomla to WAMP

  1. Click on the WAMP icon in your taskbar again and now click "www directory". This will take you to the folder where WAMP stores its websites.
  2. Move your Joomla folder from Step 2 into this directory.
  3. Extract the Joomla folder.
  4. It will be confusing to keep accessing the website through a folder called /Joomla_1.5.15-Stable-Full_Package/ so rename the folder to something simple such as /joomlatest/

Step 4: Set up our database

  1. Click on the WAMP icon in your taskbar again and now click "phpMyAdmin". This will take you to the software where Joomla's databases are managed.
  2. Find the field labelled "Create new database" and enter "joomlatest". Click "Create".
  3. Hopefully you'll see the name "joomlatest" appear in the left column.

Step 5: Install Joomla

  1. In your browser, visit this address: http://localhost/joomlatest
  2. You'll see the the normal Joomla installation screen. Click through screen 1, 2 and 3.
  3. On screen 4, these will be your settings:
    • Host Name: Localhost
    • Username: root
    • Password: [leave this blank]
    • Database: joomlatest
  4. On screen 5, enter your site name plus a username, email and password.

6: Delete/rename installation directory

  1. Hopefully you still have your Joomla folder open. If not, click on the WAMP icon in your taskbar again and then on "www directory".
  2. Rename the installation folder to something such as /installation-back/
  3. Click "Site" on the final installation screen or visit http://localhost/joomlatest.

You should now have a shiny new installation of Joomla on your P.C. where you can develop your website securely in your local environment.

Video Showing How to Install Joomla Locally on a P.C.


 

Comments 

 
# joomlag 2010-11-19 09:44
Great steps, thanks a lot
Reply | Reply with quote | Quote
 
 
# kolonel 2010-12-07 01:31
So refreshing to get an easy and concise description for something like this. Thanks guys.
Reply | Reply with quote | Quote
 
 
# Asif Musavvir 2010-12-26 16:28
I installed Joomla on my local computer. I have no problem until step 4. I created a database, then went to localhost/joomlatest, and on screen 4, I input the data base info. When I click next to go to screen 5, it gives me a error message "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM CHARACTER SET `utf8`' at line 29 SQL=CREATE TABLE `jos_banner` ( `bid` int(11) NOT NULL auto_increment, `cid` int(11) NOT NULL default '0', `type` varchar(30) NOT NULL default 'banner', `name` varchar(255) NOT NULL default '', `alias` varchar(255) NOT NULL default '', `imptotal` int(11) NOT NULL default '0', `impmade` int(11) NOT NULL default '0', `clicks` int(11) NOT NULL default '0' , ......" PLEASE HELP.
Reply | Reply with quote | Quote
 
 
# steve 2010-12-27 07:35
Hi Asif

Any chance that you already have a copy of Joomla on this localhost, or that you created the database entries more than once?

Either way, on Step 4, try using something else except _jos in the Advanced options area of the installation.
Reply | Reply with quote | Quote
 
 
# Kim Davis 2011-01-27 06:00
I have exactly the same problem. It seems related to mysql5.5 being incompatible with Joomla. I am using the latest version of the xampp which includes the latest version of mysql5.5 obviously.

Here is the topic on the Joomla forum
http://forum.joomla.org/viewtopic.php?f=199&t=513155
Reply | Reply with quote | Quote
 
 
# iowawebco 2011-02-01 00:29
Hi Kim,

Sorry for the delay in responding. It's difficult for us to do any tracking and support in the comments and the forum is the ideal place for support requests. If you post this in our Joomla forum, we can answer it there within 24 hours.

Kind regards,
Nick
Reply | Reply with quote | Quote
 
 
# Dennis Eagle 2011-03-05 14:25
The solution that worked for me. Navigate to
C:\wamp\www\joo mlatest\install ation\sql\mysql
With a text editor, edit joomla.sql
Replace all "TYPE=MyISAM" with ""
(don't include the quotes)
Save it.
In your browser go to
http://localhost/joomlatest
and start again. This time it should work.
Reply | Reply with quote | Quote
 
 
# Albert 2011-06-21 03:14
Thanks a million!
Reply | Reply with quote | Quote
 
 
# pradeep tambade 2011-01-07 09:20
hi,
i have problem in installtion of joomla.
it shows the message like

Cookies do not appear to be enabled on your browser client. You will not be able to install the application with this feature disabled. Alternatively, there could also be a problem with the server's session.save_path. If this is the case, please consult your hosting provider if you don't know how to check or fix this yourself.
Reply | Reply with quote | Quote
 
 
# iowawebco 2011-02-01 00:28
Hi Pradeep,

Sorry for the delay in responding. It's difficult for us to do any tracking and support in the comments and the forum is the ideal place for support requests. If you post this in our Joomla forum, we can answer it there within 24 hours.

Kind regards,
Nick
Reply | Reply with quote | Quote
 
 
# Evan 2011-02-11 13:22
Perfect, just what I needed. Thank you for this, very helpful.
Reply | Reply with quote | Quote
 
 
# iowawebco 2011-09-18 01:05
You're very welcome, Evan! :)

Kind regards,
Nick
Reply | Reply with quote | Quote
 
 
# zaman_bangladesh 2011-06-12 13:08
At last with your article "How to Install Joomla Locally on a P.C." i installed joomla on my P.C. Thanks a lot.

Zaman
Reply | Reply with quote | Quote
 
 
# iowawebco 2011-09-18 01:06
You're very welcome, Zaman! We're glad we could help :)

Kind regards,
Nick
Reply | Reply with quote | Quote
 
 
# jb 2011-09-17 08:07
Great article! Thanks a lot!
Reply | Reply with quote | Quote
 
 
# iowawebco 2011-09-18 01:06
You're very welcome, jb! :)

Kind regards,
Nick
Reply | Reply with quote | Quote
 
 
# anon 2011-09-28 11:25
Strict Standards: Accessing static property JCache::$_handl er as non static in C:\xampp\htdocs \joomlatest\lib raries\joomla\c ache\cache.php


what to do :).
Reply | Reply with quote | Quote
 
 
# iowawebco 2011-09-29 01:20
Hi and welcome, Anon!

Sorry for the inconvenience, but if you're a student at OSTraining, could you copy and paste this into the support forum so one of our support techs can look into it for you? All you have to do is log in at www.ostraining.com and click on Support Forum in the main menu.

Please see the support FAQ for more information:
http://www.ostraining.com/support-faq/

Kind regards,
Nick
Reply | Reply with quote | Quote
 
 
# Ardiano1 2011-09-30 13:43
Strict Standards: Accessing static property JCache::$_handl er as non static in C:\xampp\htdocs \joomlatest\lib raries\joomla\c ache\cache.php on line 420

Strict Standards: Accessing static property JCache::$_handl er as non static in C:\xampp\htdocs \joomlatest\lib raries\joomla\c ache\cache.php on line 422




how to fix it :D
Reply | Reply with quote | Quote
 
 
# iowawebco 2012-01-24 21:11
Hi Ardiano,

Go to your php.ini of xampp and change error reporting to E_ALL & ~E_NOTICE and display errors to Off. Here is how they should look once you're done:

Quote:
error_reporting = E_ALL & ~E_NOTICE

display_errors = Off


Kind regards,
Nick
Reply | Reply with quote | Quote
 
 
# irene 2012-01-24 18:03
hi,
after a "successful installation" (after fixing the "Type" problem)i can neither see the demo site nor admin page I just get a full bunch of mistakes like:
Strict Standards: Non-static method JLoader::import () should not be called statically in C:\xampp\htdocs \site\libraries \joomla\import.php on line 29


What can I do?Can you please help me?
Reply | Reply with quote | Quote
 
 
# iowawebco 2012-01-24 21:11
Hi Irene,

Go to your php.ini of xampp and change error reporting to E_ALL & ~E_NOTICE and display errors to Off. Here is how they should look once you're done:

Quote:
error_reporting = E_ALL & ~E_NOTICE

display_errors = Off


Kind regards,
Nick
Reply | Reply with quote | Quote
 

Add comment