PHP 7.2 and use it instead of PHP 7.3 in Mac OS Catalina
- Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- brew install [email protected]
- 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
-open /private/etc/apache2/httpd.conf
- add this line "LoadModule php7_module /usr/local/opt/[email protected]/lib/httpd/modules/libphp7.so"
- comment this line "#LoadModule php7_module libexec/apache2/libphp7.so"
php.ini path = /usr/local/etc/php/7.2/
references
- https://laracasts.com/discuss/channels/general-discussion/brew-install-php-72-instead-of-73