![install redis in mac install redis in mac](https://i.stack.imgur.com/A7HKl.png)
You can use valet use to switch between PHP versions: valet use use that if you're using an older Valet version (prior to v2.13.18), when switching from PHP 8 to PHP 7.4 there was a bug that didn't properly update the changes. If you're using Laravel Valet, you should do the following steps to upgrade it: composer global update You need some extra steps in order for the web server to properly work. Note: if you're using Laravel Valet, please keep on reading, Restart Nginx or Apache: sudo nginx -s reload sudo apachectl restartĪnd make sure that your local web server also uses PHP 8 by visiting this script: # index.php, accessible to your web server phpinfo()
![install redis in mac install redis in mac](https://img-blog.csdnimg.cn/img_convert/60fd34f346a7d548224f53ef3435295b.png)
# Next stepsĬheck the current version by running php -v: php -v
#Install redis in mac install
# Normal upgrade brew upgrade php # Upgrade with shivammathur/homebrew-php brew tap shivammathur/phpīrew install switch between versions, use the following command: brew link -overwrite -force can read more in the repository. I'd recommend the second approach, since it allows you to easily install several PHP versions and switch between them. You can either use the built-in php recipe, use tap shivammathur/homebrew-php. Start by making sure brew is up-to-date: brew update Do you want to learn more about PHP 8.1? There's The Road to PHP 8.1.įor the next 10 days, you'll receive a daily email covering a new and exiting feature of PHP 8.1 afterwards you'll be automatically unsubscribed, so no spam or followup.