Setup — solution MAMP for local Wordpress development - martindubenet/Wordpress GitHub Wiki

MAMP: « MacOS Apache MySQL PHP ». Also available as WAMP for Windows

Bash terminal command line to go to my local Wamp environment: cd /Volumes/usbT7r/Projects/www/


Old documentation from Codex on « How to install Wordpress with MAMP » is available but it may be depricated (!?).

 

First make sure that Homebrew is installed

 

  1. Download and install latest version from https://www.mamp.info/en/downloads/ (it will include MAMP PRO for free trial but it is not required).
  2. Launch MAMP (free version is the gray elephant icon).
  3. From the MAMP window click on Preferences
    • PHP-cache: Off.
  4. Then click on Preferences ➥ Ports to access your Apache, MySQL and Nginx port numbers.
    • Apache default port: 8888
    • MySQL default port: 8889
  5. Define your timezone in Finder ➥ Applications ➥ MAMP ➥ bin ➥ php ➥ php*.*.* ➥ conf ➥ php.ini:
    • date.timezone ="UTC"
    • date.timezone ="America/New_York".
  6. Back to MAMP window, click on Start/Stop (in the upper right corner).
  7. In the browser:

Customise MAMP's index

  • File location: Applications/MAMP/bin/mamp/index.php
  • Add a link to phpmyadmin : <p class="py-5" style="text-align: center;"><a class="btn btn-info px-5 py-3" style="text-align:center;" href="http://localhost:8888/phpmyadmin" target="phpmyadmin">phpmyadmin</a></p>

 

Create your local database

  1. Setup MySQL for local Wordpress development
⚠️ **GitHub.com Fallback** ⚠️