How To Run WordPress On Your PC With XAMPP

How To Run WordPress On Your PC With XAMPP

Ever run out of data while working on a WordPress website? Or you got frustrated due to poor network speed? Yeah, it happens to all of us. But did you know there was a way you could run your WordPress installation on your PC without the help of the internet? If you’re reading this post, it’s either you knew but wanted to get the steps right or you never heard of that before. Either way, you’d be able to run WordPress on your PC with an awesome tool called XAMPP in the next 10 minutes.

[AdSense-A]

XAMPP stands for cross-platform, Apache, MySQL, PHP and Perl and has long been the standby choice for PC-based developers looking for a quick and easy local setup.

How To Run WordPress On Your PC With XAMPP

If you didn’t like the video or you prefer text lessons read the post below

Now below are the advantages of running the development of your website with XAMPP.

  • You save time.

– When you develop your website locally, you save time. This is because the website loads faster than when hosted online. You are people to navigate your way through the website files as quickly as you can open up a folder on your PC.

  • You save money.

– When you develop a website online, it would cost you bandwidth. This is because there is always the clumsy upload and delete and refresh and … well bandwidth consuming activity that isn’t so pocket friendly. This is not the case when you develop your website locally.

  • You escape “Lorem Ipsum” indexing.

– We all download themes to work with. These themes are usually filled with dummy data like the infamous “Lorem Ipsum” line we find in themes. Google and other search engines usually crawl your website and index this. A quick search on Google for Lorem Ipsum would show you websites that are developing online, now, the whole world knows.

Great, I’m sure the image above is enough to convince you. So let’s dive into our tutorial.

Setting up a Local Server Environment with XAMPP.

To start building your pretty WordPress website locally, you will need to set up a local server environment with XAMPP – That sounded geeky right? well , it’s basically just installing a tool and clicking some buttons.

 

Download and Install XAMPP

Xampp is hosted at  Apache Friends.  You can download it at their download page. Any version of Php you choose will do the job.

It’s a large file. over 100mb, so it will take some time to fully download.

Once downloaded you can initiate installation by double clicking on the downloaded file.

Let The Installation begin!

Select the Basic Components

XAMPP ships with a number of packages that aren’t necessary for getting your local WordPress install running so, to keep matters simple, we’ll stick to just the subset required on the components selection screen. Choose only the following: Apache, MySQL, PHP and phpMyAdmin.

Select Your Installation Folder.

Now you’re going to choose where XAMPP is going to be installed into. It’s better to leave it at the default location. Remember where it is cos you would be needing the htdocs in it to serve webpages to Apache – don’t worry about what that means.

Skip Bitnami Install

Bitnami offers to Install popular CMS when you check the “learn more” box. leave it unchecked.

If all went down well, you would be seeing the screen below. Click Start next to both Apache and MySQL under the Actions header to get going.

Check Your Homepage in a Browser

Visit http://localhost in a browser of your choice and you should see the default XAMPP homepage being served by Apache from your local /htdocs directory.

Congratulations! You just successfully set up a local server environment on your PC with XAMPP- See, I told you that you could do it!

Setting up A Database For WordPress

Now let’s create our first database. XAMPP comes with phpMyAdmin (a convenient and powerful tool for managing MySQL databases) installed as standard, so we’ll be using that.

You’ll also find phpMyAdmin installed as standard on many remote hosting environments, so getting used to working with it locally is a great way to brush up your skills in a safe setting.

We need to do two things:

  1. create a database for our WordPress install to use, and
  2. create a user for that database with the appropriate privileges.

Launch phpMyAdmin direct from the XAMPP Control Panel by clicking on Admin in the MySQL row.

Now click on the Databases tab, enter the name of your database in the Create database field and click Create.

Installing WordPress

WOw. enough with XAMMP already. We’re moving to familiar grounds – installing WordPress. The process here is essentially the same as installing on a live server; the server just happens to be located on your Windows machine.

Begin by downloading the latest version of WordPress and extracting it to a folder within /htdocs in the XAMPP home folder on your system. Let’s assume in this instance you call the folder w3tutor.

Now make sure XAMPP is running Apache and MySQL and navigate via browser to the WordPress install script in that folder. Use the address format localhost/folder_renamed/wp-login.php. In our example that would be localhost/w3tutor/wp-login.php.

Reaching that page should launch the familiar WordPress 5-Minute Install sequence. Complete this using the database details below.

Database Name: The name of the database you created in PhpMyAdmin

Username: root

Password: (leave empty)

Database Host: localhost

Table Prefix: (don’t touch)

Now login. You did it. You can now develop your WordPress website on your PC without the internet.

PS: You’ll need to be connected to the internet to download Plugins and themes obviously. But every other thing can be done locally. Consider taking our concise free WordPress tutorial.

I love Comments.

 

Prince Kwekowe
administrator
Entrepreneur, Programmer, Technophile, Tech Instructor and CEO at w3tutor.org. Has a Degree in Artificial Intelligence and Entrepreneurship. He is passionate about Technology, Robotics, Entrepreneurship and SEO. When he's not Programming, writing or teaching, Prince engages in playing video games, cooking or playing the guitar.

Leave a Reply

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