Skip to content

Instantly share code, notes, and snippets.

@rizkiheryandi
Last active September 30, 2020 04:20
Show Gist options
  • Select an option

  • Save rizkiheryandi/09c9cf5951cd043d896f32f18ab855d1 to your computer and use it in GitHub Desktop.

Select an option

Save rizkiheryandi/09c9cf5951cd043d896f32f18ab855d1 to your computer and use it in GitHub Desktop.
Update PHP on MacOS Catalina
1. Install php7.3 with brew
brew install [email protected]
2. Use php7.3 on system
brew link [email protected]
3. Set php7.3exe to default PHP
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/usr/local/opt/[email protected]/sbin:$PATH"' >> ~/.zshrc
4. Change php module on apache http.conf
LoadModule php7_module /usr/local/opt/[email protected]/lib/httpd/modules/libphp7.so
5. Add below on apache httpd.conf
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment