Install WordPress locally – explained step by step

If you just want to try WordPress, you can install WordPress locally on your computer. The big advantage is that no internet connection is required as the web server is installed on the computer itself. So you can test themes, plugins and CSS adjustments in peace, or simply get to know the content management system WordPress. WordPress is also completely free and can be installed on your computer in just a few minutes.

A web server is required to install WordPress on your home computer. In this example I have XAMPP chosen because it is a free and clear program. The web server requirements are only PHP and MySQL, which most servers can handle.

1. Download and install the XAMPP program

First the program XAMPP has to be loaded. I would do that directly on the manufacturer’s website. It is available there for Windows, Linux and OS X and is guaranteed virus-free. Unfortunately, XAMPP is only available in a 32-bit version for Windows, but which one runs without problems under 64-bit. I will show you how to install XAMPP in this article.

2. Download from WordPress

Now the WordPress software needs to be loaded from the site. The current version is always available there. Here is the direct link:

The loaded file must then be in the folder C:XAMPPhtdocs be unpacked. This is the XAMPP folder that represents our virtual internet. Our WordPress page is then called up later by entering http://localhost or in the web browser.

3. Set up MySQL and create a database for WordPress

Assign password

Before you can install WordPress, you need a MySQL database. But this is very easy to set up. Go to the following link:


Now the phpMyAdmin interface opens, where the local server can be configured.

Now you click on the User Accounts tab and you now need to change the password of all three root users. To do this, click on “change rights‘ and in the next window click ‘Change Password“. You must use the same password for all root users.

After you have done that, you must now enter your newly chosen password in the following file:

Attention: You absolutely have to follow this order. If you first change the password in the file below, phpMyAdmin will lock you out

To do this, open the file with the editor and enter the password in the following line:

$cfg[‚Servers‘][$i][‚password‘] = ‘your password‘;

By assigning a password, the server is protected against unauthorized access.

Create database

Now you have to go back to the phpMyAdmin web interface (http://localhost/phpmyadmin) and there in the left menu on “Newclick. I called it “wp_database” on mine. Now the database for our test WordPress installation is created.

4. Install WordPress locally

Now you have to put the WordPress package downloaded under point 2 into the folder C:XAMPPhtdocs be unpacked. If you have already done this directly at point 2, you can go straight to installing WordPress.

To install WordPress locally, you now need to http://localhost or type in the web browser. Now click on the button “Here we go” to enter the following data in the next window:

  • database name
  • User name
  • password
  • database host
  • table prefix

If you have entered all the data correctly, a new window will appear and the actual installation of WordPress will start with the button “Perform installation”.

Now all you have to do is choose a page title, a username and a password. You confirm the process by clicking the “Install WordPress” button.

Now you can log in and go directly to the WordPress dashboard

Previous post PhotoBlog Theme for WordPress
Next post WordPress: Fix for Download failed