We have been talking about self hosted wordpress a lot, though many blogspot users still feel wordpress as alien platform because they are not familiar with it. To get familiar with wordpress, you can start by creating a free account on wordpress.com or you can install WordPress on your computer to test it on Local environment. Benefits of installing WordPress locally:
- Familiar with wordpress
- Familiar with database
- Make changes locally and then make changes on your online blog
- Local test platform.
To start with local wordpress installation, you need to download a software name WAMP. And also download Latest release of WordPress.
1 Install WAMP
In the PHPmail option while installing WAMP, leave it as it is
2. Now extract the WordPress.zip. Create a folder under C:\wamp\www name it as WordPress copy all the files and folders under WordPress folder in C:\wamp\www
3. Start WAMP and start all the services by left clicking on it in the task bar.
4. Open http://localhost/
5. Click on Phpmyadmin and create a database for your wordpress install.
6. Open http://localhost/wordpress and click on create a configuration file.
Now Enter the details as mentioned.
Database name : Database name you have created (wordpress)
Username : root
Password : Leave it blank
database host : Keep it default (Localhost)
Database prefix : Keep it default (wp_)
Click on Submit. On next screen click on Run setup
On the next screen add Blog title and Email. Search visibility will not matter here as we are working on Local environment.
On the next page , copy the password and save it. Click on login and login with the password in the screen and user name as admin.
Viola! You have just created a test wordpress environment for yourself. Now upload theme and do everything which you can’t try on your online server.
<Credit>
Still have any issue? Let me know and I will try to answer your questions.
If you find this post useful, don’t forget to stumble and tweet this post.





