In order to learn WordPress properly, it’s the best idea to install WordPress on your computer. This way you’ll have the advantage of learning WordPress even without internet connection. Yes, you can use WordPress offline when you install it on your computer. WordPress isn’t the standalone application. For this, you need to install the web server on your computer. WordPress works best in Apache server with PHP and MySQL. For the Windows system, the best way to have Apache web server with PHP and MySQL is by installing XAMPP.


XAMPP is the acronym for Cross-platform, Apache, MariaDB, PHP and Perl. It provides complete local server environment for development or testing purpose of WordPress and many other web applications.


Haven't installed XAMPP yet? Learn how to install XAMPP on your computer (Click here)

Installing XAMPP on your computer

Download the Xampp installation setup package on your computer. Click here to visit the download page of Xampp.

Download XAMPP


After downloading XAMPP installer, double-click to launch it. You may get warnings. Click OK to move ahead to the installation process. Click Next >.

Installing XAMPP


In this step, you need to select components that you want to install with XAMPP. For WordPress, you need Apache, MySQL, PHP, and phpMyAdmin. You can uncheck other components, then click Next >.


Select the folder location for the XAMPP installation and click Next >.

Select location for XAMPP installation


Click next > to Start the unpacking and installing process.

XAMPP installation process


Ready to Install! Click Next > button to start the installation.

Installing XAMPP


It takes few minutes for the completion of installation. After the completion of setup, click on the Finish button.


Control Panel opens directly this time. But, in other time, you need to go to XAMPP installation folder and open it.

Opening Control Panel of XAMPP


Start Apache and MySQL from the XAMPP Control Panel.

Start Apache and MySQL from Control Panel of XAMPP

Congratulation! You are all set with your local server. Now, let’s install WordPress on your computer.

Installing WordPress on your computer (Local server)


You need to download WordPress to your computer to install it. Click here to visit download page of WordPress.


Download WordPress from





WordPress requires a database to work. So, we need to create one from PHPMyAdmin.


Visit localhost/phpmyadmin from your browser. Or Click on the Admin button of MySQL in XAMPP Control Panel to launch PHPMyAdmin.


Opening PHPMyAdmin from XAMPP Control Panel






Click on the Databases tab. Enter the name for the new database. And, click on the Create button to create a new database.


Opening PHPMyAdmin from XAMPP Control Panel





After you create the database, go to XAMPP installation folder and create a folder for WordPress inside htdocs folder.


Create a folder for WordPress in htdocs folder inside XAMPP installation folder





Now, go back to the location where you’ve downloaded WordPress. Extract the zip file of WordPress and copy all the files and folder to wp folder of htdocs which we created just before.


Copy all the files of WordPress to the wp folder of htdocs





Now, go to your web browser and open http://localhost/wp


You’ll be asked to choose the language in which you want to have your website. In my case, I am OK with the default selection of English (United States). Then, click Continue button.


Choose your language and click Continue button





Click on the Let’s go! button to continue.






You have to enter database connection information in this step. Enter the name of the database that you created for WordPress. Enter ‘root‘ as username. You don’t need a password for this connection, so keep it blank. Enter ‘localhost’ as Database Host. Enter Table Prefix if you want to change default one. (You can use default one in this test site.)


Click on the Submit button to submit your database connection details to WordPress.


Enter information about the database for WordPress installation





Finally, click on the Run the Install button.






In this step, you need to enter information related to the WordPress site that you want to create. Since it’s test site, I’ve entered dummy data for now. (You can change this information later one from Settings menu).


Finally, click on the Install WordPress button.


Enter information related to WordPress site



STEP 10:


WordPress gets installed successfully and you are redirected to WordPress login page. Enter the username and password, then click on the Log In button.


Login to your WordPress Dashboard



STEP 11:


You’ll reach to WordPress Dashboard from where you can control and customize your site as per your requirement.


WordPress Dashboard


Congratulation! You successfully installed WordPress on your computer (local server).


Wrapping up


I hope this tutorial was useful for you. If you have any question or problem when you tried to install WordPress on your computer, please comment it below. I’ll be glad to help you in any problem related to WordPress.


We have a long series of the tutorial coming up. So, keep following WPCounsel.