How to Run WordPress Website on Local Server Using XAMPP

Create and Run Wordpress Site on Your Computer using a Web Server Called XAMPP

WordPress Website and XAMPP

WordPress is the most popular Blogging platform around the World that used by Hundred of thousand of Professional and Personal Blogger and Writer. Even many top sites Ranking under 500 by Alexa using WordPress as their CMS (Content Management System)

As WordPress is a CSM (Content Management System) and fully written in PHP programming language as its main technology. So that WordPress needs a Web Server to run. You can write HTML and CSS in a .html file and you can directly run on your computer. Even you can run Javascript file because all modern Web Browser supports Javascript. But you can not run a WordPress Site without a Web Server and that’s why you can not run a WordPress Website on your Computer without configuring a Web Server.

Well, WordPress need a Web Server but your computer has not one that does not mean you can not run your WordPress Website on your computer. You can configure your PC as a Web Server. To do this, XAMPP comes handy tools to convert your PC as a Web Server.  And luckily, you can do it with a few mouse click. Before continuing to this tutorial, if your computer has not configured XAMPP then Check out here, How to Install XAMPP and Configure on your PC.

Advantage of Running WordPress on Localhost

After configuring Web Server on your PC you can run your WordPress site on your computer without a Data connection and without host your site on a Hosting Server. It is very helpful while you develop Website you can use a local server to load your page fast. Because you won’t face any hassle for your bandwidth or slow loading. Moreover, you don’t have to pay anything while your website in under construction mode. So you can save your Dollars.

Download WordPress

To install WordPress the first step after configuring your local server is Downloading the WordPress script from the WordPress Official Website.

Running WordPress on Your Local Computer Picture 1 - PrograCoding

The WordPress script will download with a .zip compressed file extension. So unzip it with your favorite unzipper application. After that Copy the whole files and folders into WordPress folder that you unzipped some times ago. Then Paste it into the htdoc subfolder (The subfolder will be your site domain. For example, if you paste in a folder called PrograCoding you can access your site by https://localhost/PrograCoding)  in your install directory. You can find the htdoc folder in the default XAMPP install directory. The directory generally.C:\xampp\htdocs

After pasting the files and folder to your desired subfolders Now you have to Turn on your local server via accessing the XAMPP control panel if already the server not running. To turn this on, open the XAMPP Control Panel application from your desktop shortcut or from the installed application list.

Then, from the menu turn on the Apache and MySQL server via clicking the Start Button. And other options keep turn off. See the screenshot below…

XAMPP Control Panel PrograCoding

Now your Local server is live. Now it is time to configure and run your WordPress Website locally. First of all, open your favorite Web Browser the type https://localhost/your-subfolders-name (for me I have used http://localhost/PrograCoding) and hit enter. You should see the install prompt of WordPress like the screenshot below…

Install WordPress selec language Prompt Picture 3 PrograCoding

Now Select your Install Language and click on continue. Then Click on the Let’s go button on the next page. On the next page, you will see the database configuration page where you have to define the necessary database information. In this step, you have to create a MySQL Database.

To do this open a new in your web browser and type https://localhost/phpmyadmin in the address bar and hit enter. You will see the phpMyadmin dashboard from the Dashboard click on the new button in order to create a new database.

On the new database page Enter database name for your website for me, I have entered PrograCoding. And select utf8_general_cias database collation. Then click on create button. See the screenshot below…

Create Database in phpMyAdmin PrograCoding

Then, click on the Privileges Tab from the PhpMyAdmin Dashboard. In the new section click on the Add user account to add a new database user. In the next page enter the database login info. Enter your username (I used PrograCoding as database username, you can always choose your own) then from hostname select Localhost. Then enter your database password (I have use 12345678 as password, you can choose your own).

Making A New User in PhpMyAdmin PrograCoding

Now, Scroll down the page and Check all the global Privileges. Then Without making a change to other fields scroll to the bottom of the page and click on Go Buttoon.

Now it is time to go back to the previous WordPress Installation Tab. Then, enter the database name you have just created in phpMyAdmin and do the same for others field. Enter the database username, password, enter localhost as host and finally database table prefix. The default table prefix is wp_.

Then click on Submit Button and click Run the installation Button on the next page to install your site completely.

In the next page, you will be asked for your Site title. Your site username (this username will be used to login your WordPress Dashboard and management your site), Your site password (this password also uses for site dashboard login), then enter your email. Then Click Install WordPress Button. Your site should be installed.

Now, Browse your Site from the web browser by entering http://localhost/your-subfolder-name-in-htdoc-folder for me the address is http://localhost/ProgaCoding. Let’s see a ScreenShot…

Running WordPress on Localhost PrograCOding

Yah! It works. Thanks for reading. To stay with PrograCoding Like us on Facebook and Subscribe to Our Newsletter also Subscribe to Youtube

Leave a Reply

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