I'm running valet 2.0.5 and it is using the wrong version of PHP. When starting valet I get
$ valet start
Restarting php71...
Restarting nginx...
Valet services have been started.
But phpinfo()
gives PHP Version 5.6.30
and Loaded Configuration File: /usr/local/etc/php/5.6/php.ini
.
I've installed and relinked php using brew,
$ which php
/usr/local/opt/php71/bin/php
$ php -v
PHP 7.1.7
I've tried uninstalling and reinstalling valet, to no avail.
Uncommenting LoadModule php5_module libexec/apache2/libphp5.so
in /etc/apache2/httpd.conf
did the trick. I don't really know why this worked, but I'm not complaining.