Useful Tips

Install WordPress on a local computer using XAMPP


Today, the material will be dedicated to the most popular blogging platform - Wordpress, we will step by step look at installing WordPress on the XAMPP web server, and also you will find out where to download the Russian version of this system.

First, I would like to talk a little bit about WordPress in general, so that those who are just starting out with WordPress have an idea of ​​what it is.

What is WordPress?

WordPress is a free content management system (CMS). It is the most popular blogging platform, so many who think about their own blog consider WordPress primarily. However, using WordPress you can create news resources, and even online stores, but the main purpose of WordPress, of course, is to create blogs.

WordPress is a very convenient and functional CMS, working with it is actually quite simple. However, it is not recommended to start working with this system right away on the hosting, and probably no one does, everyone first installs WordPress on a local computer, tries it, learns it, designs its future website, and then transfers it to the existing hosting.

Therefore, now we are going to consider the process of installing WordPress on a local web server. For example, I will use the XAMPP assembly as a web server. You can see what kind of server it is and how to install it on a computer. See the article - Overview and Installing Web XAMPP server on Windows 7. You can also use WampServer as an alternative to XAMPP.

If for any reason WordPress doesn’t suit you, I recommend that you also get acquainted with the free Joomla content management system, how to install it on the same XAMPP, I told in the article - Installing Joomla! to the XAMPP web server.

Where to download the Russian version of WordPress?

You can download the current version of WordPress in Russian from the official Russian-language website from the download page -

After going to the site you just need to click on the button "Download WordPress". You can also always download the latest version of WordPress by direct link - here it is.

As a result, you will download the installation package approximately 9.4 megabytes in size (at the time of writing, the current version of WordPress 4.9.5).

Step 1 - Unpacking the archive and copying WordPress files

First you need to create a folder in which the files of our site on WordPress will be located. It must be created in the directory in which the XAMPP assembly is installed, if you did not change the default folder during the installation of the web server, then this C: xampp htdocs, in this directory you need to create a folder, the name of which will be the address of the site, for example, I called SiteOnWordPress.

Then, the downloaded installation package must be unpacked into this directory (all files from the wordpress archive folder), i.e. in C: xampp htdocs SiteOnWordPress.

As a result, in this directory you should have approximately the following files.

Step 2 - Creating a Database for WordPress

Also, before proceeding directly to the WordPress installation process, you must create a database in which the site data will be stored. The MySQL database is included in the XAMPP assembly, as well as phpMyAdmin, a tool for working with it.

To create the database, run phpMyAdmin, for this we type in the address bar of the browser http: // localhost / phpmyadmin / (to enter, use the username and password from the database server, by default root without a password).

After phpMyAdmin starts up, click "Create DB", Enter the name of the database, for example, I called db_wp_test, and click"Create».

As a result, the database will be created.

Note!On an existing hosting on the Internet, you will most likely have to create a database from the hosting control panel (ISPmanager, cPanel, etc.).

Step 3 - Launch WordPress Installation

In order to start the installation of WordPress, you need to type http: // localhost / SiteOnWordPress in the address bar of the browser, where SiteOnWordPress is the name of the directory in which we have all the WordPress files (see step 1).

We are welcomed by the installation script, read all the information provided and click "Forward».

Fast file transfer

Remote work with a site located on your provider's server requires constant downloading of files, plugins and templates, which requires a lot of time and creates a number of inconveniences.

By installing WordPress on your local computer, you will speed up not only the process of copying files, but also the speed of loading pages on your site.

Edit the site offline and upload the changes to the provider's server

Most developers have at least one local WordPress site. However, for beginners working in site building, the prospect of copying a site to a local computer and editing it is very attractive. After completing all the operations, you can easily upload the new version of the site to the provider's server.

Create a personal offline blog

If you need to create a private journal, then this is another reason to install a local website on WordPress. You won’t worry that someone will see your site on the Internet, but at the same time, you will have access to the whole range of WordPress tools and features.

As you can see, the reasons for installing WordPress on a local computer plenty, so let's move on to the installation itself, and completely free of charge.

Step 2. Install XAMPP

After downloading the file, double-click to start the installation. If in the process a window appears asking “Do you want to run this file”, click “Run”:

In the window "Select components" leave everything by default and click "Next".

In the window for selecting the folder for installing XAMPP, it is easier to use the proposed option, or change the location at your discretion.

Click "Next" and wait for XAMPP to install.

Step 3. Launch XAMPP

Once XAMPP is installed on your computer, check the box “Do you want to launch the Control Panel now?” And click “Finish”.

In the opened XAMPP Control Panel, click the "Start" buttons for Apache and MySql.

At this point, you may receive a warning from Windows security, but don't worry. Make sure you click Unblock and your local XAMPP server is now ready for use.

To check if everything is done correctly, open a browser and enter the address: http: // localhost

If XAMPP is installed correctly and started correctly, you should see a page similar to this one:

Step 4. Create a database for WordPress

Since WordPress uses the database, we need to create it before installing WordPress. It is very simple and involves several steps.

To get started, launch the XAMPP Control Panel, and click the "Admin" button opposite MySql.

After that, the phpMyAdmin admin panel should open in your browser:

Click on the Databases tab here. Enter the title and click on the Create button. Since you can perform several WordPress installations on your computer, make sure the database has a recognizable name.

Once you see confirmation that the database has been created, you can proceed to the next step.

Step 5. Download WordPress

On, download the latest version of WordPress (the latest version in Russian can be downloaded here) on your computer.

Once the zip file has finished downloading, transfer it to the “htdocs” folder where XAMPP is installed.

Unzip the file by right-clicking on it and selecting “Extract to current folder”

