Installations Tips - Raruto/wordpress-git GitHub Wiki

Pro Tip - "Creating a new DB in MAMP & Install a new Wordpress instance":

  1. wp core download --locale=it_IT

  2. wp core config --dbname=wp_test --dbuser=root --dbpass=root --dbhost=127.0.0.1

  3. wp db create

  4. wp core install --url=http://127.0.0.1/folder-name --title="Site Name" --admin_name="admin" --admin_password="admin" --admin_email="[email protected]" --skip-email

Pro Tip - "Force using MAMP's bundled binaries in a Linux/Mac OS"

  1. run: nano ~.bash_profile
  2. append the following lines:
    PHP_VERSION=`ls /Applications/MAMP/bin/php/ | sort -n | tail -1` # get latest available PHP version
    export PATH=/Applications/MAMP/bin/php/${PHP_VERSION}/bin:$PATH  # see: /Applications/MAMP/bin/php
    alias mysql='/Applications/MAMP/Library/bin/mysql'
    
  3. run: source ~.bash_profile

Pro Tip - "Force using MAMP's Windows binaries in a Windows Subsystem for Linux ("Windows Bash")"

  1. run nano ~.bash_profile
  2. append the following lines:
    alias php=php.exe
    alias wp='cmd.exe /c wp'
    alias composer='cmd.exe /c composer'
    
  3. run source ~.bash_profile
  4. (optional) create a shortcut to your windows user folder: ln -s /mnt/c/Users/<USERNAME> ~/<USERNAME>

Pro Tip - "Use MAMP's bundled binaries in a Windows OS ("Windows Terminal")"

Warning: You may permanently lose your PATH data (don't blindly copy/paste this..)

  1. run setx path %path%;C:\MAMP\bin\php\php7.0.9\ for php version 7.0.9
  2. run setx path %path%;C:\MAMP\bin\mysql\bin for mysql
  3. (optional) run setx path %path%;C:\some_path for wp-cli, git, composer and so on...
⚠️ **GitHub.com Fallback** ⚠️