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
- Homebrew :
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- PHP :
brew install php
- MySQL :
brew install mysql
brew services start mysql
- 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