Skip to main content

Mac

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"