How to install WordPress on XAMPP

Categories WordPress

Install WordPress on XAMPP to run a local version of your WordPress site. In this tutorial I will explain you how to install WordPress on XAMPP. And furthermore, why you need an installation of WordPress on XAMPP.

What is XAMPP?

xampp control panel
Xampp control panel

WAMPP is a free Apache distribution that contains a web server, a database, PHP and Perl. So basically everything you need to run WordPress on your local PC. The picture below shows the XAMPP control panel. You only have to click on the Start buttons of Apache and MySQL and that´s it. Now you have a running server where you can run your WordPress installation.

Keep in mind, when you run your WordPress installation on XAMPP you can only reach your website via your own PC! So you might think, well when it´s only possible to reach my website from my PC, why should I use XAMPP?

The answer is easy. XAMPP is the perfect environment to develop your website and try out new things without messing up your original version!

Install XAMPP

Installing XAMPP is easy. You have to download XAMPP from the   and install it on your device. When you installed it properly you can open the control panel by clicking on the file xampp-control.exe (on Windows). You find this file in the root folder of your XAMPP directory. The next thing is to start the Apache Webserver and the MySQL database by clicking on the Start buttons. After that you can type localhost into your browser and the XAMPP starting paging shows up.

Install WordPress on XAMPP

The installation of WordPress is a simple as the installation of XAMPP. I suppose you already downloaded the WordPress .zip file from the  . Unpack this .zip file to this directory: xampp\htdocs

Now you need a database. To establish a database on XAMPP you have to go back to its starting page (localhost). On the left sidebar click on phpMyAdmin to get to the database dashboard.

XAMPP and WAMP
Click on phpMyAdmin to create a database

And that´s it. Now you have a database for your WordPress installation.

The next thing you have to do is to customize your wp-config.php file.

customize the wp-config file to connect WordPress with the database
customize the wp-config file to connect WordPress with the database

Therefore go to line 23 and write the name you gave your database in the second quotes. If you have not changed anything, your username is root and you password is empty. That´s OK since your website is only reachable from your own PC.  On line 32 write localhost in the second quotes. That´s it!

You can now start with the normal WordPress installation. Therefore you have to type the address of your installation in your browser. To make this a bit clearer I illustrate it with an example. Supposing you installed WordPress under the following path:

C:\xampp\htdocs\wordpress

Your website is available under this address:

localhost/wordpress/

If everything works fine you should now see the WordPress installation screen.

 

 

How to install WordPress on XAMPP
Rate this post

Leave a Reply

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