I've used MacPorts to install apache2
, php73
and php73-fpm
on MacOS Mojave. I've updated by .bash_profile
to reflect the new MacPorts paths like so:
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
I've refreshed my .bash_profile
by running:
. ~/.bash_profile
Running which php
and which httpd
in Terminal both output the correct paths:
/opt/local/bin/php
/opt/local/sbin/httpd
And running php -v
and httpd -v
both indicate that the MacPorts Apache and PHP are running.
However, I can't switch to the MacPorts php73-fpm
that I installed. which php-fpm
still returns the default OS build path:
/usr/sbin/php-fpm
How can I get the MacPorts php73-fpm
running instead of the build php-fpm
?