Answers for "upgrade php version from 7.1 to 8.0 mac"

PHP
1

downgrade php 7.4 to 7.3 mac

#Install php version 7.3
brew install [email protected]
#Install the required PHP to your PATH
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile
echo 'export PATH="/usr/local/opt/[email protected]/sbin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
#Check Version
php --version
#Show you where your ini file is loaded
php --ini
Posted by: Guest on February-13-2021
4

change php version on mac

brew upgrade php : ( get the latest homebrew php packages )

$ brew install [email protected] : ( Install php 7.4 )

$ brew link [email protected] : ( create an alias to this keg-only version; see comments output during installation )

$ echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile : ( Add the alias to your path; see comments output during installation )

$ source ~/.bash_profile : ( Reload .bash_profile to use the new settings immediately )
Posted by: Guest on December-15-2021

Code answers related to "upgrade php version from 7.1 to 8.0 mac"

Browse Popular Code Answers by Language