How to Install WordPress Locally on your Computer

Ankit Kumar

is a young blogger from Mumbai,India who loves internet and blogging.He is a student and pursuing engineering.

You may also like...

30 Responses

  1. Ramkumar says:

    Very good tutorial with alot of screenshots illustrated. I regularly follow edting the wp-config-sample and renaming it, never knew the newer version came up with options to enter them directly.

  2. Mahender says:

    Hi Ankit very good article. I am following this, but at 10th step when i am Clicking “admin” beside MySQL it is not displaying any window like this article. what to do. waiting for your reply.

  3. TechGopal says:

    i have already installed wp on loacal host
    i just create datatbase then copy my contents to htdoc & finall use username as root….
    i will also try u r method next time ……

  4. vishnu says:

    so u mean to say u host dohack in ur computer? :D?

    • Ankit Kumar says:

      Ya for testing and changing code or even when I’m installing new plugin.Through this i can test new themes in less time.

  5. Arup Basak says:

    Done, and Thanks for this very useful post.
    +1’d this. :D

  6. Alapati Amarendra says:

    I failed at 7th step!!! At phy place admin is not highlighting. Help me

  7. Tom Murphy says:

    Well I got mostly through the tutorial.. but once I got to step 10 I’m dead in the water.

    Seems I don’t know the correct login or password.  I tried root and pma and my own name as the login and various different passwords that seemed obvious.. but no combination worked.

    If I put in my name and no password I get to a phpMyAdmin screen and then when I click on Databases it tells me Create New Database – No Privilege .

    If I put in my name and the password I created in an earlier step I get a pink bar that reads: “can not log into the MySQL server”

    Any help or suggestions would be greatly appreciated.

    By the way, I have searched google high and low to find out how to create privileges.. but no luck

    Thanks

    Tom

    •  Hello tom, I think you have not created password and id for your phpmy admin. So to create it visit http://localhost/security/xamppsecurity.php and then set you id and password.
      And now open phpmyadmin using those id and password.Then create a database and edit WP-config file as mentioned above.
      Hope this will fix your problem.

      • Tom Murphy says:

        Nope Ankit, that does not seem to be the solution either.  

        When I went into 
        http://localhost/security/xamppsecurity.php it shows me as the user ROOT… which I can not seem to change.  I gave it a password as requested and also assigned a username and password to XAMPP as that window appears to ask for/allow that as well.  

        By the way, when I look at the STATUS (screen 9 above) it shows the MySQLdatabase as ACTIVATED as opposed to your example where it shows it as DEACTIVATED.  

        When I try to login to phpMyAdmin I use the username of ROOT and my password and I get a pink box that says “Cannot log in to the MySQL server.  

        I am suspecting that the problem may be the fact that the server is ACTIVATED… but I don’t see the option to deactivate it.  

        I’ll keep looking.. but am hoping that you will come back to me with some more guidance/instructions.  

        Thanks.
        Tom

      •  @5bc5e087df7eef0b98fbaf372d277358:disqus I would suggest you to uninstall Xampp and then reinstall and proceed step by step as above written. It will work then sure.And this time keep username as root only for phpmyadmin and then edit wp-config file accordingly.

  8. Tom Murphy says:

    Well I got mostly through the tutorial.. but once I got to step 10 I’m dead in the water.

    Seems I don’t know the correct login or password.  I tried root and pma and my own name as the login and various different passwords that seemed obvious.. but no combination worked.

    If I put in my name and no password I get to a phpMyAdmin screen and then when I click on Databases it tells me Create New Database – No Privilege .

    If I put in my name and the password I created in an earlier step I get a pink bar that reads: “can not log into the MySQL server”

    Any help or suggestions would be greatly appreciated.

    By the way, I have searched google high and low to find out how to create privileges.. but no luck

    Thanks

    Tom

    •  Hello tom, I think you have not created password and id for your phpmy admin. So to create it visit http://localhost/security/xamppsecurity.php and then set you id and password.
      And now open phpmyadmin using those id and password.Then create a database and edit WP-config file as mentioned above.
      Hope this will fix your problem.

      • Tom Murphy says:

        Nope Ankit, that does not seem to be the solution either.  

        When I went into 
        http://localhost/security/xamppsecurity.php it shows me as the user ROOT… which I can not seem to change.  I gave it a password as requested and also assigned a username and password to XAMPP as that window appears to ask for/allow that as well.  

        By the way, when I look at the STATUS (screen 9 above) it shows the MySQLdatabase as ACTIVATED as opposed to your example where it shows it as DEACTIVATED.  

        When I try to login to phpMyAdmin I use the username of ROOT and my password and I get a pink box that says “Cannot log in to the MySQL server.  

        I am suspecting that the problem may be the fact that the server is ACTIVATED… but I don’t see the option to deactivate it.  

        I’ll keep looking.. but am hoping that you will come back to me with some more guidance/instructions.  

        Thanks.
        Tom

      •  @5bc5e087df7eef0b98fbaf372d277358:disqus I would suggest you to uninstall Xampp and then reinstall and proceed step by step as above written. It will work then sure.And this time keep username as root only for phpmyadmin and then edit wp-config file accordingly.

  9. Shekhar says:

    Nice tutorial . informative and accurate.

  10. Shekhar says:

    Nice tutorial . informative and accurate.

  11. Tom Murphy says:

    Voila !!  I think I’ve got it.

    Your tutorial was most helpful.  I did a few things wrong, but that was because I was not doing EXACTLY as the tutorial said.  My bad for not following step by step.

    Thanks Again !!

    Tom

  12. Tom Murphy says:

    Voila !!  I think I’ve got it.

    Your tutorial was most helpful.  I did a few things wrong, but that was because I was not doing EXACTLY as the tutorial said.  My bad for not following step by step.

    Thanks Again !!

    Tom

  13. MZ says:

    As a newbie, your detail post was very helpful and was able to install WordPress locally as assume domain. I have a question, If i need to add another domain or want to change name of domain, how can i do it??

    Thanks again and keep up great work.
    MZ

  14. MZ says:

    As a newbie, your detail post was very helpful and was able to install WordPress locally as assume domain. I have a question, If i need to add another domain or want to change name of domain, how can i do it??

    Thanks again and keep up great work.
    MZ

  15. piyush says:

    wow its really good……… i will try it to use it on my computer…:)

Leave a Reply

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


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>