• Blog

    Installing MAMP and WordPress on a Mac

    Installing MAMP and WordPress on a MacMy internet went down for a few days recently. I needed to find a way to work on some WordPress projects locally without internet connection. Here’s how I did it.

    1. Download and install MAMP from here www.mamp.info and WordPress from here wordpress.org
    2. On your Hard Drive Go to /Applications/MAMP/htdocs and unpack the WordPress.zip folder in here
    3. Go to /Applications/MAMP and Install the dashboard widget by clicking on MAMP
    4. On the Mac widget you just installed click on the button that reads ‘Open start page’ which will take you to http://localhost:8888/MAMP/
    5. On this page find the line: The MySQL Database can be administrated with phpMyAdmin – click on this link
    6. Create a new database and call it ‘test-site-1′ for example
    7. On your hard drive find /Applications/MAMP/htdocs/test-site-1/wp-config-sample.php and rename it wp-config.php
    8. Open this wp-config.php file and change the settings to:
      define('DB_NAME', 'test-site-1');
      define('DB_USER', 'root');
      define('DB_PASSWORD', 'root');
      define('DB_HOST', 'localhost:8889');
    9. Go to http://localhost:8888/wordpress/
    10. You’ll be prompted to enter the details of your WordPress site

    Hey presto. You’re all set up to work on a local WordPress install.

    Credits

    Thanks to Chris Coyer for posting this #86 First Moments with MAMP
    Michael Doig for posting this Installing WordPress Locally Using MAMP
    and to Nick La for posting this Installing WordPress Locally

    Leave a Comment

    Let us know your thoughts on this post but remember to place nicely folks!