How to install WordPress on localhost using XAMPP Web Server

Install XAMPP Server on your Windows PC

First you need to download XAMPP localhost server from here (Download).
After Download Run the Setup.You will see a notification if you have antivirus running. Dont worry just click on Yes.

it seems that you have antivirus running
Now You will see XAMPP Installation wizard.Click on Next to Continue.

Xampp installation guide


Select the Component you want to install. For Wordpress we need MySQL and PHP. After selecting component click on Next

Select the component MySQL, PHPMyAdmin

Now Select the directory to install XAMPP by Default its C:\\XAMPP. Click on Next to continue.


select the directory to install wordpress

On the next screen, you’ll get a prompt asking you to install Bitnami for XAMPP. You do not need this to install XAMPP and WordPress, so just uncheck the box.

How to install wordpress on pc
Click on Next to run the setup.


How to install wordpress on pc


Now wait to complete the setup.

How to install wordpress on pc

Click on Next to Continue.

How to install wordpress on pc


After Installation launch the control panel to start working with XAMPP.
Now Run Apache,MySQL Module.

Start xampp control panel and run apache, mysql

Here you will see that both module will start and turn green .

Start xampp control panel and run apache, mysql


And now you should be able to test that your local server is working by going to http://localhost/ in your web browser of choice.

Run Xampp on localhost


After Configuring XAMPP we are going to Install Wordpress.

STEP 2: Download Wordpress and  Copying the files to XAMPP

Got to Wordpress website and download latest version of wordpress(Download).

Then, in Windows, navigate to the folder where you installed XAMPP. For me, that’s C://xampp. It should be something similar for you. Then, in that folder, find the htdocs  folder.


Copy worpress file in to htdocs


In htdocs, Create a new folder with your desired name for e.g testsite and extract downloaded files.

Copy worpress file in to htdocs

STEP 3: Create a database for your Wordpress Website

Next, you need to create a MySQL database for your WordPress install. To do that, launch PHPMyAdmin from your XAMPP control panel:

launch PHPMyAdmin from your XAMPP control panel


Now create a new database by clicking on Databases Tab. Choose the database name for e.g testsite and click on Create.

Now create a new database

STEP 4: RUN THE WORDPRESS INSTALLER

When you visit your test site, you should see the normal WordPress installer. Remember, your test site is just http://localhost/FOLDERNAME.

Run the wordpress setup




The only step where this process will differ from a normal install is the database details. When you get to the database details, enter them like this:

  • Database Name = Name of the database you created in PHPMyAdmin
  • Username = “root”
  • Password = leave blank
Insert database name, username, password

Your are done, Now Run Your Website to check if it is working properly.

Run your wordpress website

No comments

Powered by Blogger.