How to install WordPress on Windows 10 (localhost)

What is WordPress

WordPress is a content management system focused on creating blogs (regularly updated websites). Developed in PHP and MySQL under the GNU General Public License that means it is free and open source and has modifiable code. WordPress was founded by Matt Mullenweg and Mike Little in 2003 which has now become the most popular CMS and blogging platform . The causes of its enormous growth are its ease of use and features as content manager and it being open source so any one can install, use, modify it according to requirements.

Another reason to consider about its success and expansion, is the huge community of developers and designers, who are in-charge of development in general or create plugins and solves issues for the community, as of August 2016 more than 26% of existing sites on Internet use WP.

In this tutorial we will install a CMS (content management system) WordPress on a local WAMP server on Windows 10 however all the steps will be same for other versions of Windows also.

STEP.1

The first thing to do to install WordPress on Windows 10  is to Download and install WAMP server

STEP.2

Now download the latest version of CMS WordPress. To do this you need go to their website which is http://wordpress.org . To download click on the download button you see in the picture below.

Download WordPress on Windows 10

After downloading we have a compressed file with the extension “.zip” of about 8.5 MB:

downloaded WordPress zip

On Extracting this zip within this files we have a folder named “wordpress” we’ll have to copy the folder to “WWW” folder/directory in our WAMP local server. The “WWW” folder is the equivalent of the folder “public_html” of a real server, so you have now copied the “wordpress”to the folder “www”  wamp

copy WordPress to WWW

path where the of “WWW” folder is shown in the red box. It is possible that in that that there are other folder files in www, but no matter because everything we do we will do it through the WordPress folder. The latter is not technically correct, but its explained in this so you can understand.

STEP.3

Locate WAMP Server

After that you will have to start our local server, to do that locate the wamp server icon in the task bar and click on it to open the menu and click “Start All Services” it will change wamp icon red to green.

Start WAMP server

STEP.4

