Do you want to learn how to create a local WordPress site using XAMPP? If you are a complete beginner of WordPress, you might not know that by using a local web server software like XAMPP, you can install and run WordPress much more quickly. You can install plugins, themes, and much more with or without internet connection like the actual server. Amazing, right? In this article, we will show you how to create a local WordPress website using XAMPP.
This article is for those who are looking for an answer to any of the following questions:
- How to Install WordPress on Localhost Using Xampp Server
- How to Install XAMPP and WordPress Locally on PC (Windows)
Why Create a Local WordPress Site?
Having a local WordPress site, it can help you customize site design, create, and try WordPress without installing on the actual server or uploading on the internet. It’s also much faster compared to a live server.
Using a local web server, you can experiment anything inside or outside of WordPress dashboard, install try third-party WordPress themes & plugin, modifying codes etc.
Most developers build a website on a local web server to fasten their workflow then move it to the actual server once it’s done. Others used it to test and try plugins and themes.
Note: a Local website is not accessible on the internet, you can only see it on your computer where your setup the site. If you want to create a website on a real live server which can be seen by everyone, you will need to purchase a domain and rent a web hosting space from a web hosting providers like HostGator or Greengeeks. Thankfully, we have a guide on how to start a blog step by step with images.
So, without any further ado, let’s go ahead and install the WordPress website on a local web server (xampp).
What is XAMPP?
Xampp Is the most popular free and easy-to-install local web server software (Cross-platform Apache, MySQL, PHP, and Perl) that allows you create and install local WordPress site on your computer. Built for testing purposes.
From the word itself cross-platform, XAMPP also works on MAC and Linux machine. You need two components to run WordPress – Apache, and MySQL. Apache is used to create a local server. And MySQL uses to create a database for your WordPress site.
Install and Setup XAMPP on Your Computer
The first thing you need to do is download the latest XAMPP version by visiting the XAMPP at Apache Friends website. You will see separate download links to choose from for Windows, Linux and OS X. Click the download button depending on your operating system.
As you can see in the screenshot above, there’s no 64-bit version, but 32-bit is tested and work properly on a 64-bit computer.
For this tutorial, we will show you the Windows (7) version of the installation process. Since Windows is the most widely used operating system. If you are using the latest version of windows, don’t worry it’s almost the same process 😊
Note: Before installing XAMMP, make sure that your computer doesn’t have any other running application that uses the same ports to avoid conflict. If you’re using Skype it also uses the same ports, please quit the application first, then continue.
The XAMPP installer file is usually 109MB. Once downloaded, click it to run the installation wizard.
Now, it will prompt with some warning message such as Window asking you about your antivirus may interfere the installation of the software. Just click Yes to continue with the install Wizard.
Xampp will ask you where you would like to install the XAMPP software on your computer, we will recommend the default settings. Just continue clicking on the Next button until the setup wizard finish.
Once setup is completed, check the box that says ‘Do you want to start control panel now?’ then click on the Finish button.
XAMPP Control Panel will automatically launch. Go ahead and click on the Start button next to Apache and MySQL to start the programs.
Note: If you uncheck the box, XAMPP Control Panel will not automatically launch. You will need to start it manually by navigating to C:\xampp folder then open ‘XAMPP Control Panel’ to start the program.
During the first installation, you may see a Windows security firewall alert. To allow the program to run on your computer click on the Allow Access button.
Note: This is very important, if you don’t click the Allow Access, XAMPP will not work.
Once the application you clicked is started, you will see that the names will turn into a highlighted green background in the XAMPP control panel.
Cheer! You have now successfully installed the XAMPP web server on your computer.
Now that you have installed the XAMPP, you can now upload and install your WordPress website. Let’s go ahead and continue.
Creating a Local WordPress Site with XAMPP
To install WordPress, first, you also need to download the latest version of WordPress from their official website WordPress.org and click on the blue ‘Download WordPress‘ button.
Once downloaded, you need to extract or unzip the contents of the downloaded .zip file on your computer. After that, you will see the ‘WordPress‘ folder. Go ahead and copy the folder.
Next, you need to locate and paste the copied folder into the xampp htdocs folder.
Here’s the htdocs location path:
For Windows users: C:/Program Files/XAMPP/htdocs or C:\Xampp\htdocs folder.
For Mac Users: /Applications/XAMPP/htdocs
Once copied to XAMPP htdocs folder. We suggest renaming the WordPress folder into a ‘WPSite1′ or any name you want to avoid conflict for another future installation.
Next, open a browser of your choice and visit http://localhost/wpsite1. For this installation, we will use ‘Google Chrome’ to install WordPress into a database.
As shown in the screenshot above, you need to provide some database information such Database name, Database username, Database password, and host.
So, let’s go ahead and create a new database for your local WordPress site.
To create a database, you need to open a new tab in your browser and navigate to localhost/phpmyadmin/. It will take you to the PHPMyAdmin application.
In the PHPMyAdmin section, click on the Database tab and enter your database name, then click on the right side create button to create a new database.
Once the database is created, you can now use it to install your WordPress site.
Go back to the first tab, then click on the Let’s Go button to continue.
To connect the database, you need to enter the database name you created earlier. Your default username is ‘root’ and leave ‘Password’ field blank then use the localhost as your Database host.
After you fill out all the required fields, click on the Submit button.
You will now have redirected to the information area, WordPress will ask you to enter your site information. Go ahead and enter first the Site Title. Next, create a username, password, and your email address for your admin account.
Once everything is filled out, click on the Install WordPress button to install the WordPress into your database.
WordPress will now automatically start the installation and redirect you to the login page once it’s done.
In the login page area, Enter the username and password that you have created during the installation process to login into your WordPress admin dashboard.
Congratulation! You have created your local WordPress site using XAMPP. If you want to try to customize your site design then let’s do it and continue.
Things Must try on a Local WordPress Site
You can change the default theme design by installing a new WordPress theme. We have a complete step by step guide on how to install WordPress themes.
You can also improve and control the site design such colors, fonts, logo, and much more. Just simply go to Appearance » Customizer.
By using the WordPress plugin, you can also extend the functionality of your WordPress sites like adding photo galleries, contact forms, animations, and a lot more. We have a beginner’s step by step guide on how to install a WordPress plugin.
You may also want to see our list of 10 must-have WordPress plugin.
If you want to migrate your local site to a new server, we have written a tutorial on how to migrate website using WPMigration. Once your site is moved to a new live server you need to configure some essential settings before launching it online. That’s it! 😊
If you need help migrating your site to a live server, feel free to contact us. Don’t worry it’s free of service, exclusive for WPGainer readers.
We hope that this article helped a lot on how to create a local WordPress site using a XAMPP server, as well as familiarizing the WordPress admin dashboard.