I’m a fan of using both Homebrew and Valet when it comes to setting up and configuring a basic WordPress development environment. Though using package managers and simple software for such like this should make things easier, it doesn’t absolve us from the occasional problems. Case in point: There are times in which we […]
Search: “homebrew” (Page 2 of 8)
We found 38 results for your search.
If you manage PHP with Homebrew but need to downgrade to a previous install, here’s how you can install old Versions of PHP With Homebrew.
[…] are times where it’s important to install Composer in a global setting, too. And that’s what we’re going to do here. Two Ways to Install Composer Using Homebrew If you use Homebrew, then it’s possible to install Composer using Homebrew. It’s arguably easier to install and upgrade. Of course, this assumes you have Homebrew […]
[…] We recommend servers running version 7.4 or greater of PHP and MySQL version 5.7 OR MariaDB version 10.2 or greater. Requirements, emphasis mine Note that I use Homebrew to manage all of my packages and use Laravel Valet, WordPress, MariaDB, and PHP along with wp-cli. I’ll more on this in an upcoming post. I’ve been talking with a few people on Twitter about it and it turned into a fun discussion. Anyway, if you’ve followed any of this – or even if not and you’re experiencing this – then here’s a resolution for you. Fix WordPress, PHP, MariaDB, and Homebrew First, note that you cannot use WordPress and PHP 8. The truth is, PHP 7.4.27 is the most recent compatible version in my experience that works with WordPress. Homebrew It’s almost the most recent version that’s not deprecated in the Homebrew Formulae. 🤷🏻♂️ Anyway, the first thing to do is to make sure that you when you install PHP and if you’re doing so with Homebrew, you do the following: $ brew install php@7.4 $ brew link –force –overwrite php@7.4 This will make sure that you’ve installed the most recent version while symlink’ing it properly so your using it on your system. Symlinks Next, you need to update the environment paths: $ 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 This makes sure the PHP 7.4 binaries are accessible in your shell and reloads the current terminal session with the new version. You […]
How to run multiple versions of PHP alongside one another using both Homebrew and Valet.