setup — PHP and MySQL for Wordpress development on M1 macs - martindubenet/Wordpress GitHub Wiki

Home  ][  Plugins  ][  Functions  ][  MySQL setup  ]

 

First read

Read this post about Setting up a WordPress development environment on an M1 Mac by Jaka Rizmal.

The following instructions are related to that post.

 

Install

  1. Homebrew : /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. PHP : brew install php
  3. MySQL :
    1. brew install mysql
    2. brew services start mysql
  4. Composer : (optional) Read the article for instructions

 

Run PHP server

Open a dedicated Terminal windows (or tab) and copy/paste the follwing command to Start the server.

php -S localhost:8000