Closed sweebee closed 2 years ago
Probably an error in your nginx config:
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed
What's the content of the conf?
rm -rf ~/.config/valet
valet install
This should solve your problem.
@sweebee I'm having the same issue. Did you find a fix for this?
I had the same issue recently, as I understood it fails on certificates step when it should ask for your password to update the keychain, but it doesn't. I don't remember the exact steps, so something may be missing, but here's (more or less) how I fixed it:
~/.config/valet
dirvalet install
And this time iTerm actually asked for the password/fingerprint, although the popup is always without focus (under iTerm window). I'm assuming it can be a macOS bug. Anyway, knowing what causes Nginx installation step to hang and how to fix it should help.
Clear description of your problem
I was running valet with PHP 8.0 but I needed to switch to 7.4 to I ran
valet use php@7.4
. After that valet was completely broken. I tried to runvalet install
again but its stuck atInstalling nginx directory...
. I left it for at least 2 hours and nothing changes.Tried the following:
Expected behavior
Succesfully install valet and it should work
Current behavior
Stuck at
Installing nginx directory...
Steps to Reproduce
dont know
Diagnosis
removed the domains
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/7.4/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'