valet: Valet does not run on Mac/Sierra OSX
I install Laravel via composer and I can run my site via Mamp and other Mac’s server environments. I installed Valet and its plugins correctly and I received a message when I type valet
in Terminal. But it doesn’t work for me and I received ERR_EMPTY_RESPONSE
when I want to visit my site in browser.
At the end when I scan 80 port (default port) via netstat -an | grep "\.80" | grep LISTEN
there isn’t any service running on 80.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 24 (7 by maintainers)
I’ve fixed my setup with Valet (2.0.3) and SSL/HTTPS connections. 😅
I’m not sure if all steps are required. I updated homebrew and valet. Then I installed OpenSSL with homebrew, and curl with OpenSSL. Next I removed PHP7 to reinstall it with the homebrew curl. Then I verified that my PHP is using OpenSSL in stead of ‘Secure Transport’ which ships with macOS Sierra.
I used these commands:
brew update
valet stop
composer global require laravel/valet
valet install
brew install openssl
brew install --with-openssl curl
brew unlink php70 && brew remove php70 && brew uninstall --ignore-dependencies php70
brew install --with-homebrew-curl php70
brew services start homebrew/php/php70
export PATH="$(brew --prefix homebrew/php/php70)/bin:$PATH"
php -i | grep "SSL Version"
-> SSL Version => OpenSSL/1.0.2kvalet restart
valet secure website
Hope it helps someone.
@lekkerduidelijk Have you been able to work around this issue now that homebrew merged php into core and deprecated the old packages? with php@7.2 the --with-homebrew-curl option is no longer available.
This works for me using PHP 7.1
I can confirm it is not working for me 👎
@lekkerduidelijk this was extremely helpful! Thankyou
I think I found the issue - Certificates got generated corrupted and a million times https://github.com/laravel/valet/issues/326#issuecomment-282964486