How to install and run wordpress site locally on our PC using Xampp.(Tutorial)steemCreated with Sketch.

in #utopian-io7 years ago (edited)

Xampp is a free and most popular Php development environment.It lets you create php project development environment on our local pc. And using this feature we can install and run wordpress site locally on our own computer.Running localhost has many advantages on any project developments.

In this tutorial, I am going to show you how to install wordpress locally using xamp. Please follow these simple steps.
image.png

Step 1: Download Xampp for your OS.

Download Xampp installation file suitable for your system fromApachefriends.org
apachefriends.org
View download for more specific file options.

Step 2: Install Xampp

Open the xampp installation file that you have downloaded to start installing xampp on your system.

If you have any antivirus running on your system it may show you the message like below in the screenshot. Click 'yes' to continue.

If you use windows 8 or above you can get the following message. Just click ok to go further.

Now you will get the following window, click on Next button.

Now you will get the following window with some installation options, where you can select which components to install.
For using wordpress, you can just select the same options I have selected below in the picture.And click on next button.

Select the installation folder and click Next.

Click on Next Button.


Click On Next button.


Click On finish button.

You have successfully installed xampp on your computer.

Step 3: Open Xampp

Locate the installation folder where you have installed xampp in the previous step and open the folder.

Locate xampp-control.exe file and open it.

Now you will see the following window. Those blue and black text means xampp is running well on your system. If you see some red texts then it means there are some errors while running xampp. Try to fix those errors before moving to further steps.

Click on that start buttons of Apache and Mysql Modules.

You will see the following window. Now move on to the next step for creating the database for your wordpress site that you are going to install later.

Step 4: Creating Database for Wordpress

Open localhost/phpmyadmin in your browser.You will see the following window.
Click on that New button to create a new database file.

Enter a name for your database and click on that create button.

Here I've named it wptest.
You have successfully created a database. Now move on to the next step to install wordpress.

Step 5: Download And Install Wordpress.

Download the latest version of wordpress from Wordpress.org.


Unzip the downloaded file and copy the whole Wordpress folder.

Locate htdocs folder.

Again go to xampp installation folder, find htdocs folder and open it.

Paste the previously copied wordpress folder here.

Rename the wordpress folder to the same name as the database previously created.

Here I have renamed it to wptest since it's the name of the database from the previous step.

Now Open the folder. Locate wp-config.php file and open it.

Locate these code as shown below. Notice those highlighted parts.

Now replace the highlighted parts above with the following.

database_name_here --> database name created previously.
username_here --> root
password_here --> blank

Using our database name it becomes like this.

Save the file.

Now open localhost/foldername in the browser.

Here foldername means, the name of wordpress folder that you have copied inside htdocs. In general, it is the name of database.
wptest in our case here.
You will notice the following wordpress installation window. Select your preferred language and click on continue button.

Now you will get the following window where you have options to set website title, username and password.

Enter your site title, set your username and password, enter your email address then you are ready to go.
Click on that install Wordpress button to finally install and setup wordpress in your local server.

Congratulations you have just successfully installed wordpress and created your new wordpress blog in your local server using xampp.

After completing installation enter your just created username and password to log in to your wordpress account.

Here's your wordpress dashboard.

From here now you can write and customize your wordpress project before publishing it online.

Check out your newly created homepage too.

I hope this tutorial will be helpful to install and customize wordpress site locally.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Flagged for using the steemgigs upvote service to vote on this post.

And how this is wrong? can you explain?

Is this a steemgigs post?

that bot is for steemgigs posts only?? Sorry I didn't know that. Saw the bot on discordapp and was using it. Won't happen again.
But you could have warned/ or alerted me first.

I'll remove the flag now that you understand. I flag immediately because I don't always get a response, and often when I do, people are so butthurt over a 2 cent flag that the conversation leads nowhere.

Thanks. I also understand that its necessary to keep platform clean.But I always expect some message kind of message/warning before any flag so that I can have a chance to correct my mistake that has been done without purpose.
I Hope you understand!😊

Thanks @katteasis
Can you please guide me as to how could I Link my domain to it.

Hello @premraval010, The purpose of doing this is to have an ability and flexibility to develop your wordpress project offline/ or on your local pc.
You need to upload it to your hosting server to get it live with our domain.
I hope you understand. Please feel free to ask if you need help installing(uploading) your wordpress site to the server.

I have already purchased a domain, and hosted it on a server. I will try out to upload it on my CPanel docs, I will contact you if I need any help.
Thanks for being there @katteasis.

ok!
Good luck!👍🏻

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @katteasis I am @utopian-io. I have just upvoted you at 7% Power!

Achievements

  • Seems like you contribute quite often. AMAZING!

Suggestions

  • Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck!
  • Contribute more often to get higher and higher rewards. I wish to see you often!
  • I introduced a competition factor. My vote is based also on how competitive the category used is.

Human Curation

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.030
BTC 64752.70
ETH 3455.13
USDT 1.00
SBD 2.50