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
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
2
Answers
The PHP version in your CLI has nothing to do with the version you have on your Apache module.
You need to disable/enable the right modules in apache in order for the right php version to take affect.
For enabling/disabling a mod, you have this nice helper commands:
This one is not tested, but you should be able to do:
P.S
Not sure the apache helper commands are available in mac so you can do it directly through the
httpd.conf
file.checkout
/etc/apache2/httpd.conf
and make sure the right modules are loaded.Hope it helps.
Good luck 🙂
you need to run
To force the link and overwrite all conflicting files:
To list all files that would be deleted: