Monday, June 17, 2024
HomeApple MacInstall Local Wordpress using MAMP

Install Local WordPress using MAMP

Installing a local version of wordpress is very easy using MAMP. In fact, the configuration and installation is quicker than downloading the packages. Let’s get started…

Previously I have described how to manually install wordpress and mysql locally on a leopard box. With a failed step or two, the manual installation can be ugly very quickly. MightQ suggested MAMP.

MAMP + WP on leopard is less graceful but much, much easier.

1. Download MAMP
2. While you are installing MAMP, Download WP
3. Mount the MAMP dmg and drag the folder into your applications directory. No not use a subdirectory.
4. You can turn on the mysql and apache servers through installing the widget into your dashboard or by clicking the MAMP application. Start the servers now.

5. Click the Open start page button
6. The Welcome to MAMP page should open. You should record your mysql information that will look similar to this…

To connect to the MySQL Server from your own scripts use the following connection parameters:

Host: localhost
[Port: 8889]
User: root
Password: root

7. Click the phpMyAdmin link at the top of that page.

8. In phpMyAdmin Create new database named “wordpress” (or whatever) and hit the Create button

9. Uncompress and place your downloaded wordpress installation and in a subfolder of your htdocs folder in the MAMP install. In the example below I used a folder named techrx. I will assume that you will use the name “blog” for the purposes of this tutorial.

10. In your wp install, right-click (ctrl-click) on the wp-config-sample.php file and open it in textedit (or your favorite editor of choice)
11. Change the config file to match your mysql settings above. If you named your database something other than wordpress, then use that name instead.

// ** MySQL settings ** //
define('DB_NAME', 'wordpress'); // The name of the database
define('DB_USER', 'root'); // Your MySQL username
define('DB_PASSWORD', 'root'); // ノand password
define('DB_HOST', 'localhost:8889'); //

12. Important to save this file to a new file named wp-config.php

13. Point your browser to http://localhost:8888/blog to start the initiation of your wp install.

(If you placed wp in a different directory, you would replace blog with the name you picked. I used techrx, for example.)

14. Record your temp admin password to log into your install. Change this login password to something easy to remember once you login.

15. Now when you visit http://localhost:8888/blog it should be pointed to your local wp installation.

David Kirk
David Kirk
David Kirk is one of the original founders of tech-recipes and is currently serving as editor-in-chief. Not only has he been crafting tutorials for over ten years, but in his other life he also enjoys taking care of critically ill patients as an ICU physician.


Please enter your comment!
Please enter your name here

Most Popular


Recent Comments

error: Content is protected !!