-
Notifications
You must be signed in to change notification settings - Fork 695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nginx cannot start; please check your nginx.conf [1: sudo: nginx: command not found ]. #1038
Comments
Several observations:
If you still want it, re-install it again afterward using
When Valet is being used to manage PHP, Valet will run those services as root (using sudo), so anytime you start those services without sudo you set yourself up to compete against valet.
Try: |
Thanks @drbyte , that has nginx now configured by Valet ( I must have had a manual older version from wayback ). One other issue arose though -
|
Does it report any errors if you run Or maybe remove it and let valet install it?
|
Had to manually remove
Then reinstalling valet
So somehow both nginx and dnsmasq became disassociated from valet when I reinstalled all the things - but all good now, thanks for your help @drbyte |
Worked perfectly for me. |
I upgraded from macos Catalina to Big Sur and had a number of issues, so I removed everything and reinstalled homebrew, php and mariadb - then went to install Valet.
Expected behavior
nginx should install ok
Current behavior
I get an error:
Brew services list:
Interestingly it says
httpd
Output of these steps
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/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 -aln /etc/resolv.conf
cat /etc/resolv.conf
The text was updated successfully, but these errors were encountered: