Search for the Article

How to install WordPress on a local computer?

Setting up a local WordPress development environment might seem like a lot of work, but developing a site on your local machine can become a crucial part of your development workflow. It'll not only make you more efficient, but you'll be able to build a site without the worry that something will break.

Benefits Of Local WordPress Development

  • You can learn WordPress development without owning any domain or hosting.  
  • You can test themes and plugins on you local computer without working on actual website. 
  • With a local copy of your site, you can try out as many themes and plugin combinations as you want without risking taking your live site out due to incompatibilities.
  • Independent of an online connection.
  • High performance/low cost.
  • Update safely.

Here are the simplified steps on how to install WordPress on a local computer:

  1. Download & Install a local server (PC:XAMPP ❤️, recommended or WAMP, Mac: MAMP).
  2. Start apache and My SQL server.
  3. Open your browser & type localhost in URL bar, You would get a message of successful installation.
  4. Now type localhost/phpmyadmin in URL bar Create a new database.
  5. Download WordPress from wordpress.org and extract the files to a new folder under the htdocs (C drive-xampp-htdocs) folder.
  6. Now, access the local website by visiting this URL (localhost/(Your Folder Name)/), & continue.
  7. Open the wp-config-sample file in editor and change the data base DB_NAME, DB_USER and DB_PASSWORD.
  8. Done!
2. Start Apache and MySQL
2. Start Apache and MySQL




3. Open localhost on your browser, you got a message of successful installation


6. Access the local website, in my case folder name where I extract wordpress file is myfirstwebiste.

4. Create database