Updating php version on mac

Install php

brew install php@7.2

Install the required PHP to your PATH

echo 'export PATH="/usr/local/opt/php@7.2/bin:$PATH"' >> ~/.bash_profile
echo 'export PATH="/usr/local/opt/php@7.2/sbin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile

Then make sure it’s all working

php -v
php --version

This command will show you where your ini file is loaded

php --ini

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)