Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mac OS Mojave downgrade PHP 7.3 to 7.2.14

I have installed PHP 7.2.14 with brew.

brew install [email protected]

On CLI I have already the 7.2.14 version, but not on Apache. What should I do, so I can remove 7.3 from my Mac and use only 7.2.14

like image 252
Mutatos Avatar asked Feb 04 '19 21:02

Mutatos


People also ask

Can I downgrade my PHP version?

If you'd like to downgrade your PHP installation you can do so without interfering with the path to your installation and can simply overwrite older files. This process will overwrite your current PHP.


1 Answers

you need to run

  brew link [email protected]

To force the link and overwrite all conflicting files:

  brew link --overwrite [email protected]

To list all files that would be deleted:

  brew link --overwrite --dry-run [email protected]
like image 108
Naga Penmetsa Avatar answered Nov 15 '22 04:11

Naga Penmetsa