How to Install WordPress on a Local Server (XAMPP)

In this article we’ll show you how to install WordPress on your local computer. Why is it useful to have WordPress on your local computer? Well, maybe you’ve a website, and you want to change something on the website’s theme, but you don’t want to risk that if you mass up something, your website will go down, and you’ll lose a lost of visitors or you might want to create your own theme and with a WordPress on your local server make is much easier.

InstallI WordPress on Local Server

How to Install WordPress on a Local Server

To be able to install WordPress on your local server, first you need to have one. There are many server software like XAMPP, WAMPP or many others. We prefer XAMPP because it’s easy to install, to control and to manage your websites with it.

How to Install XAMPP

  1. First of all you need to Download XAMPP. When downloading it, make sure you choose the right version (We prefer to install it with the installer, not with the ZIP version).
  2. After you downloaded it, run the installer, make sure to check MySQL and Apache these two are the most important things you must have to install WordPress on your Local Server (You can install FileZilla as well but we’re sure you have it already).
  3. After the installation is done, reboot your computer. It is important to reboot it, or otherwise the Apache will not work properly.
  4. After you restarted your computer, open up the XAMPP Control Panel and click on Admin in your the second row. Where it says MySQL. That will open up your MySQL database, and you’ll be able to create/edit/delete databases and users.

How to Install WordPress

  1. Create a new Database and call it what ever you’d like to. This will be your WordPress’s Database.
  2. Go to http://www.wordpress.org and download the latest Version of WordPress. Go where you installed XAMPP, default is C:/XAMPP and go to htdocs and extract the zip there. (C:/Xampp/htdocs)
  3. Open up your internet browser and type in Localhost or http://localhost it should open up your WordPress Installation.
  4. Press “Let’s Go” then enter the details:
    • Databse name: (The database you created earlier)
    • Username: (Your MySQL databse username default: root)
    • Password: (Your MySQL password, leave it empty)
    • Host: Localhost
    • Table Prefix: (You can leave it WP_ or leave it empty.)
  5. Press next, create your admin account.
  6. Login. You are done.

SEE ALSO: WordPress Tips for Making an Awesome Blog.

Security Settings

If you leave everything default you risk your computers safety. What can you do about this? You can add a password to every default user in your MySQL center. To do this, go to http://localhost/phpmyadmin in the top menu search for “users” then select one user, and click edit Edit Privileges scroll down until you see password. Add your password of choice there and then press GO. Do this for each user.

Be sure to go to c:/XAMPP/htdocs, and search for wp-config. Open it up with any text editor, and search for:

/** MySQL database username */
define(‘DB_USER’, ‘root’);

/** MySQL database password */
define(‘DB_PASSWORD’, ‘ pass here ‘);

And change the username and password to the new ones and you are done. If you’re facing any problems let us know in form of comments below.


About Andor Nagy

Andor Nagy is a 17 years old student, who is interested in modern technology, mostly web development and web design.

Andor has written 4 awesome articles for us at TechLila.


Comments

  1. Yeah ! I was using Microsoft Web Platform to run WordPress offline on my system but I found XAMPP much more comfortable and fast to use.
    I should give it a try.
    Saurabh recently posted – Top 10 Best Free & Light Tools To Mount ISO Images To Virtual DrivesMy Profile

    • Andor Nagy says:

      I’ve tried MWP as well, but I couldn’t get it to work. I’ve been using XAMPP for more then 2 years. If you have any questions, send me a PM on Facebook or and e-mail.

      Regards,
      Andor Nagy

  2. Hey dude,

    It is very informative post as everyone need to know better about WordPress and localhost is the only way to make, customize and get familiar with your WordPress blog.

    I learnt many things regarding WordPress on Localhost. I must recommend to every newbies to first try WordPress on localhost and XAMPP suits well.

    Thanks for sharing such a wonderful post. :)

    Keep it up :)
    Mohd Aktar recently posted – Newstube Premium WordPress Theme DownloadMy Profile

  3. Hey Andor thanks for the step by step process of installing WordPress and also for letting us know about the security settings.

    Ram
    Ram Shengale recently posted – [INFOGRAPHICS] Important Google Search Engine Algorithm Updates in 2012My Profile

  4. Nice post …… !
    Thanx bro.. You have solved my problem related to the How to Install WordPress on a Local Server (XAMPP).
    This post is realy informative.I have got much more information through this post.
    thanx..
    Pramod recently posted – File Expert is definitely an ultimate app for managing your files on your mobiles, tablets, laptops .My Profile

  5. Hey Andor, this is significant information. I can easy to understand about wordpress installation process.

    Thanks for sharing!

  6. This is just exactly the information I need. I am not too familiar yet with wordpress. I am still gathering more information about this.
    Sarah Park recently posted – How to Decide Which Charities to HelpMy Profile

  7. I have successfully installed XAMPP but can’t open .php files inside it. Please help me..
    Malik recently posted – How To Solve HTML Improvement Error In Google WebmasterMy Profile

    • Andor Nagy says:

      If you don’t have any special coding text editor, try right clicking and open with for ex: note pad. If it still doesn’t works, download notepad++ free text editor for coders.

      Regards,
      Andor Nagy

  8. This is a great way to replicate your blog locally, although in my experience, some plugins/scripts that work ok in XAMPP may not work fully on webhosts.

    Nevertheless, it’s a good way to perform testing before you implement changes to your live blog.

    • I agree some plugins/scripts work well on XAMPP and not on live site because of plugin conflicts and other server configuration. But it’s really helpful to install WordPress on local server and test plugins or theme modifications.

Comment Policy:

Your words are your own, so be nice and helpful if you can. Please, only use your REAL NAME, not your business name or keywords. Using business name or keywords instead of your real name will lead to the comment being deleted. Anonymous commenting is not allowed either. Limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please. You can wrap code in [lang-name][/lang-name] tags.


Tell us what you're thinking...

If you want a picture to show with your comment, then get Gravatar!

CommentLuv badge
This blog uses premium CommentLuv which allows you to put your keywords with your name if you have had 5 approved comments. Use your Real Name and then @ your keywords (maximum of 3)