I try to update my PHP version to 7.4
on macOS Catalina with brew.
I did brew install php@7.4
If I check my version php -v
, I still see the old version PHP 7.3.11
?
What do I have to do?
Update:
After brew doctor
I get:
Warning: Homebrew's sbin was not found in your PATH but you have installed formulae that put executables in /usr/local/sbin. Consider setting the PATH for example like so: echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.profile
try:
brew update
brew upgrade php
php -v
brew services start php
or
brew services restart php
if you use apache server:
sudo apachectl restart
if you use ngnix
sudo nginx -s reload
Edit:
brew unlink php@7.3
brew link php@7.4