-
-
Save tommcfarlin/9497b5f658e154f6d0e6a44b0cbdbd07 to your computer and use it in GitHub Desktop.
Quick Tip: WordPress, MariaDB, Homebrew, on an M1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First, install PHP 7.4 (yes, it's deprecated at the time of this writing) and symlink it. | |
$ brew install php@7.4 | |
$ brew link --force --overwrite php@7.4 | |
# Update your path to include the binary and update your profile. | |
$ echo 'export PATH="/opt/homebrew/opt/php@7.4/bin:$PATH"' >> ~/.zshrc | |
$ echo 'export PATH="/opt/homebrew/opt/php@7.4/sbin:$PATH"' >> ~/.zshrc | |
$ source ~/.zshrc | |
# Verify that it works. | |
$ which php | |
# Using the WP-CLI, drop the existing database, re-create it and install WP. | |
$ wp db drop | |
$ wp db create | |
$ wp core install --url=acme.test --title=Test --admin_user=admin --admin_password=password --admin_email=admin@acme.test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment