Open the contents index
This guide was updated on
If you want install WordPress locally on Windows using WAMP, this is the guide for you.
Do you use Mac? Then I recommend you read the guide on how to install WordPress locally on computers with Apple operating system.
In the following paragraphs you will find all the steps to follow to install the CMS on your PC, so you can create your site and do all the tests you want, even without having a hosting plan (which, however, will be necessary to make your site visible on the Web).
Let’s start with WampServer, the tool we will use for install WordPress locally on Windows.
Install WordPress locally on Windows with WampServer
WampServer is the software used to create web applications with:
- Windows (W)
- Apache2 (A)
- MySQL (M)
- and PHP (P)
… everything you need for WordPress!
The first thing you need to do is install this software.
Installation of Wamp
Navigate on Official site and click Download.
Here you have two options: WampServer 64 BITS or WampServer 32 BITS. Select the version compatible with your PC.
If you are not sure which version your PC needs, press the Windows + Pause keys on your keyboard. You will open the window containing information on your operating system and, in the section System, to the voice System type it indicates whether your PC is 32 or 64 bit.
When you choose the version to download, a popup will appear. To start the download immediately, click the yellow link “Download directly“. This will take you to the SourceForge site from which the WampServer installation file will be automatically downloaded.
Once the download is complete, open the file to start the installation. Go ahead in the procedure without changing anything, until you are asked which browser and which text editor you want to use for Wamp.
These settings will not actually affect your use of the WordPress site that you will install locally, so you can choose the browser and editor you prefer. They will only be used if you access Wamp’s functions from its control panel.
At the end of the installation, the WampServer icon should appear on the desktop (if you do not find it, search in the programs). Click on it to start it.
Now the Wamp icon also appears in the System Tray (near the clock).
Change Wamp’s language
To make the process of installing WordPress locally on Windows easier, I suggest you change the language of WAMP from English to Italian: right-click on the Wamp icon.
Then select Language> Italian. The language will be updated automatically.
Create the database to install WordPress locally on Windows
Click the WAMP icon and select phpMyAdmin. A browser window will open (the same browser you chose during the installation) with the phpMyAdmin control panel.
To log in, you will be asked for your username and password. Simply type root in the user field and leave the password blank. You will log in with administrator permissions.
Here, in the head menu click Database. Just below the page title Database, find a section called Create a new database.
In the text field type the name you want to give to your database and click “Create“. It is not necessary to make any changes in the following drop-down menu, which concerns the character encoding. The default is latin1_swedish_ci, which includes the most used European characters.
You can give your database the name you want. By convention, only lowercase letters and the underscore _ between words are used. Avoid using special characters (., /, And others are not allowed).
The new database will be added to the list of existing ones, visible a little further down on the same page (usually there are four already present by default).
Take note of the name of the database you just created, we will need it shortly.
Upload WordPress files locally with WAMP
For install WordPress locally on Windows it is necessary to upload the files that make up the so-called “Core” of the CMS platform.
First, you need to download them from the official WordPress site. Navigate on This Page (if you want to install WordPress in Italian) and click Download WordPress 5.x.x. The download of a .zip folder will start. Once this is done, extract the folder, which will have the name WordPress.
Then, navigate inside the c: wamp www folder on your PC. (open any folder and click the down arrow in the top navigation bar. Delete the existing position and type c: wamp www. You will automatically navigate to the right folder).
Move the folder called “WordPress” that you downloaded and extracted previously inside this folder. Then rename the folder with any name (I recommend you use the name you want to give to your site).
I simply called her blog.
Once this is done, we are ready to start setting up WordPress.
Configure the installation of WordPress locally on Windows
Open your browser and in the navigation bar type http: / localhost / blog (or the name you gave to your folder).
At this point, you will see a page where you are warned that your site’s wp-config.php file has not been configured.
To start the configuration process, click Let’s begin!
The following steps are very simple:
- In the field Database name, type in the name of the database you created earlier (in my case, I enter mio_nuovo_db. If you don’t remember the name of the database, you can recover it by opening from phpMyAdmin from Wamp, then clicking Database up).
- In the field Username, type
- In the field Password, delete the existing placeholder text and leave it blank.
- Database host will have to stay localhost.
- Finally, in the field Table prefix you can leave the prefix already entered.
After completing these fields, click Submit. Then on the next screen click Run installation.
At this point, you will be asked to choose a username and password to access WordPress, and to type in your email address.
Once this is done, you will have completed all the steps to install WordPress locally on Windows.
“Are we done already?”
At any time, you can access the site from a browser of your choice by typing https: // localhost / nomedeltuosito / wp-admin (you need to replace nomedeltuosito with the name you gave to the folder containing the WordPress core files).
To view the site, just type https: // localhost / nomedeltuosito
Install themes and plugins on a site locally with WAMP
The easiest way is the “classic” one, that is, from the section Plugins> Add new or Appearance> Themes of your Wall.
Alternatively, download from the WordPress repository or from any other source you choose to use the .zip folder of the theme / plugin and extract it.
On your PC, navigate within c: wamp www nomedeltuosito, as you did previously.
Then, enter the folder wp-content.
To install a theme, go to themes and move inside this folder the one you just downloaded and extracted (here you will see a folder for each theme already installed on your site).
To install a plugin, do the same thing within wp-content > plugins.
Now refresh your site on the browser and you will see that your new theme or plugin has been added.
We have come to the end of this guide on how install WordPress locally on Windows with Wamp.
Were you able to follow all the steps or were there points where you had difficulties?
Do you have any doubts or questions?
Do not hesitate to leave a comment below the post!