→
{ 45 comments… read them below or add one }
It is really great to have a local installation of Wordpress, for some new experiments. Whenever I have to do some changes on Internet Techies, I usually do it on my local copy and then load the entire changes to production.
This step by step guide is very useful for new serious bloggers, you making out a good collection.
I have adopted same methodology for years now. WAMP on my local to play around with customizations. Saves a lot of effort.
I one among those people who still feel wordpress as alien platform because I am very afraid of paying penalty in search traffic and other parameters. But i decided to change my blog from blogger to wordpress after seeing this awesome post, please help me in changing to new platforn
I am currently using Xampp to create a simulated environment , I will surely give this is a try, looks like a purely user driven without manual intervention which is required in XAmpp.
Problem I faced with Xampp is that i was not able to run it as windows service, i hope this can run in background as the windows service.
Thanks for sharing such a nice post.
As I am learning Wordpress and I have accounts in many free hosting websites like 000webhosting and x10hosting but they are full of errors and some of them disabled my account without any reason.
I really need this type of Local hosting.
Thanks harsh
Already tested this
woot that was so well explained, going to try this tonight. I was always looking for something like this to test theme modifications offline.
Nice post …..Good for new bees…to test in own pc.
Easy & Clean. I am just using this from days & prefer it over Xampp.
i hve tried using xampp but i get localhost error yaar
Really very useful info harsh… will help a lot in initially experimenting on the local machine and then hitting over the net.
I’ve tried installing wordpress using Xampp, but the problem is that .htaccess don’t seem to work ther… [not only for wordpress, i had this problem for all scripts using htaccess.]
due to this, custom perma links never works in xampp…
does htaccess work for WAMP?
Nice tutorial Harsh, this is a good way for a wordpress beginner to get more familiar with wordpress.
I haven’t Tested This!
I used xampplite for local Installation of wordpress..
and everything was working fine.. but once i installed ISI server in My Comp.. the default localhost(port number 80) was occupied by Microsoft.. so it used to redirect to diff path…
after searching for help, i got an answer that we are required to configure the port number other than 80 in config file….
does the same applies to wamp?
Typo, it is IIS Server (not ISI)
hi thanx for ur great tips but i hve one prob i have done everything right according to ur steps but wen i login from wordpress.com it showing my old blog and old themes and post its nt showing my orginal blog which i hve created using localhost/wordpress all the changes i hve made its nt showing on wordpress.com and and when i login from localhost/wordpress it doesnt show me my website address it shows link like this localhost/wordpress only so pls tel wat shuld i do?
Import your blog to local wordpress.
Very detailed, but I am using Xampp.
I have setup wamp and I was able to setup a new install of wordpress using wamp. How can I run my online blog (all files + database) on my localhost so I can work on it then upload new changes. I tried importing the database, but I can’t get the contents to load.
Thanks for your help.
Great howto on installing WP locally. The nice and big screenshots help a lot, making the step by step process very easy to follow. Well done.
It’s extremely useful and faster to handle the code before uploading. If you want some hacks for theMy SQL, installing Navicat or MySQL Query Browser may ease the work.
The problem I have is that I can“t save changes in header.php while working with wordpress localy in wamp. Why is that? Please help me
Great post! I’ve wondered about this, as I do a lot of coding on the move & travelling. Bookmarked & will be implemented
Useful post
I also use Wampserver to install it locally, very useful especially when you want to try plug in or create your own template. Thanks for this post!
Before seeing this article it was looking big trouble to install wordpress, but thank god it’s working now!
Really well written post!
i got lost at step 6? where do i find that?
Harsh
Many thanks for a clear and informative Tutorial. As a recent newbie of 3 months and playing with Wordpress I realised I had to do a local install to really test before going live with a launch.
I thought this was going to be a nightmare – not at all. thanks again and as a small compensation I bought a ebook through one of your links. Rik
this is the easiest wordpress-wamp tutorial ever!
I got following erros and can not login.
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\wordpress\wp-settings.php on line 520
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\wordpress\wp-settings.php on line 535
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\wordpress\wp-settings.php on line 542
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\wordpress\wp-settings.php on line 578
Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\xampp\htdocs\wordpress\wp-settings.php on line 18
/** The Database Collate type. Don’t change this if in doubt. */ define(‘DB_COLLATE’, ”); /**#@+ * Authentication Unique Keys. * * Change these to different unique phrases! * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/ WordPress.org secret-key service} * * @since 2.6.0 */ define(‘AUTH_KEY’, ‘put your unique phrase here’); define(‘SECURE_AUTH_KEY’, ‘put your unique phrase here’); define(‘LOGGED_IN_KEY’, ‘put your unique phrase here’); define(‘NONCE_KEY’, ‘put your unique phrase here’); /**#@-*/ /** * WordPress Database Table prefix. * * You can have multiple installations in one database if you give each a unique * prefix. Only numbers, letters, and underscores please! */ $table_prefix = ‘wp_’; /** * WordPress Localized Language, defaults to English. * * Change this to localize WordPress. A corresponding MO file for the chosen * language must be installed to wp-content/languages. For example, install * de.mo to wp-content/languages and set WPLANG to ‘de’ to enable German * language support. */ define (‘WPLANG’, ”); /* That’s all, stop editing! Happy blogging. */ /** WordPress absolute path to the Wordpress directory. */ if ( !defined(‘ABSPATH’) ) define(‘ABSPATH’, dirname(__FILE__) . ‘/’); /** Sets up WordPress vars and included files. */ require_once(ABSPATH . ‘wp-settings.php’); ?>
i installed WPMU on my WAMP.
So, how should i mange URL here which are managed by htaccess file ?
hey Anurag
I have not tried WPMU on Wamp.. Let me give it a shot sometime soon and I will come up with answer…
how about xampp?? did u tried harsh??
Suresh I worked with WAMP till now and still need to play with XAMPP.
Great Man, Keep up the good work!
Hmm and i am still having issues with this. Is it possible for you to hit me up on mail. I already wrote you on twitter.
Its very clear and simple explanation. I have tried and now installed the wordpress on my computer offline. Thank you for your guide.
Thanks a lot for excellent help step by step.
Used this tut just now Harsh.
Well written and serves well even today
Thanks mate
great tutorial. i was able to get everything installed with ease.
how do i get WP to recognize the new Pages I created on the localhost. i’ve published the new Pages via the Pages dashboard, but when I reload the site in a separate browser tab i get an error that the link is broken. Am I missing something?
A big thank you for you NICE AND CLEAN tutorial!!
There are hundreds of tutorials on this topic but none as easy to follow as this one!!
Thank You.
Thanks Mr. Harsh .I find this article very helpful.
Finally after so many efforts I got WordPress Installed on my PC.
Thanks Harsh , am already using LAMP on my ubuntu system , now just istalled wordpress using WAMP in my windows
Thanks for the nice and easy tutorial, work perfect first time, like all good tutorials and do not leave having to guest any of the stages, again like a good tutorials.
Thanks.
I’m short of words. But you’re the BOMB!!! You just saved me many years of confusion trying to install Wordpress locally. All these while, someone would help me with the installation. But now, I’ve done it myself for the first time, after about three years. In fact, you’re the man! I feel like I’m flying over the moon! Thumbs up for the expert! CCChhHeeEEEEErrrrRRRRRRRsssssS!!!!!!!!!!!!!!