How to install WordPress on localhost using WAMP

WordPress is an online, open source website creation tool written in PHP. But for non geek , it’s probably the easiest and most powerful blogging and website content management system (or CMS). You can install it on your computer for testing and learning. For that you need the following things.

  1. Install a local server (For Mac: MAMP, For PC: XAMPP or WAMP).
  2. Download WordPress CMS.


All of them are local server, is a compilation of Apache web server, PHP and MySQL bundled for Windows computers. You need WAMP to setup your own local server environment and install WordPress on Windows. There are other clients too, but we use and recommend WAMP.

Setting up the localhost

Install local server: First install WAMP on your computer. Run the program and an icon appear on you system tray. Wait for that icon to turn green. After that open browser (chrome, firefox ….. etc) and type “ocalhost” without quotation to check you local server is working or not.  

Setting up Database: Now we have to setup MYSQL database that WordPress can use. You can do that very easily just type “localhost/phpmyadmin” in your browse. The phpadmin login screen open by default as:


By default, the Username will be root, and you can leave the password field blank. Once logged in, click on Databases to create a new database for WordPress.



Installing WordPress

The next step is to install WordPress. You will need to download WordPress from Download and extract the zip file and copy the wordpress folder. After that, you need to navigate to the folder where you installed WAMP on your system. We installed it in “C:\wamp64”. Paste the wordpress folder into the “C:\wamp64\www” folder. You can rename the folder anything you want. We rename it demo. Now open your browser and navigate to “localhost/demo”. The WordPress setup will start automatically as shown.


Now, you’ll need to provide your database information. The database name will be the one that you entered in the last step. Your default database username will be root and you can leave the password blank. Next, click on the submit button and WordPress will create a configuration file for you. If all of this is successfully done you can see the following page

On the next screen, you can fill out the installation form. You need to provide a title for your website, choose an admin username / password, and provide admin email address. Once you’re ready, press the Install WordPress button.


After installation you can access your admin panel as “localhost/demo/wp-admin”. Congratulations, you have successfully installed WordPress on your computer.

Like us !