Closed jackmcdade closed 2 years ago
Diagnosis doesn't seem to have much info about the isolated sites. I assume we need to update the diagnosis command and add some info about isolated sites.
Here's how I would try to debug this:
valet install
valet stop
brew install shivammathur/php/php@7.4
valet install
(These are very general steps, not sure if this will help)
@NasirNobin Thanks for jumping in! Went through those steps and unfortunately the same result. If I unisolate it works fine, but re-isolating again and i'm in the same place.
Same here...
Stopping nginx...
Installing nginx configuration...
Installing nginx directory...
Updating PHP configuration for php@8.1...
Restarting php@7.4...
Restarting php...
Updating Dnsmasq configuration...
Restarting dnsmasq...
Valet is configured to serve for TLD [.test]
Restarting nginx...
everything seems to be fine but getting .config/valet/valet74.sock` not found error on nginx.
@jackmcdade Here's my solution:
brew reinstall php 7.4
sudo brew services restart php@7.4
sudo brew services // if php@7.4 is on that list it works.
I think it was a permission or ownership issue from the past.
@jackmcdade Here's my solution:
brew reinstall php 7.4 sudo brew services restart php@7.4 sudo brew services // if php@7.4 is on that list it works.
I think it was a permission or ownership issue from the past.
This worked for me - thankyou
Jack and I paired and it was definitely permissions errors from previously installed versions of PHP.
Description:
After global composer updating Valet and reinstalling, I isolated a site and it throws 502 errors.
Steps To Reproduce:
Isolate a site to PHP 7.4, get a 404
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
~/.composer/vendor/laravel/valet/bin/ngrok-arm 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
/opt/homebrew/opt/php/sbin/php-fpm -v
sudo /opt/homebrew/opt/php/sbin/php-fpm -y /opt/homebrew/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/opt/homebrew/etc/nginx/valet/valet.conf\n---\n"; cat /opt/homebrew/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'