Today, WordPress is the most popular CMS (Content Management System) on the market. With about 38% of all websites on the internet powered by WordPress, it is no wonder thousands of people are joining the famous publishing platform every month. To all the newbies on the WordPress website development bandwagon, we recommend installing the localhost server app ‘XAMPP’ as it makes it easy to build a WordPress website on your computer with just a few clicks.
Anyone new to WordPress would ask, “what is the first step in a WordPress website development process?” The straightforward answer is – begin by Installing WordPress locally on a Windows or Mac computer. This first step is also known as WordPress localhost installation, wherein the term localhost is about a Windows or Mac computer.
The next common question in line is, “how do you install WordPress locally?” The answer is through a localhost server app like WAMP or XAMPP, among others. In this tutorial, we’ve picked XAMPP to install WordPress on localhost, as it’s one of the easiest to install and works incredibly.
If you are new to WordPress, you’ll find this easy-to-follow tutorial on “How to Install WordPress on Xampp” quite helpful. There are certain prerequisites for WordPress to run, including web server software ‘Apache,’ PHP (Hypertext Pre-Processor), and MySQL. XAMPP is an acronym for cross (X) platform, Apache, MySQL, Pearl, and PHP.
In the above, ‘Apache’ is the webserver software, while ‘PHP’ is a programming language and ‘MySQL’ is a database management software. It would be a daunting task for any beginner to install each software individually to make WordPress run. Luckily, there’s XAMPP to automate the whole process in just a few clicks, allowing your localhost to be up and running in no time!
Before moving on to the steps of installing WordPress on XAMPP, let’s look at the main advantages of installing WordPress on XAMPP.
Why Install WordPress on XAMPP?
The main advantages of installing WordPress on XAMPP to build your website from scratch are as follows:
1. XAMPP saves you time compared to the live server route:
When you resort to XAMPP, you’re in effect opting for local installation. This means you don’t have to go the direct route of building your WordPress site on a live server spending several hours on an internet connection to get your website up and running.
By installing WordPress on XAMPP, the only time you’re required to go online is when you’re done designing your site, and the time has come to publish the website online. Hence, as you develop our site locally, you benefit from increased flexibility and less time online.
2. Minimum downtime & faster website development:
Spending minimum time online equates to minimized website downtime. Imagine the downtime that would result if you had to make drastic changes on a live website! Statistics reveal, the lower the downtime, the better a website’s reputation. Recommended measures like testing and making the changes offline results in a better overall user experience.
Further, the local installation of WordPress leads to faster website development. You can quickly test plugins and themes without breaking your site and incurring downtime on your live site.
Read through the rest of our tutorial on “How to install WordPress on Xampp” to learn how following the below easy-to-follow steps, you can: Download XAMPP, Install WordPress on XAMPP, & build your first WordPress website in just a few clicks:
How to Install WordPress on Xampp?
Step 1 – Download and Run XAMPP on Your PC
To download XAMPP, visit XAMPP’s official website and click on the download button after selecting your operating system.
After choosing the version suitable for your operating system, downloading the software (around 150 MB file) will take a minute or more, depending on your internet connection.
Once done downloading, run the downloaded file by unzipping it to launch the XAMPP installer. Then, select the install button or click on it twice to begin the installation process.
Next, you will get the option to select the components you want. Some components will already be checked by default. Overall, you need to ensure the following are check-marked for installing XAMPP and WordPress:
- PHP (already checked by default)
- Apache (already checked by default)
Since components other than the above aren’t needed, you should uncheck everything else.
After selecting the components, as shown above, click ‘Next’ to continue. You can then choose the folder where you want to install it or leave it as default and click on ‘Next.’
Click ‘Next’ until you reach the screen shown below after running and finishing the installation process.
After the installation finishes, you can launch the XAMPP control panel and begin working with XAMPP. To do so, check the box next to “Do you want to start the Control Panel now?” and click on ‘Finish.’
When the XAMPP control panel appears, check the ‘Start’ button next to the Apache and MySQL modules so that XAMPP starts up Apache and MySQL.
Next, a windows firewall notification might appear. If it does, click on ‘Allow Access’ so that both the applications run on your PC.
As seen below, upon allowing their status will turn green:
At this stage, you have now successfully installed XAMPP on your computer and should now move on to the next step.
Step 2 – Download the Latest Version of WordPress
Now you are ready to install WordPress on localhost and create your local site. For doing that, visit the official WordPress website and download the latest version.
By clicking on the “Get WordPress” button, you’ll end up being redirected to a new page with a “Download WordPress” button. Click on the “Download WordPress” button and wait for a few moments for the process to begin.
Next, you’ll get a zip file, which you need to extract to unzip. Then you will see a ‘WordPress’ folder like seen below, which you’ll need to copy for the next steps:
Next, go to the XAMPP installation folder in your local disk, and paste the above ‘WordPress’ folder you have copied inside the ‘htdocs’ folder:
Tip: Optionally, while you’re pasting the copied ‘WordPress’ folder into ‘htdocs,’ you may want to rename your ‘WordPress’ folder something easier to remember. For instance, we’ve renamed our folder ‘mysite.’
Step 3 – Create a Database for Your WP Website
The last step following this step is the “installation of WordPress on XAMPP.” Yet, before that, you need to create a database.
To create a database for your WP website, in a new browser tab, go to localhost/phpmyadmn/ and click on ‘Databases.’
Next, to provide the name for your new database, write the name you wrote on your local disk and click on the ‘Create’ button to create your database instantly.
At this stage, you’re done successfully creating your localhost database. It’s time to head over to the final step – Install WordPress on the localhost (XAMPP).
Before moving on to the final step, you need to get access to PHPMyAdmin. To get access to PHPMyAdmin, you first need to start both Apache Web Server and MySQL Database from the localhost (XAMPP) control panel on your Mac or PC.
To start them both ( Apache Web Server and MySQL Database), visit the app folder, select the XAMPP control panel and click on the MySQL and Apache buttons.
Step 4 – Install WordPress on XAMPP
Finally, to install WordPress on your localhost, visit localhost/mysite.
To do that, ensure that XAMPP is still running in the background. Then, open Google Chrome or any other browser and type “localhost/mysite” in the tab.
Note – As mentioned earlier, “mysite” is what we’d renamed our WordPress folder in step 2. Your’s might be “WordPress” or any renamed title you gave it.
When the above screen appears, click on ‘Let’s go’ and provide the WordPress database information asked for. You will be asked to enter the database name you created before this step.
In the ‘username’ field type “root,” and leave the password field empty. Finally, before clicking submit, use the localhost for the ‘Database Host.’
Now, click on the ‘Submit’ button. Windows or Linux users will end up storing these settings in their WordPress configuration file.
Next, to proceed with WordPress localhost installation, you will be asked to provide the following information by WordPress:
After entering the desired site title, username, a strong password, and an email address, click on the ‘Install WordPress’ button and continue.
Once the installation is done, WordPress will prompt you to log in. You may then log in to your WP dashboard and start developing, designing, and testing your brand new website.
Having read our tutorial, you may have figured out that installing WordPress in XAMPP is no rocket science! The whole process takes only a few minutes following our easy steps. Before you know it, your localhost site will be up and running!
Setting up WordPress locally rather than online isn’t just popular with beginners. Even experienced developers prefer this route before moving online.
Did you give it a try and end up installing WordPress on Xampp successfully to build your site locally? Let us know if it worked smoothly for you, and do share additional tips or concerns if you have any, in the comments section below.
If you found this tutorial useful, you would enjoy reading other tutorials we’ve written, including the following:
Joe has been using WordPress for many years, building many different types of websites along the way. Joe now enjoys working as a freelance content writer and is available for hire.