• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WriteNowDesign - Wordpress and Ecommerce Website Design

WordPress, Joomla, Ecommerce Website Design

  • Home
  • Prices/Packages
  • WordPress
  • Services
  • Portfolio
  • Blog
  • About
    • Testimonials
    • Locations
    • Online Payment
  • Contact
  • Show Search
Hide Search

Call 303-907-6133 Email

How to Install MAMP on a Mac

October 30, 2012 by Pat Fortino

  • Click Create. phpMyAdmin displays a message stating that a new database has been created.
  • For WordPress, open the wp-config.php file and enter the new database credentials.
    Username: root
    Password: whatever you set it. You can reset the password in the MySQL tab of MAMP.
    Host: localhost
    Database: Use the name of the database you just created.
  • For Joomla, open the configuration.php file in the website root and enter the database credentials; same as in previous step.
    Also, you need to edit the $tmp_path and $log_path to add the path to your website folder. For example, if you put the website folder in the Sites directory in your own user account, then the path is
    /Users/[user-name]/Sites/newsite/logs and /Users/[user-name]/Sites/newsite/temp
  • Import the database. Go back to the phpMyAdmin page, and in the left column, click the database you created and click the Import tab, choose the database export sql file you created in Step 2, and click go. Once phpMyAdmin is finished, you should see all your database tables in the left column.
  • WordPress users have one more step. You have to change the domain url in wp-options table.
    Use phpMyAdmin to search the wp_options table for the domain name of the live website. You should get two results. Change both of these to your local domain; in my case, newsite.dev
  • Test your site. Type in the domain name you created; eg, newsite.dev. Your local site should display in your browser and all your links should start with http://newsite.dev/ or whatever you used for the new site.
  • Pages: Page 1 Page 2 Page 3 Page 4

    Comments are closed. If you have information to share, contact me here.

    Previous Post: « Top Ten Joomla Extensions
    Next Post: Add Google Translate to Joomla or WordPress »

    Reader Interactions

    Comments

    1. Gordon says

      November 1, 2012 at 6:16 pm

      Nice tutorial Pat work perfectly for me. If you have MAMP (2.1.1) and Mountain Lion (10.8.2) you must also turn off Apache in the Mountain Lion OS. I used the “sudo apachectl stop” command with Terminal. Hopefully this issue will resolve itself with either a future MAMP or Mountain Lion update.

    Related

    Primary Sidebar

    Blog Categories

    Call Today

    Get a Free Quote

    303-907-6133

    Subscribe to News

    News about WordPress, WooCommerce, & Technology

    What’s New

    • WPForms Not Sending Notifications
    • Add Terms and Conditions WooCommerce
    • Fix WordPress AMP Validation Errors
    • Use the Classic Editor with Gutenberg Block Editor
    • Add a Message at Top or Bottom of WooCommerce Checkout Page
    • How to Link to a PDF in WordPress

    Find Us On…

    • Facebook
    • LinkedIn
    • RSS

    Call 303-907-6133 Email

    © 2004–2022 · WriteNowDesign · Sitemap · Log in · Return to Top