May 3, 2018
0
Level 4
Different php version in Valet
Hello,
My valet seems to use php 5.6.36 while running php -v in terminal returns 7.2.5. Where and how can I change the php version that Valet uses?
➜ ~ php -v
PHP 7.2.5 (cli) (built: Apr 26 2018 12:05:41) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.5, Copyright (c) 1999-2018, by Zend Technologies
➜ ~ which php
/usr/local/bin/php
➜ ~ brew services list
Name Status User Plist
dnsmasq started root /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
mysql started gt /Users/gt/Library/LaunchAgents/homebrew.mxcl.mysql.plist
nginx started root /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
php started root /Library/LaunchDaemons/homebrew.mxcl.php.plist
[email protected] stopped
[email protected] stopped
[email protected] started gt /Users/gt/Library/LaunchAgents/[email protected]
➜ ~
From phpinfo() ...
Configuration File (php.ini) Path /usr/local/etc/php/5.6
Loaded Configuration File /usr/local/etc/php/5.6/php.ini
Scan this dir for additional .ini files /usr/local/etc/php/5.6/conf.d
Additional .ini files parsed /usr/local/etc/php/5.6/conf.d/ext-xdebug.ini, /usr/local/etc/php/5.6/conf.d/php-memory-limits.ini
Core
PHP Version 5.6.36
Thanks!
Please or to participate in this conversation.