I'm having a real struggle to upgrade my php 7.1 to 7.2. I tried running this:
curl -s https://php-osx.liip.ch/install.sh | bash -s 7.2
but after a Apache restart if I do a php -v I get:
PHP 7.1.33 (cli) (built: Jan 26 2020 22:52:32) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
then I thought I would try and install via Homebrew so started following this (the PHP part):
https://gist.github.com/karlhillx/5cd68430aeb25e5e242a3e2c30f238d1
It mentions amending the http.conf file:
vi /usr/local/etc/httpd/httpd.conf
but my /usr/local/etc look like
ODBCDataSources locales.conf openldap pool.conf
bash_completion.d odbc.ini openssl@1.1 wgetrc
freetds.conf odbcinst.ini php
I just want to upgrade so I can install the mcrypt extension... Below is my php info output. Any help would be much appreciated.
I've run httpd -V:
/private/etc/apache2/httpd.conf
I've amended this file so commented out:
#LoadModule php7_module libexec/apache2/libphp7.so
and added:
LoadModule php7_module /usr/local/opt/php@7.2/lib/httpd/modules/libphp7.so
I've run:
sudo apachectl restart
brew services start php@7.2
But PHP now doesn't run. If I do php -v from the command line it's still saying:
PHP 7.1.33 (cli) (built: Jan 26 2020 22:52:32) ( NTS )
``