MacOsx install php7.4 and force its use

MacBook Pro affichant du code

Start by installing homebrew /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)” 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) … Read more