Again, given that you can perform several WordPress installations on your computer, give the folder a unique nameso that you can distinguish it from others in the future.

Step 6. Configuring WordPress

We have done almost everything. Now it remains to edit and rename one file. In the newly created WordPress folder, find the wp-config-sample.php file and open it with a text editor, for example Notepad ++:

In the file that opens, find the area selected in the picture and edit the database name according to the one you selected in step 4.

Save the file and rename it to wp-config.php, removing –sample from its name.

Step 7. Install WordPress

To install WordPress, open a web browser and enter the address: http: // localhost / WordPress /, where “WordPress” is the name of the folder created in step 5. After the page loads, the following will be displayed.

Then enter the necessary data and click on “Install WordPress”, after which a local installation of WordPress will appear on your computer.

To access the local WordPress, type in your browser the address: http: // localhost / wordpress /, where "wordpress" is the name of the folder you created in step 5.

Tips for Using WordPress Offline

If you want to install themes or plugins, you can easily do this through the WordPress admin panel, as you do in the regular version of WordPress, or you can copy files to the appropriate folders on your computer:

  • for themes: c: xampp htdocs wordpress wp-content themes
  • for plugins: c: xampp htdocs wordpress wp-content plugins

If you cannot access WordPress locally at these links, make sure XAMPP, Apache and MySql are running.

If you want to download an online site to use it offline, or vice versa, then use the free WordPress Duplicator plugin.

Step 1: Download and install XAMPP on your computer

XAMPP installer for Windows can be downloaded from the Apache Friends website. The archive size is 110 megabytes, so downloading may take several minutes.

After downloading, run the XAMPP installation package. If you have an antivirus installed, it may issue a warning.

Click “Yes” to continue. Depending on your Windows settings, you may also see a message from the User Account Control (UAC) system. After you complete all the warnings, you will get access to the installer dialog box.

Click “Next” to continue.

In the next step, select which components you want to install. To install XAMPP and WordPress, you will need:

Uncheck all the rest and click “Next”. After that, select the folder to install XAMPP.

The next step is to indicate whether you want to install “Bitnami for XAMPP”. This extension pack is not required, so just clear the check box.

After clicking “Next”, everything will be ready for installation.

The installation process may take several minutes:

After completing the installation, launch the control panel to get started with XAMPP.

Step 2: Run the modules and test the server

To properly install XAMPP and WordPress, run two modules:

You can do this from the XAMPP control panel:

Their work is signaled by the green color of the icons.

Now you can test the operation of the local server by going to the browser at the address: http: // localhost /.

Now it's time to install WordPress on the CMS server.

Step 3: Add WordPress Files

Go to and download the latest version of WordPress. Then open the folder where you installed XAMPP. In my case it is C: // xampp. Then in this folder find the htdocs directory:

In htdocs, create a new folder for the test site. The folder name will be used to access the resource. For example, if you create the testsite folder, the local site will be located at http: // localhost / testsite.

Unzip the archive with WordPress into a new folder.

Step 4: Create a Database for WordPress

Create a MySQL database for WordPress. To do this, start PHPMyAdmin from the XAMPP control panel.

Then click “Databases”.

Enter the name of the database and click “Create”.

Step 5: Launch the WordPress Installer

When you go to the address of the test site, you should see a regular WordPress installer. Remember that the address of your site is simply http: // localhost / FOLDERNAME.

The only step in which this process differs from a typical installation is to configure the database. When you get to them, enter the following values:

  • Database Name = The name of the database that you created in PHPMyAdmin.
  • Username = “root”.
  • Password = leave blank.

After the installation is complete, you should see WordPress running on the local server.

Step 4 - Configure WordPress Installation Options

Next, we need to configure the installation parameters, first we enter the database connection parameters. To do this, enter the following information.

  • Database name - here we write the name of the database that you created in Step 2,
  • Username - database username
  • Password - password of the database user,
  • Database server - here we enter the address of the database server, in our case it is localhost, i.e. local server
  • The table prefix is ​​wp_ by default. It is not necessary to change it for the local server, but on hosting, for the current site, for security reasons, it is best to change this prefix.

If up to the current moment you did everything correctly, then the installer will inform you that everything is in order, click "Run installation».

Then enter the settings of the site itself:

  • Site name - indicate the name of the site,
  • Username - site administrator login, default is Admin, but it’s best to change it (although not required for the local server),
  • Password - create a new one or save the proposed password,
  • Your e-mail - specify the email address,

Push "Install WordPress».

Step 5 - Complete the installation and log into the WordPress admin panel

Installation will take just a few seconds, and when a message appears stating that WordPress is installed, we can enter the admin panel.

Using the admin panel, you will manage the site, fill it with content, in other words, carry out all administrative work on the site.

Press the button "To come in».

To enter, use the username and password that you specified when configuring the site. The site’s administrative panel is available at http: //localhost/SiteOnWordPress/wp-login.php, where, as you remember, SiteOnWordPress is your site.

This is what the WordPress site management console looks like.


When you learn how to install XAMPP and WordPress, you can quickly deploy new test sites. As a freelancer, I use XAMPP to test various topics and plugins. At the moment I have about 60 different WordPress installations running on a local server.

This publication is a translation of the article "How to Install XAMPP and WordPress Locally on Windows PC", prepared by the friendly team of the Internet technology project

Step 6 - Verify the site is working

After installing WordPress, you can immediately look at your first test site on which the default theme (template) is installed. To do this, you need to again type in the address bar of your local site http: // localhost / SiteOnWordPress in the address bar of your browser

Here we are and have considered installing WordPress, I hope the material was interesting and useful to you. Until!