Useful Tips

How to install XAMPP and WordPress on Windows

XAMPP is a set of programs that consists of a web server, a database, a PHP interpreter, Phpmyadmin, as well as other tools that are designed for convenient application development. Compared to other programs, it is very simple to install and use. You just need to download the installer from the official site, start it, and in a few minutes your computer will be completely ready for developing web applications.

In this short article, we will look at how to install XAMPP on Ubuntu 18.04, as well as initial setup of the program for more convenient work.

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 it completes the installation, launch the control panel to get started with XAMPP.

1. Download program

The program is available for Windows, Linux, as well as MacOS, and you can download it on the official website. At the time of writing, a version with PHP 7.3 has already been released. We will use it.

Open tab Download, find the Linux version and download it.

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.

2. Installing XAMPP

Next, you need to run the newly loaded installer. By default, it is in the folder

/ Downloads. First you need to add the executable flag to the installer file:

Then run the installer as root:

Then you need to go through several steps of the installer, on which it is enough to just click Further:

After that, the installation of XAMPP Linux will be completed, and all the program files will be located in the / opt / xampp directory.

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.

3. Configuring XAMPP

You can control the operation of installed services through the terminal or using the graphical utility. You can start the graphical utility by checking the Launch XAMPP checkbox in the last window of the installation wizard.

Here on the tab Manage servers you can start the web server, database server and FTP server:

To start everything, immediately click Start all. When a service is started, its status changes to running, and the icon turns green. In addition, by selecting any of the servers and clicking the button Config you can configure it:

Here you can change the port, open the error and access logs, and also open the configuration file and change any settings of the selected service:

But be careful here. One error in the configuration file - and the service may not start. That's all for the graphical interface.

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”.

4. Management of XAMPP through the terminal

In the terminal, you can do the same thing, plus a few more functions. The xampp utility is used for management:

Here are its main options:

  • start - start all servers,
  • startapache - run only apache,
  • startmysql - run only mysql,
  • startftp - run only ftp,
  • stop - stop everything
  • stopapache - stop only apache,
  • stopmysql - stop only mysql,
  • stopftp - stop only ftp,
  • reload, reloadapache, reloadmysql, reloadftp - similarly, only a reboot of all these services,
  • restart - stop and start XAMPP,
  • security - check the XAMPP security settings,
  • enablessl - enable SSL in Apache,
  • disablessl - disable SSL in Apache,
  • panel - open the graphical settings panel, with which we worked in the first paragraph.

I recommend that you run the security command after installing the program to change the basic default settings, which will be unsafe:

sudo / opt / lampp / xampp security

The utility will disable access to MySQL from the network, offer to set a password for Phpmyadmin, MySQL, as well as a password for FTP. After that, you can start all the servers if you have not done this before:

sudo / opt / lampp / xampp start

And to stop, use:

sudo / opt / lampp / xampp stop

You can launch the graphic panel with which we worked at the beginning, with this command:

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.

5. Application Deployment

You can check if everything is up and running by opening the address http: // localhost in your browser:

All web server files are located in the / opt / lampp / htdocs / directory. You can delete everything that is superfluous there and upload the files of your application or, for example, WordPress.

In this short article, we looked at how to install and configure the XAMPP server in Ubuntu and other Linux distributions. Since this program is almost portable, this instruction should work fine for any distribution, and even in a sense for Windows and MacOS. And also it is much more convenient to install, compared with LAMP.


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