MacOsx install php7.4 and force its use
Start by installing homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Publicités
Next, use the following commands
brew installs php@7.4 brew link --force php@7.4 brew services start php@7.4 export PATH"/usr/local/opt/php@7.4/bin:$PATH" export PATH"/usr/local/opt/php@7.4/sbin:$PATH"
Once this is done, check that the php version is correct
php -v PHP 7.4.13 (cli) (built: Nov 30 2020 14:46:04) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.13, Copyright (c), by Zend Technologies
Publicités