Blog

Installing WordPress on Local Computer (localhost) for PC

Installing WordPress on Local Computer (localhost) for PC

What if you found out you could save time, work more efficiently, and catch bugs on your site faster by installing WordPress on a local PC or a local server (localhost).

Enter in the installation of WordPress on a localhost! When you install WordPress on a local server, you're able to be the only person who can see that site. As you can imagine, it is highly beneficial to view your content before publishing it live to your audience. You can catch bugs and fix errors before they even hit the internet! Or you can use it to play with WordPress, test plugins, themes and WordPress updates before you apply them live to your site. You can also use it as a backup copy of your site to keep your precious content protected. Not to mention the upkeep of your site can be done faster as there is no downtime needed to upload files.

WordPress can be installed locally with a server application called WAMP. Installing WAMP and WordPress on a PC isnt difficult especially with our handy tutorial.

Follow our step-by-step tutorial to install WAMP on your own local version of WordPress (for PC):

  • You need to download and install the current version of WAMP. There will be 2 versions of WAMP: a 32 bit and 64 bit, so select the version that applies to your computer. (If you are unsure what version you have, go ahead and select the 32 bit version as that will work on a 64 bit machine also.) The installation will proceed like any other application installer and may take up to 5 minutes to complete. Also please keep in mind what file location you used for the installation as we will be going there later.
    WAMP Installer
  • At the end of the installation, you will be prompted to use Internet Explorer as the default browser. You can select another by going through the file system and selecting the browser application you like best. (Chrome or Firefox are some great options.) You can also choose a text editor, however Notepad is the default and should be fine for most users.
  • Once, the installation is complete, go to your taskbar on the lower right hand corner and left click the WAMP icon. Select phpMyAdmin and the phpMyAdmin login screen will open in a new window of the default browser of your choice. By default, the username should be 'root' and the password field will be left blank.
  • PHP Admin Login
  • After logging into phpMyAdmin panel, go to Databases as we need to create a new database for WordPress to use. Let us call it 'WP_Database' (use _ instead of a space here) then click the Create button.
  • Database name
  • We are done with WAMP for now.

Installing WordPress:

Next, we have to install WordPress onto the server.

  • Download the current version of WordPress using the link provided then extract the zip file.
  • Once the files are extracted, we need to copy them into the WAMP installation folder (by default it would be in C:\wamp64 but you may have it in a different location).
  • Now, we can copy and paste the WordPress folder into the file location C:\wamp64\www. The WordPress folder can be renamed but keep in mind that this will be the name of the site so try to remember it or write it down.
  • WWW folder location
  • At this point, we can setup WordPress by opening a browser window and going to http://localhost/wordpress/.
  • Setup page
  • During the setup you will have to enter in your database information, you may have changed this but the username should be root", the password field left blank, leave everything else then click submit.
  • WordPress database information
  • A new page will appear so click Run The Installation.
  • The WordPress welcome page will appear and you can enter in your sitename, username and password. Please write these down somewhere for safe keeping then click Install WordPress. WAMP and WordPress are now successfully installed onto your local PC.
Welcome image

Installing the Theme:

Now, we can move onto the theme installation.

  • For this example we have used the Ultra theme but we also have free themes that you can download and install. If you're interested in our go-to Ultra theme, you can download the theme from the member area once you have purchased it.
  • From the WordPress admin Panel go to Appearance > Theme > Add New then click on Upload.
  • Upload image
  • The file explorer window will open and you can select the theme.zip file to upload.
  • Once the theme is uploaded go to Appearance > Themes and activate the Ultra theme.

Next Tutorial

Now that you've completed your localhost site, what’s next? Read our next tutorial on "How To Migrate A WordPress Website From Localhost To Live Server". We hope you enjoyed this basic tutorial and are working hard to bring you more of these foundational tools!

11 Comments

  1. Edmund Verwey
    Aug 06, 2018 @ 14:05

    Hi, I like the idea 50%.
    What if your computer crashes? Then you lose WAMP AND your hard work?
    Won’t it just be safer to setup WordPress on a server with a sample domain and then after designing the site export with a plugin, I’m sure there are such plugins out there?

    Reply

    • DivTiw
      Jun 07, 2020 @ 08:46

      It is for people who dont have any hosting or domain and are newbie and plan to make a site first time

      Reply

  2. Erik Klok
    Aug 07, 2018 @ 01:55

    Great!
    Thanks!

    Reply

  3. Gary
    Aug 07, 2018 @ 19:06

    Tried to upload ultra theme and got the following error message:

    The uploaded file exceeds the upload_max_filesize directive in php.ini.

    Have edited the php.ini and changed max filesize to 5000m – still same error. Tried to upload FLAT theme which I believe should be small – same error message. Would appreciate help.

    Reply

    • Nick @ Themify
      Aug 08, 2018 @ 23:59

      If you still having problems with upload_max_filesize, extra themify-ultra.zip file (so you would get a folder ‘themify-ultra’), then paste that folder to your “local WP folder > wp-content > themes” folder. Then you will see the Ultra theme available in WP-admin > Appearance.

      Reply

  4. Ruth Elliott-Hilsdon
    Aug 08, 2018 @ 00:20

    WIll this work for Mac computers, too?
    Thx!

    Reply

    • Nick @ Themify
      Aug 08, 2018 @ 23:56

      This is for PC. For Mac, you would use MAMP which is similar concept (just different software and interface).

      Reply

  5. Deborah
    Aug 08, 2018 @ 15:41

    Let’s pretend we’ve made some changes to a page and want to implement them on the live site. What’s the best way to do that?

    Also, can we build a wordpress page using WAMP and then show it to someone via the browser without having a live wordpress website?

    Reply

  6. Stefan Chaproniere
    Aug 09, 2018 @ 18:23

    Left-Click the Wampserver in the bottom left tray icon -> chose PHP -> and then PHP settings ->change upload_max_filesize -> to the Value you want.

    Reply

  7. Solomin
    Sep 25, 2019 @ 14:31

    I installed themify ultra on local host, when I clicked on the activate bottom, it gave a blank page. What can I do?

    Reply

    • Nick @ Themify
      Sep 30, 2019 @ 19:08

      Since your site is on localhost, we can’t debug it from our end. Could you publish the site/theme on a http server so we can check it?

      Reply

Reply