There are different ways to install WordPress locally. Some of the popular ways are listed below. WordPress can be installed locally via –
- MAMP (Mac, Apache, MysQL, PHP)
- WAMP (Windows, Apache, MySQL, PHP)
- XAMP (Cross-platform, Apache, MariaDB, PHP, Perl)
- VVV (Varying Vagrant Vagrants)
Tutorials for the same can be found on their official sites or around the web (Google it). In this post, I’ll just cover one of the ways to install WordPress (which is by using MAMP).
For this, you’ll need to download MAMP and WordPress on your Mac computer. Next, install MAMP and run it.
Create a folder in your home folder, say wpdev and extract WordPress in there. Here’s how it will appear –

Next, open MAMP preferences, goto General tab and change the document root to the new folder we created, which is wp-dev.

Next, start all servers in MAMP (from the front/main screen which you see when you open MAMP).
This will open http://localhost:8888/MAMP/ in your web-browser. If it doesn’t, you can open it manually.
Next go to tools > phpMyAdmin > Databases. Enter a database name, say testdb1 and hit the create button.
Finally go to http://localhost:8888/wordpress/ where you will see a page to start installing WordPress. Go through the setup and enter the following database details when asked:

Once done, you’ll be asked for site details like site title, admin username/pass, etc. With that your WordPress installation will be complete.
Finally, you can access your site’s wp-admin dashboard at http://localhost:8888/wordpress/wp-admin/
That’s all! You have successfully installed WordPress on your local machine.