How to Install WordPress Offline using XAMPP

Here i am describing how to install wordpress in localhost using xampp. So let’s see the first requisit for that.
XAMPP stand 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 purposes.
Since XAMPP is cross-platform, it also works on Mac and LInux, but today we’re going to look at setting up XAMPP on Windows 7.
WordPress isn’t a stand-alone application and needs server software to run. XAMPP provides the necessary environment needed to run WordPress on a local machine.

Installing XAMPP

Go to the Apache Friends website and download XAMPP.
xmp1

Download XAMPP from the Apache Friends website.
The XAMPP file is 125MB. Once downloaded, launch the installer.
You may receive warnings about installing the software on your computer. As you would when installing any software on Windows, use your best judgment.
The XAMPP setup wizard will guide you through the installation.

xmp2

XAMPP setup wizard.

In the next window you will be asked to select which components of the software you would like to install and which one you don’t want. Some options, such as Apache and PHP are greyed out because they are essential to running the software.

It’s up to you which components you want and don’t want. Since I we want to run WordPress on this localhost, I’ll leave MySQL and phpMyAdmin checked and uncheck the remaining options.

xmp3

components of the software you want to install and untick the ones you don’t want.
Next, select the folder where you would like to install XAMPP. I’m going to create a new folder in C:Program FilesXAMPP.

xmp4

Select the folder where you would like to install XAMPP.
In the next window you’ll be asked whether you would like to install Bitnami for XAMPP, which offers free tools for installing WordPress, Drupal and Joomla! on top of XAMPP. We’re going to install WordPress manually and without this promotional program, so untick “Learn more about Bitnami for XAMPP” and click “Next.”

xmp5

In this tutorial we’re going to set up WordPress manually, so untick this option.
After going through all those options, XAMPP is now ready to install.

xmp6

Almost there…
Once installed, you’ll be asked whether you would like to start the Control Panel. Leave this option ticked and click “Finish.”

xmp7

Installation is quick and painless.
If you receive any security/firewall warnings during the installation process (such as the one below), make sure you check “Private networks, such as my home or work network” and click “Allow access.” This is very important. If you don’t allow access, XAMPP won’t work.

xmp8

Allow access for Apache and MySQL to ensure XAMPP can run.
If you left “Do you want to start the Control Panel now?” checked during installation, the Control Panel will automatically open. If not, go to the XAMPP folder on you computer and open “XAMPP Control Panel”.

xmp9

The XAMPP Control Panel.
Start up both Apache and MySQL. If you have installed XAMPP properly, both components should run fine without any errors, however, if there are any other applications on your computer using the same ports as these modules then you need to quit the conflicting applications using the same ports and restart XAMPP.

xmp10

XAMPP running smoothly.
You can check if your new local server is installed by visiting http://localhost in your browser.

xmp11

Localhost is now installed and working!

Setting Up Your MySQL Database:

Before we install WordPress, we need a database.
On your XAMPP Control Panel, click the “Admin” button in the MySQL section.

xmp12

Click “Admin” to set up MySQL.
A new browser window will automatically open with the phpMyAdmin interface.

xmp13

Click “Admin” to set up MySQL or go to “localhost/phpmyadmin” in your browser.
Click on “Databases” near the top-left and you’ll be prompted to create a new database. I’ve called mine “WP”. When you’ve entered a name, click “Create” and close the window.

xmp14

Quickly and easily set up a new MySQL database for WordPress.

Download and Install WordPress

Download the latest version of WordPress.
In order to get WordPress working with XAMPP we need to unzip WordPress to the right folder. Go to the XAMPP folder on your computer and open the htdocs folder, i.e. C:/Program Files/XAMPP/htdocs.

xmp15

Go to XAMPP/htdocs folder on your computer and unzip WordPress there.
Unzip WordPress into its own folder and rename it whatever you like. For consistency, I’m going to call this installation of WordPress “WP” to match the name of the database I just created.

xmp16

Open the link on your browser.
http://localhost/WP. It will redirect you to the installation page.

wp1

Continue to the next step after selecting your preferred language.

wp2

wp3

Set database name same as your database name that you have created earlier. User name should be root and password should be blank. Database host is localhost and you can set table prefix whatever you want. And submit the form for the next step. You are almost close.

wp4

Run the install.

wp5

Set the site title. Like “My first wordpress site”. Set your username, password and put your email id as admin mail Id. If your selected admin password is not strong enough a field will appear.

wp6

Confirm the weak password and press install wordpress button.

wp7

This will appear. Press log in button and it will redirect you to the login page.

wp8

4 responses to “How to Install WordPress Offline using XAMPP”

  1. Surprisingly post,it is useful to me and others,please just keep it on….

  2. Dupon says:

    Hello, after reading this amazing post i am also delighted to share.

  3. Tiffany Hwang says:

    The last time I installed WordPress online was when I was still in college (circa 2013) so I totally forgot how. Many thanks for this!

Leave a Reply

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