How to Locally Install WordPress on your Mac

Installing WordPress is one of those tasks that can be a little scary the first time. In this post we’ll walk step-by-step through the process to complete a local install of WordPress on your Mac. The process relies on some Mac-specific features, but some of the steps are shared with doing the installation or Windows, or a hosting account.

Having WordPress installed locally is essential for being able to make sensitive development changes without having to worry that you’ll break a live site. If you’re trying to get out of the habit of cowboy coding, this is the first step!

  1. Install MAMP if you haven’t yet. If you already have MAMP, open it and click “Start Servers.”
  2.  Download WordPress.

    (click to enlarge)

  3. Unzip your WordPress zip download and drag the folder into your “Sites” folder. (Or whatever folder you set up as the “Document Root” when you installed MAMP. Setting info is located under  “Preferences > Web Server.”
    install-wordpress-2

    (click to enlarge)

  4. In MAMP, click “Open WebStart Page” which will open a MAMP page in your browser.
    install-wordpress-3

    (click to enlarge)

  5. In the MAMP browser window that pops up, select “phpMyAdmin” under the “Tools” drop-down.
    wordpress-install-4

    (click to enlarge)

  6. In phpMyAdmin, you’ll create new database for this WordPress installation. Click the “Databases” tab and create a new database by typing in a name — remember it for later — and clicking “Create”.

    (click to enlarge)

  7. In your browser, visit http://localhost:80/wordpress. (Assuming your MAMP is serving on port 80, and you put WordPress in the wordpress folder.)
  8. Select your language and click “Continue.”
    wordpress-install-7

    (click to enlarge)

  9. We know our database details and already created the database. So we’ll click “Let’s go!” on the next screen.
    wordpress-install-8

    (click to enlarge)

  10. Enter your database details and click “Submit”.
    Database Name: your database from step 6 (mine was "wphp")
    User Name: root
    Password: root
    Database Host: localhost
    Table Prefix: wp_
    wordpress-install-9
  11. Click ‘Run the install”.
    wordpress-install-10

    (click to enlarge)

  12. Enter in the requested information: site title, username, password, and email. Because this is a local install and is only available on your computer, don’t have to worry too much about creating a secure password. Then click “Install.”

    (click to enlarge)

  13. You did it! Click “Log In”. You’ll be directed to the familiar WordPress login page, which should be located at http://localhost/wordpress/wp-login.php. Make sure you bookmark the URL so you can easily log in in the future.
    wordpress-install-12

    (click to enlarge)


Add a Comment

Your email address will not be published. Required fields are marked *