After starting the All Services, click on the button ” phpMyAdmin … ” you will us MySql next to  create a database to keep the content we have on our website. Open ” phpMyAdmin.. (Note: if you click “phpMyAdmin …” nothing happens, you can also enter directly at: http: // localhost / phpmyadmin / ) that shown in the following image.

phpMyAdmin Settings for WordPress

Once you are on this page create a database giving it a name, for example in this case use the name ” test ” and press the button create to create database.

phpMyAdmin Settings for WordPress

This will send you to a page to create a table in the database, but here you need not do anything on your own since the “wordpress” is itself responsible for creating and populating the various tables that make up the database. Within that same page click on the tab privileges (red box) to create us a user and give permissions to manage the database:

phpMyAdmin Settings for WordPress

After pressing the tab privileges, click on the link “Add new user” in (blue box)

phpMyAdmin Settings for WordPress

After you click the link “Check All” next to global privileges to give user created all privileges to manage the database created.

phpMyAdmin Settings for WordPress

After that it prompts to create the user. This user must have a name, a password and give it a number of privileges. It is important to remember the username and password to subsequently configure the wordpress configuration file. In this case we have entered the following data:
Username: admin
Password: admin@123
After these steps we have already created the database to store all the information on content management system “wordpress”

STEP.5

Now you will move to set the changes in WordPress configuration file. To do this locate the file ” wp-config.php ”  or simply search for it in wordpress folder.
Now in this file you will have to define your database credentials which you set at the time of database creations. Enter database name, database user and database password which in this case are test, admin & admin@123

/** The name of the database for WordPress */
define ( 'DB_NAME' , 'test' );

/ ** Your username MySQL * / 
define ( 'DB_USER' , 'admin' ); 

/ ** Your password MySQL * / 
define ( 'DB_PASSWORD' , 'admin@123' ); 

/ ** MySQL Host (you probably do not need to change) * / 
define ( 'DB_HOST' , 'localhost' ); 

/ ** Character encoding for the database. * / 
Define ( 'DB_CHARSET' , 'utf8' ); 

/ ** Collation of the database. Do not modify if you have doubts. * / 
Define ( 'DB_COLLATE' , '' );

Only put these values, the rest of the things leave them as they are.

Then go to the following address “https://api.wordpress.org/secret-key/1.1/salt/ “to generate a number of secret keys. You can copy these from the browse and simply paste in “wp-config.php”

define('AUTH_KEY',         'IQz;,#FW-3Z-8[UDH;NJ:9En*BFLVk+r=pf(*Qpo#)aRsiSQT:)qlkz;1pb)G;k*');
define('SECURE_AUTH_KEY',  'OrD@W( nj-vj,Me6)ao<NE`(rLA+qmDC][&-Ws++8{( a4M8e)!Q*2|Q||GNjldL');
define('LOGGED_IN_KEY',    'OWlONB4(U]Yu<-kQP}6Y8S;?Wl9d7|*^<P&U<c|6tH$Y}P)ht?jv$8AQi:oH2X(t');
define('NONCE_KEY',        'K+5Dn2m.a^7Hz#B<MbAe^lGlvRdSo~c_!m{SE)Lfz+O!`Q.I$ev6kS[OkbX2&+eA');
define('AUTH_SALT',        '5+Xb%M<rtB@^j>>B1&D+HM>~!:*q_Idce|CYq|TiF|oLSBAe9J;f*N}?:_>CoE5Z');
define('SECURE_AUTH_SALT', 'fT<|jh~?6>--+gYpX|2,+Jub*q6Le>m)?|g1$o+&@_HO^w^1$ai5OuU>X0iS-h7%');
define('LOGGED_IN_SALT',   '%@+_s-ow+sO-ClrjN!ayFPXbTz|?DnY}1us?2#>_u9qn]%a<#h*lnbfSn5D.]t?W');
define('NONCE_SALT',       'Kqnrs g+|*&pBJd)F1y+>nI}C:xmvv4Q3|lAkU#+$l<|jdT!/#f+PXX+&0zB &)|');

STEP.6

After completing the above steps, open a browser and enter the following url ” http://localhost/wordpress/”. You will be greeted by this page (the picture below) to complete the installation of WordPress. On this page you will be asked a series of data (page title, username, password, etc). At this point you can enter the appropriate appropriate but it is very important that you remember the username and password because that will allow you to access the “Dashboard” of CMS to manage your web content. In this case the user name and password are not necessarily be the same as those of the database. Finally and very important if you to allow comments on the posts in your website, put the email where you want to see notifications of comments but that hardly matters on a local server which is generally used for testing and learning purpose”

 install wordpress windows 10

Once you have entered all the required information, press the Install WordPress button to continue the installation and you will seeing the Success! screen and now press Log in. Then be taken to a page like this in which you’ll have to enter the username and password to access the Dashboard of  WordPress.

 install wordpress windows 10

After entering your username and password you can finally access the Dashboard which looks like the image below.

 install wordpress windows 10

At this point you have your WordPress CMS installed on a local WAMP server (loclhost). From here you can work with this CMS and you can install themes, edit and create web pages that are supported by WordPress.

To access the admin panel of WordPress (Dashboard) , you should enter following url: “http://localhost/wordpress/wp-admin”  or you can bookmark it for quick use in future.

Hope you have learnt to install wordpress on windows from this tutorial. If you have any doubts or need any help with this stuff you can comment below or contact us. we can provide help and assist with any programming or development related tasks

If you want more tutorials like this with any other technologies then you can comment below your Ideas we will surely make more tutorials like this and keep following in Facebook or twitter for regular updates

Thanks and Have a great day :) !

1 thought on “How to install WordPress on Windows 10 (localhost)”

  1. Great article !

    How can I access it on the local network? If I use the machine ipo get told I do not have permission to access wp-login

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top