Install WordPress and XAMPP on localhost(PC/Windows)

I. What is XAMPP? How to install?

XAMPP stands for cross-platform, Apache, MySQL, PHP and Perl. It’s a simple and lightweight solution that allows you to create a local web server for testing, developing purposes.

WordPress isn’t a stand-alone application and requires server software in order to run. XAMPP provides the necessary environment needed to run WordPress on a local machine.

The goal of this guide is to show web designers how to install WordPress (4.5.1 or higher) locally on their computers for the purpose of designing and testing WordPress themes. Let’s get started

1. Installing XAMPP(web server on localhost)

Download XAMPP on Apache Friends website. Remmember choose appropriate version of the operating system of the computer you are using(32 bit, 64 bit, for win, mac)

Once downloaded, click file and launch the installer. The XAMPP setup wizard will guide you through the installation. Click Next.xampp-setup-01

We want to run WordPress in our localhost environment, so only need choose as image below, then click Next:xampp-setup-02
Have some window open, click “Next” until you see window below, it is done and successfully set up.


2. Setting Up MySQL Database, create database

To install and use WordPress, you need a database on your localhost(XAMPP).
On XAMPP Control Panel, click the Admin button in the MySQL.


A new browser window will open, do follow:
When you click Create button and close the window, have a database name “WordPressTest” already to use.

3. Install WordPress

3.1. Open link then download latest version WordPress there
3.2 Unzip WordPress in the right folder on XAMPP(in htdocs directory). For example: XAMPP server installed at path C:\XAMPP then you need put it to C:/XAMPP/htdocs.
wp-install-02My directory is “wordpress” like above

3.3 Find file wp-config-sample.php then change to wp-config.php on path: [your_name_directory]\wp-config.php then edit information below.

  • change “database_name_here” to “WordPressTest” (use for my demo, that is name of my database)
  • change “username_here” to “root”
  • change “password_here” to blank


3.4 Back to your browser, then go to http://localhost/wordpress/ and screen look like:


Once you’ve chosen your language, continue onto the next screen and enter you username and password details. Click Install WordPress button. Done.

Your WordPress installation is now complete!


If have any problem while applying my guides, let me know what you think and don’t hesitate ask me anything about it.
Thanks for your reading & watching.

I'm a developer from 2002, i can do .net, C#, Sql Server, php, mysql..etc and quite too much technology base on software computer. I moved to Wordpress and opensource 5 years ago, it is quite interesting but now i love it.