Changes your httpd.conf to use phpX instead of phpY
npm install httpd-php-switcherA simple script that lets you change witch php*_module to be used by commenting out the other in a httpd.conf file. I use this for easy local development with PHP on my Mac.
```
$ httpd-php-switcher [path-to-httpd.conf] [version-number-of-php]
``
LoadModule php5_module libexec/apache2/libphp5.so
#LoadModule php7_module /usr/local/php7/libphp7.so
``
$ httpd-php-switcher /etc/apache2/httpd.conf 7
```
#LoadModule php5_module libexec/apache2/libphp5.so
LoadModule php7_module /usr/local/php7/libphp7.so
Use the code in test.php () to see php version.
Inspired by this post: macOS 10.12 Sierra Apache Setup: Multiple PHP Versions
Download php from: https://php-osx.liip.ch