How to Install WordPress on your PC
114WordPress is arguably the most popular and the best blogging platform out there. You might have installed WordPress on your site, but you might be scared to experiment with WordPress worrying that you could break your site and WordPress.
Experimenting is one of the best way to learn new things and if you break your site, you probably might not want your visitors to see the fault as it might leave a bad impression. So, it is necessary to have the ability to learn WordPress and try new themes, plugins and other items without putting it online where people can see.
So, the best solution is to install WordPress locally on your computer. It will save you quite a bit of time since you can just put your files inside your WordPress folder without having to upload it to FTP. You can do anything you want with WordPress without a worry which surrounds you when you put it online. The possibilities are endless. Here is a step-by-step instruction on how to install WordPress in localhost using XAMPP. I hope it will become a great use to you.
1. Go to the official XAMPP website. We are going to use XAMPP as it is one of the best Apache distribution containing MySQL, PHP and Perl. It is very easy to install and use.
2. Select your operating system and which format you want to download. You can either choose a zip or a exe format. I would recommend the .exe file. There are also portable version such as XAMPP lite, but using XAMPP is just fine for what we need. There are also add-ons available such as Tomcat, but it but they’re not necessary for our use, may be something you want to experiment with at a later date though!
3. Open the installation file and you will be presented with a window. In, the destination folder, choose your destination. “C:\” is recommended. Click install to start the installation (Won’t take more than a minute or two!)
4. When the installation is almost done, an MS-DOS window opens, You might think you have to type a bunch of codes, but that’s not the case. This window just helps you set your preferences. The answers are just yes and no.
First question it will ask you is whether you should add a desktop shortcut. Type “y” for yes and “n” for no.
5. The second question it will ask you is whether you want to locate the XAMPP paths correctly. Type “y” for yes. I would recommend saying yes because XAMPP usually locates the paths correctly for you, much easier!
6. The third and last question it will ask you is whether you want to make XAMPP portable or not. You can choose which ever one you want, but i would recommend saying no if you aren’t going to be making use of the portable functionality (We won’t be in this tutorial) because it makes it easy for us to see the path such as C:\ and easier in the browser.
7. After this is done, XAMPP starts configuring and you will see this appear in the window. Press Enter and XAMPP will have been correctly installed in your computer.
8. Go the the destination folder you gave (such as C:\) and look for “xampp-control” and open it. Now that XAMPP installation is complete, it is time for us to start using it.
9. You should see this open up. This helps us specify which services we want to start.
10. Click start on “Apache” and MySQL. They are services required for running WordPress. XAMPP uses port 80 as a default port, so if you have any issues, try making sure no other programs are using the port (Skype occasionally tries it). It will say “Running” next to the modules if they are started. The others don’t need to be started.
11. To check if XAMPP is working, open your browser and type “http://localhost/” and you should see this. Yes! we are good so far. Choose your language for the list.
12. After that, you should see a page saying that you have successfully installed XAMPP on your system. Hoora!
13. Now that we have successfully installed XAMPP, it is time to get WordPress. Go to wordpress.org and download WordPress. Extract the folder.
14. Now, the steps get critical. Make sure that you do these steps carefully or the installation of WordPress probably won’t work. Go back to XAMPP folder (C:\xampp) and go inside a folder called “htdocs”.
15. This is where we are going to put the WordPress folder. Copy the wordpress folder that you extracted and put it inside the “htdocs” folder. Note: Make sure that when you copy the WordPress folder, not the folder above it such as “wordpress-2.9.1”
16. We need a database for WordPress so that we can install it in our computer. Go to your browser and go to localhost (http://localhost/) and click on phpMyAdmin and you should see a page like this.
17. We need to create a new database for WordPress. Look for the “MySQL localhost” section and you should see some boxes, and on top it says “Create new database”. That is what we need.
18. On the box on the left, your will enter a database name. You can name it whatever you want. I will call it “wordpress_test”. Then, on the next box, your will see a list of options. Scroll to the end and select “utf8_unicode_ci”. We are going to use this option because it supports expansions and ligatures. Click Create.
19. You will be notified that the database “wordpress_test” has been created.
20. Now, go inside xampp/htdocs/wordpress (for example C:\xampp\htdocs\wordpress) . Then, we need to setup up wp-config. This is to configure wordpress to fit our database, username etc. Many people are familiar with this step.
22. Rename the “wp-config-sample.php” to “wp-config.php” so WordPress will recognize your config file (Depending on how you’ve set up Windows, the .php may or may not be displayed. If wp-config-sample doesn’t show it visibly, don’t add it on to the wp-config when you rename it). Open the file you have just renamed (wp-config) with your favorite text editor (e.g. Notepad, not Microsoft Word!).
23. Now you will need to change these parts of the wp-config.
24. So, inside the DB_NAME to the right you will see ‘putyourdbnamehere’. That is where we will put our database name. Delete the putyournamehere (without deleting the apostrophe) and put “wordpress_test” (remember that is what we called our database in phpMyAdmin).
In the same way, put “root” in the DB_USER part. Then on the next part (database password), leave it blank, since we haven’t set a root password for our MySQL.
We will also not change any part of the DB_HOST because localhost is what we want and it is already localhost. This is just a test site, so no other configuration is needed here. Now, we are done with the configuring. It will be easier to understand what I am saying by the illustration below.
25. Save and close the file (wp-config.php). Next, open your browser and go to “http://localhost/wordpress/”. Hooray! It worked. You will see this screen and once again, many people are pretty familiar with this process. Put your blog title and email and click “Install WordPress”
26. Success! You will be notified that WordPress has been installed. You will get your username and random password. Copy the password and click “Log in”.
27. You are now in the login page. The username is admin and paste the password. Don’t worry about memorizing the password as we will change it.
28. Success again! We are in the wordpress dashboard. The very first thing you might want to do is change the password. On the red bar, click on the “Yes, Take me to my profile page”.
29. Scroll down and change your password, then update profile.
30. Yes, now you are all set. When you go to http://localhost/wordpress. You should see your blog with the default theme Kubrik.
31. You are done. There are a few other things I would like to remind you. In the XAMPP Control Panel , Apache and MySQL have to be running. You don’t need FTP to change stuff in wordpress. Just go inside xampp\htdocs\wordpress and change everything there. For example, if you want to add themes, just go inside wordpress\wp-content\themes and put your themes there.
32. There you go. That wasn’t too hard. You can now master WordPress without worrying about breaking your website and you will also save some valuable time. Go celebrate!
Then, come back and you are free to experiment with WordPress any way you like. Try out new posts, themes, plugins and explore the wonderful world of WordPress.
If you have any problems or want to ask a question, feel free to comment below. I will try my best to answer your questions.
I would also appreciate it if you commented what you are going to use WordPress in localhost for. I hope you enjoyed this post!
Enjoy this post? You should follow me on Twitter!
i recently decided to start my own blog, i haven’t gotten it very far off the ground yet, but when i saw the default them i almost wanted to vomit. So i currently have installed wordpress on my localhost so that i can experiment with creating my own themes without affecting the live site. i must say the first time i installed wordpress locally it was a bitch, i tried a few different ways, I by far like xampp the best as it is easiest to do, however it was the first one i tried and i had problems after a point in the instructions. I must say your instructions are much clearer and easier to understand that previous ones used. I’d recommend this tutorial.
Glad you enjoyed the post. The default theme really isn’t very nice. They creating a new one this year that looks much better, but to be honest, it’s still going to be a default theme. Worth experimenting with something better anyway.
I use MoWeS Portable and i find it very useful, powerfull and very simple to use. For my needs better and faster as XAMPP, sure only a personal view.
Here is the link to MoWeS: http://www.chsoftware.net/en/mowes/mowesportable/
I hadn’t heard of MoWeS before, but the description on their homepage sounds cool. Thanks for sharing! :)
Just set everything up using your tutorial. If you didn’t post this I wouldn’t have done it.
Thanks a million!
That’s great Melvin, it’s always good to hear when someone has actually worked through a post! Hope it comes in handy! :)
Nice, thanks for that refresh on manually installing wordpress. It’s not as hard as the documentation makes it out to be.
It’s fairly straightforward, but it can seem daunting. The screenshots above cover literally every step, no room for anyone to get lost! :D
I have been using WAMP to develop in WordPress for a while now! I couldn’t live without it! Testing and developing on your live site is risky at best, you could end up taking down your entire site and causing yourself a major embarrassment. I always test any changes to php files or plugins on my own server first. I also use it for testing htaccess rewrite rules. It may have been useful to mention how to set up mod-rewrite in apache too!
I’m the same (WAMP is the same one I use as well to be honest). Plugins and .htaccess are one thing I’d definitely test there. Anything that can break your site needs to be tested.
I tried XAMPP several years ago but I’ve been using WAMP ever since. I love WAMP and use it all the time for development and various pet projects. Plus it keeps the clutter out of my hosting server.
Man! This post is excelent.
It is the better tuto that I say.
Congratulations!
Thanks guys! I feel happy that you like my post.
Thanks for the post. I’ve recently moved into a web development role with the company I work for. I got it with only having a small amount of coding experience. But it’s all good because I get taught everything I need to know along the way – PHP, MYSQL, Javascript, JQuery, Ajax – all of it. It’s a really great opportunity. So as I start learning I want to be able to practice at home and then really start kitting out my wordpress website!
I also want to be able to create plugins eventually.
Ah, miles of coding ahead of me. Love it! Really!
Hello I was wondering once you create a website you are going to be proud of. Is there a way to transfer the website you make with xampp to a real host via ftp is there a tutorial on that or is it simpler than think any help would be appreciated
I am currently having XAMPP and few prototypes of some of my blogs there.
I know wordpress.org says how to move a blog to a live server or different one, but it would be great if it can be included here or in another tutorial related to this one :).
I like that Xampp gives me the opportunity to test stuff, since I am really picky about theme look fonts and etc, and making all of those changes on a live site sometimes gives the user a bad experience.
Thanks guys!
It’s great to have a test environment for you blog.
Besides performing a fresh WordPress installation, I think that everyone who already has a live blog, should perform a backup of it and install it locally as well.
The possibilities are endless as you say, and after cloning your own blog you are able to test everything and see the how it works for you, before doing the changes in your live blog.
Thanks for this post I have learned a lot from it. Is xumpp just like cpanel?
Cpanel is a webhosting tool that lets you manage some common settings (Like creating email addresses). xamp will set up the basic webserver for you, but it won’t have some of the cpanel features unless you add them (like monitoring how much space you’ve used, setting up emails, cron jobs etc.)
For setting up WordPress though, you won’t need anything other than what we’ve talked about above! :)
Is installing wordpress on your own pc safer?
It’s safer in the sense that you can test everything locally before you test it online. Aside from that, it won’t influence your server one way or the other.
Hi sogeking
I have a local install of my live site on my PC and it is brilliant!
The local install uses XAMPP for all the Mysql, PHP etc.
I write all my posts on the local site and then just cut and paste into my live site.
I also experiment with plugins to make sure that they work OK and I know how to configure them.
And best of all… I can mess about with my theme’s stylesheet and see what it looks like.
Lots of saving on bandwidth when you do all this on your local site.
The way you have laid out your tutorial is fantastic… must have taken you ages – thanks.
Thanks for liking my article!
Hey man! Thanks for this tutorial. This will be very helpful for new.
thank you so much for this tutorial // this is something i’v been thinking about doing for a long time, but thought it might be too complicated // you broke it down in nice easy chunks && did a great job documenting the whole process step-by-step. // THANK YOU !!
I often use WAMP rather than XAMPP for local web server.
I think you should post how to install WordPress MU because a lot of people still confusing how to install WP MU.
Thanks for this great information :)
Yes, It’s better doing experiment in your computer than on your site. It may effect your SERP …
well, i feel like a big dummy . . . i got as far as creating the database (even named it the same thing), changed the wp-config.php file and i get ye olde db error “Error establishing a database connection.”
any other information i can give you to help me troubleshoot?
ahhh . . . big dummy forgot to blank out the PASSWORD area! thanks! i figured it out all on my own! :)
Is setting this up any easier on Mac? Is the process similar?
I have just begun to realize the power and potential behind working in WordPress vs. creating everything from scratch as I have in the past.
As a newbie to WP, I wanted to be able to experiment locally before posting; with the security of knowing I could muck-about, make backups along the way, and finesse to my heart’s content.
sogeking, my heartfelt thanks for one of the best step-by-step tutorials I have ever followed. Everything worked at each step; and the image-guides added that extra ounce of clarity and verification.
Had I tried to accomplish this on my own; I would have been scared stiff and bailed round about the time the MS-DOS panel started asking questions.
Thank you.
This is all well and good guys but why not use this?
http://www.microsoft.com/Web/
:D Takes minutes to set up.
An easier way to get a running local test version of WordPress is Bitnami
http://bitnami.org
You have the choice between local install or virtual machines (I prefer the VM’s) Support for miltiple Operating Systems (Linux, Windows, Mac)
this is really swell thanks for posting just finished installing everything
I was read and applied this tutorials for my laptop. This help for me if I want to changes themes and before use for my real blog online.
Thank’s for this tut…
It’s really nice
The link in first point is not working. Fix it . Nice article very helpful.
Now, you can check. It is working properly.
The XAMPP is a very very good tool for localhost.
Yah, I think. But I am also using aphachi.
Nice. Of course I go with the traditional WAMP (Windows Apache MySQL PHP) setup, but this is still a good idea for a lot of people.
As part of a reading requirement in a ‘Graphics for Web’ class I am currently taking, your story of ’40 Creative Navigation Menus’ led me to you the WordPress link.
I think your explanation was very clear and easy to follow, even for me, loading it onto a Mac. :) I haven’t tried out WordPress but, this give me an opportunity do to so and get a little creative with it.
Thanks for the post.
Thanks for this tuto ! I never success to install a local server before… THANKS !
Thanks for the guide! I am sure this will help me when I am offline needing some time testing out some customization with my blog, or when I am not near internet!
Great tutorial! I’ve been wanting to redesign my blog for a long time, but had no idea how to move past ready-made themes. With this tutorial, and one of the frameworks, and your site, I’m ready to dig in and start learning! Thanks!
I have been using easyphp as it is less in size and have every thing that is needed to run wordpress in pc.
thanks a lot buddy, i was trying to install WP on my local system but was unable but after reading this post i have installed it successfully….
Thank you for your help ;)
Nice, thanks for that refresh on manually installing wordpress.
I have already used XAMPP for developing PHP, but I couldn’t work with wordpress with XAMPP. This article helps me too much. Thanks for writing this article.
Love it! Very useful.
This is http://goo.gl/poop :P
This is a great post. I’m just starting into web development, and this gives me so much more freedom to explore. Thanks!
Good writing, cheers!
thank you,It is very good!~I am Chinese
Want to whip up another one of these for Macbooks!?…Or is it the same process? :)
I am struggling from a couple of days. This post really helped me.
thank you for sharing this post… ;)
Hi Sogeking
I want to have a copy of my live WordPress site on my PC so I’ve just downloaded and installed XAMPP – how easy is that!
Presumably I then…
1 – FTP my live site into a WordPress folder inside htdocs.
2 – Create a MySql database using phpMyadmin – database name the same as in my wp-config file.
3 – import database tables from my live site into the database on my PC
I suspect that a lot of readers would love a copy of their live site on their PC – perhaps you could consider doing a follow up post showing the steps.
It was helpful for me, thanks!
I’m just starting into web development!!!!!
Thank you for a great tutorial. It’s a demo to success!
It’s as short as possible and as long as necessary.
Moments later you have the latest version of WordPress running on your computer.
Can it get any better?
Due to error messages I had to uninstall and repeat the process. I learned that the uninstall will not be complete with just deleting the subdirectory. Rather you’ll have to use the uninstall batch file.
To develop PHP programs I’m using XAMPP in connection with NetBeans and Xdebug. Together with WordPress they make a great team of free tools.
As the old adage goes: A fool with a tool is still a fool.
Thank you for helping us to make good use of even a set of tools!
Hi Guys
I had this runnining like a dream, the next day when I started the control panel the Apache would say running then stop. Anyone have any ideas
can someone tell me how to completely uninstall xampp so i can do a new install as i find the uninstall leaves some things behind.
goo.gl/poop redirects here?
Excellent straight forward guide! I’m using this to build a persaonal travel/photo blog page. Thanks again!:)
I never thought that you can install WordPress locally on your computer! I used to do the uploading thing and its quite time consuming. Now I know what to do. Thanks for the idea.
Some posts are very dry and hard to read, yours has been very well written and informational!
Good guide!
But I don’t like XAMPP, Denwer, etc — prefer to install Apache, PHP and MySQL from the original distrebutive, it’s not very difficult, but more proper, imho :)
This a informative great post by the author hope to come back more really soon.
Error establishing a database connection
I was try everything but I can’t open it ,
I’m using WordPress 3.0.1
Error establishing a database connection
I was try everything but I can’t open it ,
I’m using WordPress 3.0.1
Sorry for spaming i figured it out , its excelent tutorial and thanks for this
Best you should change the webpage subject How to Install WordPress on your PC | Pro Blog Design to something more better for your blog post you make. I loved the post all the same.
GREAT GREAT HELP!
Starting my own travel blog in a few months when I go backpacking and this is a really great help on helping me getting to grips with wordpress features!!!
Thanks again!
I have just completed the installation of WordPress on my PC by following your instructions.
It was a breeze!
Many thanks for your guidance.
Hy,Good information and correct on the point. I do not know if it is really the best place to ask but do you guys have any ideea where to utilize some expert writers? Thanks
usually I always used blogger and multiply..
i must try worpress.. thanks for yor share….
usually I always used blogger and multiply..
i must try worpress.. thanks for yor share….
Thanks for this tutorial! My local WordPress is working!!
How to publish it online after building it on wamp I mean the database and changing the path thanks
Hi,,,,,
I liked the subject and i need to request for help if possible…
After installing wordpress latest version successfully this what is appearing to me and i dont know how to get out of it to see WordPress Welcome screen directly….
Please Advice
Index of /wp
Parent Directory
index.php
license.txt
readme.html
wp-activate.php
wp-admin/
wp-app.php
wp-atom.php
wp-blog-header.php
wp-comments-post.php
wp-commentsrss2.php
wp-config-sample.php
wp-config.php
wp-content/
wp-cron.php
wp-feed.php
wp-includes/
wp-links-opml.php
wp-load.php
wp-login.php
wp-mail.php
wp-pass.php
wp-rdf.php
wp-register.php
wp-rss.php
wp-rss2.php
wp-settings.php
wp-signup.php
wp-trackback.php
xmlrpc.php
Rename : wp-config-sample.php to wp-config.php
then edit wp-config.php in notepad as described above :
define(‘DB_NAME’, ‘the name you gave your database you created’);
/** MySQL database username */
define(‘DB_USER’, ‘root’);
/** MySQL database password */
define(‘DB_PASSWORD’, ”);
/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);
Thank you for your article is wonderful
thax alot for this.
hi 5
I followed everything perfectly through step 24, but . . .
25. Save and close the file (wp-config.php). Next, open your browser and go to “http://localhost/wordpress/”.
It didn’t work! What could possibly be wrong?
Thank you for your article is wonderful..
Localhost’da better to make changes, I think,
When the problem can be corrected, when you make your site your site scans Google bots
hello pro blog….how to get default images on the sidebar as in ign.com…for every game, the game cover changes with its description…i too want to add that ..can u help me??
for example go to
http://pc.ign.com/articles/115/1151505p2.html
in the sidebar you can see the game details..how to get those details with the picture??
thanks..
-game1.in
It would be pretty useful to have wordpress on my PC. However, I think I would get too frustrated trying to follow the steps.
You might want to check security with these local servers – which are must-haves of course.
Clicking “Security” in Xampp will let you set up passwords and such. Who cares since it is only a local server? Who told you that? ;) I think you should search for how to comment out which port server is listning to. Default will be 80 (fairly sure it is) and so the server is really a true server and open to internet access.
#Listen 80
Listen 127.0.0.1:80
will tell it do only care about local connections. This is done in httpd.conf file, there is probably also one for SSL. Also relevant for those with dynamic IP.
With Xammp it is of course also even more important to be on top of things with FTP server. If not sure of how to don’t install.
I use The Uniform Server but they are more or less identical in function.
Forgot to say that if passwords and permissions for every relevant part, Xamppl will check this in “security” is top notch then go ahead and run a real server. Is no more insecure than others. Problem is most skip this or just go 123456 etc. Doing that AND not hiding server from internet can open the door for problems :)
Once you install WordPress on your PC, it will be much easier and safer to start creating your own themes too.
Neat tutorial! Simple and best….
Thanks… really helped
Thank you very much for this tutorial. I purchased a new theme, but didn’t know how to change things seamlessly.
Thanks again. Your information was so perfect.
Rene
Very interesting. thank you for sharing! You see, I’m currently working on my blog on similar subject to “How to Install WordPress on your PC | Pro Blog Design” and I might quote this post in it. I hope you don’t mind
Thanks a lot 4 the Topic… I try and it works … ; )
Definitely imagine that that you stated. Your favourite reason appeared to be at the internet the simplest thing to be mindful of. I say to you, I definitely get annoyed at the same time as other folks think about worries that they just do not recognize about. You managed to hit the nail upon the highest and also defined out the whole thing with no need side-effects , people could take a signal. Will probably be again to get more. Thank you
isgood
thank you helped me a lot =)
ServerPress.com has Mac+Windows fork of XAMPP that does WordPress in a few clicks.
thansk for taking me by the hand and showing me how to instal this locally…BUT please tell me…i have created some pages, and the pages only display one by one…i mean…thee is no link to pages on my home page…is ths because this program is installed on my pc and not designed straigt on the web? thanks for any comments,
Aloha, I found your blog on Bing Weblogs and think it is pretty intriguing and delivers fantastic material. Thank you regarding this superb post, I will certainly promote this on Twitter. Have a pleasant day.
Get upset! Simply letting the quota happen isnt acceptable. Generally this will allow you to take the inititive to make things happen.
Bonsoir vous que pensez-vous de mon nouveau site sur le diagnostic immobilier?
I have installed wordpress using xampp,but have some quries.1>Since,I have installed wordpress localy on my pc will other users on internet be able to acces the content of my blog?2>If not, then How to i can make my blog available for others.3>I dont want to change the wordpress domain,and want to change the url address and site adddress from localhost/wordpress to something else like xyz/wordpress.How can i do this.?
Brilliant! I’ve followed your instructions step by step and I’ve succeeded.
Congratulations! I could not have installed wordpress on my home computer without such clear and helpful instructions. I shall be keeping them for future reference.
Thank you from Pitlochry in Scotland.
Hello,
I am able to install a wordpress version locally but I already have a wordpress version online running and I would like to bring that version locally without having to rebuild the whole thing and connect both by ftp for easy updates.
So i tried just copying the online files to my computer but it just don’t work give a 404 error.
What should I do?
thanks
The install went great, however now when I try to log in “localhost/wordpress” I get this error:
“Error establishing a database connection”
Can anyone suggest what might be the problem?
This is nice wonderful, I successfully installed it.
I tried to a new web site not like in the tutorial “wordpress”. I created a new folder in xamp/htdoc/healthcare, created a database named ‘hcare’ and rename and configure the wp-config-sample.php but it is not working. giving a message object not found.
Help me please!
Thank you for your step by step instructions to install WordPress on my PC. Made it very clear and easy.
Very much appreciated.
Best regards
Stephen
Thank you so very much for the step by step instructions. Now I can learn the ins and outs of WordPress as I have never used it before.
Thanks so much for this. i am a novice and these were very easy to follow instructions and it went very smoothly!
thanks for the directions. i haven’t heard of XAMPP before. I normally install it on wordpress hosting at motherlessgoat.com, but I will bookmark your page and see if I can do it on my pc. can you install it the same way on a mac too?