Valet-plus: Bug: <valet successfully started not working>

Created on 9 Jan 2021  ยท  18Comments  ยท  Source: weprovide/valet-plus

i have this situation on my mac Big Sur 11.1
don't ping *.test
which php

/usr/local/bin/php

php -v

PHP 7.2.34 (cli) (built: Oct 1 2020 16:05:58) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.34, Copyright (c) 1999-2018, by Zend Technologies

brew services list

Name Status User Plist
dnsmasq stopped
httpd stopped
httpd-bc stopped
mailhog stopped
[email protected] started raffaele /Users/raffaele/Library/LaunchAgents/homebrew.mxcl.[email protected]
nginx stopped
redis stopped
[email protected] stopped
[email protected] stopped
[email protected] started raffaele /Users/raffaele/Library/LaunchAgents/homebrew.mxcl.[email protected]
[email protected] started raffaele /Users/raffaele/Library/LaunchAgents/homebrew.mxcl.[email protected]

brew info php

php: stable 8.0.1 (bottled), HEAD
General-purpose scripting language
https://www.php.net/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/php.rb
License: PHP-3.01
==> Dependencies
Build: httpd โœ”, pkg-config โœ”
Required: apr โœ”, apr-util โœ”, argon2 โœ”, aspell โœ”, autoconf โœ”, curl โœ”, freetds โœ”, gd โœ˜, gettext โœ”, glib โœ”, gmp โœ”, icu4c โœ”, krb5 โœ”, libffi โœ”, libpq โœ”, libsodium โœ”, libzip โœ”, oniguruma โœ˜, openldap โœ”, [email protected] โœ”, pcre2 โœ”, sqlite โœ”, tidy-html5 โœ”, unixodbc โœ”
==> Options
--HEAD
Install HEAD version
==> Caveats
To enable PHP in Apache add the following to httpd.conf and restart Apache:
LoadModule php_module /usr/local/opt/php/lib/httpd/modules/libphp.so

<FilesMatch \.php$>
    SetHandler application/x-httpd-php
</FilesMatch>

Finally, check DirectoryIndex includes index.php
DirectoryIndex index.php index.html

The php.ini and php-fpm.ini file can be found in:
/usr/local/etc/php/8.0/

To have launchd start php now and restart at login:
brew services start php
Or, if you don't want/need a background service you can just run:
php-fpm
==> Analytics
install: 39,490 (30 days), 160,084 (90 days), 600,276 (365 days)
install-on-request: 38,783 (30 days), 157,058 (90 days), 576,318 (365 days)
build-error: 0 (30 days)

Stopping [email protected]... (might take a while)
==> Successfully stopped [email protected] (label: [email protected])
==> Successfully started [email protected] (label: [email protected])

Bug Needs review

Most helpful comment

All 18 comments

Same issue here,
it seems that starting the services manually everything works.

Same issue here,
it seems that starting the services manually everything works.

for me start, but don't work anything
please

Same issue here,
it seems that starting the services manually everything works.

for me start, but don't work anything
please

Make sure each service is started with the right privileges. For example:
valets

Name Status User Plist
dnsmasq stopped
httpd stopped
httpd-bc stopped
mailhog stopped
[email protected] started raffaele /Users/raffaele/Library/LaunchAgents/homebrew.mxcl.[email protected]
nginx stopped
redis stopped
[email protected] stopped
[email protected] stopped
[email protected] started raffaele /Users/raffaele/Library/LaunchAgents/homebrew.mxcl.[email protected]
[email protected] started raffaele /Users/raffaele/Library/LaunchAgents/homebrew.mxcl.[email protected]

this is my services

Schermata 2021-01-18 alle 18 19 55

Try doing it this way:
sudo brew services stop --all && brew services stop --all
make sure every service is stopped. Then
sudo brew services start dnsmasq
brew services start mailhog
brew services start [email protected]
sudo brew services start nginx
brew services start redis
sudo brew services start [email protected]

i'm try but don't pin
Schermata 2021-01-19 alle 09 50 38

but initialization of site work
Schermata 2021-01-19 alle 09 51 57

nothing?
please

Hi,
I can't understand what the problem is. We need a better description. Have you tried with the suggested steps?

valet is started but i have 502 bad gateway error

I don't think it's a Valet issue.
Have you checked the logs?

Schermata 2021-02-08 alle 10 16 49

I don't think it's a Valet issue.
Have you checked the logs?

what log?
please help me

The Nginx logs
valet logs nginx.
Also you can try to create a simple HTML page and check if valet can serve this page.

2021/02/08 19:49:47 [crit] 4170#0: *8 connect() to unix:/Users/raffaele/.valet/valet.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: sitolocale.test, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/Users/raffaele/.valet/valet.sock:", host: "sitolocale.test"
2021/02/08 19:49:47 [crit] 4168#0: *10 connect() to unix:/Users/raffaele/.valet/valet.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: sitolocale.test, request: "GET /favicon.ico HTTP/2.0", upstream: "fastcgi://unix:/Users/raffaele/.valet/valet.sock:", host: "sitolocale.test", referrer: "https://sitolocale.test/"
2021/02/08 19:50:50 [crit] 4170#0: *8 connect() to unix:/Users/raffaele/.valet/valet.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: sitolocale.test, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/Users/raffaele/.valet/valet.sock:", host: "sitolocale.test"

please help me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

regularlabs picture regularlabs  ยท  19Comments

luukschakenraad picture luukschakenraad  ยท  18Comments

eclectic-coding picture eclectic-coding  ยท  31Comments

MaxSouza picture MaxSouza  ยท  46Comments

wowcut picture wowcut  ยท  15Comments