I've installed PHP version 7.3 on my Mac running macOS Mojave. When I go to Terminal and type php -v
I get version 7.3. However, when opening common PHP script in the browser and calling phpinfo();
function, I'm getting version 7.1.19.
How can I enforce Apache to use the newer version (7.3) of PHP?
Running:
type -a php
outputs the following:
php is /usr/local/php5/bin/php
php is /usr/bin/php
Note: I've also tried to install PHP from Brew (7.2 in this case, but it's ok), and then force Apache to use this version by:
LoadModule php7_module /usr/local/Cellar/php/7.2.12_2/lib/httpd/modules/libphp7.so
or
LoadModule php7_module /usr/local/opt/php/lib/httpd/modules/libphp7.so
Anyway loading the page with simple <?php phpinfo();
causes ERR_CONNECTION_REFUSED
Comments
Post a Comment