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