Closed nickdekruijk closed 2 years ago
Same here
Same here. Brand new M1 MacBook Pro. Followed the instructions by the book. OSX 12.0.1. Also the same here with brew services list. All stopped. All Services are running as LaunchDaemons > ls -al /Library/LaunchDaemons. PHP Version in Terminal is correct but not the one used by valet. Did a clean install by first installing brew, followed by brew install php, then valet and valet use php@7.4.
Same. Here's a link to the output of valet diagnose
:
https://gist.github.com/selfsimilar/5a0953ddcd55b7ac29ab5dea2bf02119
Running valet use php@8.0 --force
does not resolve this for me. I know I've fixed this before, but it's a recurring issue.
Ah yes, deleting ~/.config/valet/valet.sock
will fix the problem.
Clear description of your problem
On an irregular basis the PHP version Valet uses is downgraded to 7.3 even tho
valet use php@8.0
already returnsValet is already using version: php@8.0.
. I need to dovalet use php@8.0 --force
almost every day to restore it. I'm using macOS Big Sur 11.6 on a 2017 MacBook Pro.Expected behavior
PHP version should stick to 8.0 unless I tell Valet otherwise.
Current behavior
Sometimes (or maybe always, should test this a bit more maybe) after a reboot php version is back to 7.3
Steps to Reproduce
Output of these steps
Possible solution
I wish I knew.
Diagnosis
sw_vers
valet --version
cat ~/.config/valet/config.json
cat ~/.composer/composer.json
composer global diagnose
composer global outdated
ls -al /etc/sudoers.d/
brew config
brew services list
brew list --formula --versions | grep -E "(php|nginx|dnsmasq|mariadb|mysql|mailhog|openssl)(@\d\..*)?\s"
brew outdated
brew tap
php -v
which -a php
php --ini
nginx -v
curl --version
php --ri curl
~/.composer/vendor/laravel/valet/bin/ngrok version
ls -al ~/.ngrok2
brew info nginx
brew info php
brew info openssl
openssl version -a
openssl ciphers
sudo nginx -t
which -a php-fpm
/usr/local/opt/php/sbin/php-fpm -v
sudo /usr/local/opt/php/sbin/php-fpm -y /usr/local/etc/php/8.0/php-fpm.conf --test
ls -al ~/Library/LaunchAgents | grep homebrew
ls -al /Library/LaunchAgents | grep homebrew
ls -al /Library/LaunchDaemons | grep homebrew
ls -al /Library/LaunchDaemons | grep "com.laravel.valet."
ls -aln /etc/resolv.conf
cat /etc/resolv.conf
ifconfig lo0
sh -c 'echo "------\n/usr/local/etc/nginx/valet/valet.conf\n---\n"; cat /usr/local/etc/nginx/valet/valet.conf | grep -n "# valet loopback"; echo "\n------\n"'
sh -c 'for file in ~/.config/valet/dnsmasq.d/*; do echo "------\n~/.config/valet/dnsmasq.d/$(basename $file)\n---\n"; cat $file; echo "\n------\n"; done'
sh -c 'for file in ~/.config/valet/nginx/*; do echo "------\n~/.config/valet/nginx/$(basename $file)\n---\n"; cat $file | grep -n "# valet loopback"; echo "\n------\n"; done'