laravel / valet

A more enjoyable local development experience for Mac.
https://laravel.com/docs/valet
MIT License
2.5k stars 690 forks source link

Cannot switch php versions without manually removing valet.sock #1010

Closed brendt closed 3 years ago

brendt commented 3 years ago

Whenever I switch a php version, I need to manually remove valet.sock and restart valet again before it works:

// valet use php@8.0
valet use php@7.4
rm ~/.config/valet/valet.sock
valet restart

Tweeted here: https://twitter.com/brendt_gd/status/1333727181927632896

drbyte commented 3 years ago

For anyone running into this, please run valet diagnose and post the output as a reply to this Issue. That will help with debugging by setting context.

How long has this been happening? In particular, v2.13.15, released yesterday, included an overhaul of many steps in the valet use php@x.y command. While I tested it extensively with myriad combinations of configurations, I never encountered issues with valet.sock, with or without reboots. But, your environment may be different from mine. The output of valet diagnose will also help identify potential contributing differences.

mattstauffer commented 3 years ago

@brendt Thanks for the issue!

@drbyte thanks for following up!

brendt commented 3 years ago

Updating solved the problem, thanks Chris!

brendt commented 3 years ago

Oh hang on, too fast. Switch from 7.4 to 8 worked, but not the other way around. This is the output of diagnose:

sw_vers
ProductName:   Mac OS X
ProductVersion: 10.15.7
BuildVersion:   19H2
valet --version
Laravel Valet 2.13.15
cat ~/.config/valet/config.json
{
    "domain": "test",
    "paths": [
        "/Users/brent/.config/valet/Sites",
        "/Users/brent/dev/spatie",
        "/Users/brent/dev/pageon",
        "/Users/brent/dev/brendt/color-picker",
        "/Users/brent/dev/brendt",
        "/Users/brent/dev/brendt/presentations"
    ],
    "tld": "test"
}
cat ~/.composer/composer.json
{
    "require": {
        "laravel/envoy": "~1.0",
        "laravel/valet": "^2.0",
        "friendsofphp/php-cs-fixer": "^2.7",
        "spatie/phpunit-watcher": "^1.3",
        "spatie/mixed-content-scanner-cli": "^1.2",
        "laravel/installer": "^4.0",
        "botman/installer": "^1.0",
        "spatie/http-status-check": "^3.0",
        "phploc/phploc": "^4.0",
        "spatie/code-outliner": "^0.1.0",
        "phpstan/phpstan": "^0.10.2",
        "phpmetrics/phpmetrics": "^2.4"
    },
    "config": {
        "platform": { 
            "ext-imagick": "3.4.4"
        }
    }
}
composer global diagnose
Changed current directory to /Users/brent/.composer
Checking composer.json: WARNING
No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com oauth access: OK
Checking disk free space: OK
Checking pubkeys: 
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: You are not running the latest stable version, run `composer self-update` to update (2.0.2 => 2.0.7)
Composer version: 2.0.2
PHP version: 7.4.13
PHP binary path: /usr/local/Cellar/php@7.4/7.4.13_1/bin/php
OpenSSL version: OpenSSL 1.1.1h  22 Sep 2020
cURL version: 7.73.0 libz 1.2.11 ssl (SecureTransport) OpenSSL/1.1.1h
zip extension: OK
composer global outdated
Changed current directory to /Users/brent/.composer
guzzlehttp/guzzle                  6.5.5   ~ 7.2.0   Guzzle is a PHP HTTP client library
illuminate/container               v6.20.6 ~ v8.17.0 The Illuminate Container package.
illuminate/contracts               v6.20.6 ~ v8.17.0 The Illuminate Contracts package.
illuminate/support                 v6.20.6 ~ v8.17.0 The Illuminate Support package.
laravel/envoy                      v1.6.5  ~ v2.4.0  Elegant SSH tasks for PHP.
league/flysystem                   1.1.3   ~ 2.0.0   Filesystem abstraction: Many filesystems, one API.
nikic/php-parser                   v4.2.5  ! v4.10.2 A PHP parser written in PHP
php-cs-fixer/diff                  v1.3.1  ~ v2.0.2  sebastian/diff v2 backport support for PHP5.6
phploc/phploc                      4.0.1   ~ 7.0.1   A tool for quickly measuring the size of a PHP project.
phpstan/phpdoc-parser              0.3.5   ~ 0.4.9   PHPDoc parser with support for nullable, intersection and generic types
phpstan/phpstan                    0.10.9  ~ 0.12.58 PHPStan - PHP Static Analysis Tool
sebastian/finder-facade            1.2.3   ~ 2.0.0   FinderFacade is a convenience wrapper for Symfony's Finder component.
Package sebastian/finder-facade is abandoned, you should avoid using it. No replacement was suggested.
sebastian/version                  2.0.1   ~ 3.0.2   Library that helps with managing the version number of Git-hosted PHP projects
spatie/browsershot                 3.40.2  ! 3.41.0  Convert a webpage to an image or pdf using headless Chrome
spatie/crawler                     4.7.6   ~ 5.0.2   Crawl all internal links found on a website
spatie/mixed-content-scanner       3.3.0   ~ 4.0.0   Scan your site for mixed content
spatie/phpunit-watcher             1.23.0  ! 1.23.1  Automatically rerun PHPUnit tests when source code changes
symfony/console                    v4.4.17 ~ v5.2.0  Symfony Console Component
symfony/event-dispatcher           v4.4.17 ~ v5.2.0  Symfony EventDispatcher Component
symfony/event-dispatcher-contracts v1.1.9  ~ v2.2.0  Generic abstractions related to dispatching event
symfony/filesystem                 v4.4.17 ~ v5.2.0  Symfony Filesystem Component
symfony/finder                     v4.4.17 ~ v5.2.0  Symfony Finder Component
symfony/process                    v4.4.17 ~ v5.2.0  Symfony Process Component
symfony/var-dumper                 v4.4.17 ~ v5.2.0  Symfony mechanism for exploring and dumping PHP variables
tightenco/collect                  v7.26.1 ~ v8.15.0 Collect - Illuminate Collections as a separate package.
yosymfony/resource-watcher         v2.0.1  ~ v3.0.0  A simple resource watcher using Symfony Finder
ls -al /etc/sudoers.d/
total 0
drwxr-xr-x    2 root  wheel    64 Apr 17  2020 .
drwxr-xr-x  116 root  wheel  3712 Nov 24 13:51 ..
brew config
HOMEBREW_VERSION: 2.6.0
ORIGIN: https://github.com/Homebrew/brew
HEAD: 1d5e354cc2ff048bd7161d95b3fa7f91dc9dd081
Last commit: 24 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 851ace4477bcb17d8574654b122e4972f8d5f4a4
Core tap last commit: 2 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: vim
HOMEBREW_MAKE_JOBS: 4
Homebrew Ruby: 2.6.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/bin/ruby
CPU: quad-core 64-bit kabylake
Clang: 12.0 build 1200
Git: 2.21.0 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
Java: 9.0.1, 1.8.0_211, 1.8.0_152
macOS: 10.15.7-x86_64
CLT: 12.0.0.0.1.1599194153
Xcode: N/A
brew services list
Name            Status  User  Plist
blackfire-agent started brent /Users/brent/Library/LaunchAgents/homebrew.mxcl.blackfire-agent.plist
dnsmasq         error   root  /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
elasticsearch   stopped       
httpd           error   brent /Users/brent/Library/LaunchAgents/homebrew.mxcl.httpd.plist
mysql@5.7       started brent /Users/brent/Library/LaunchAgents/homebrew.mxcl.mysql@5.7.plist
nginx           error   root  /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
php             error   root  /Library/LaunchDaemons/homebrew.mxcl.php.plist
php@5.6         stopped       
php@7.4         started root  /Library/LaunchDaemons/homebrew.mxcl.php@7.4.plist
redis           started brent /Users/brent/Library/LaunchAgents/homebrew.mxcl.redis.plist
unbound         stopped
brew list --formula --versions | grep -E "(php|nginx|dnsmasq|mariadb|mysql|mailhog|openssl)(@\d\..*)?\s"
dnsmasq 2.80
mysql@5.7 5.7.32
nginx 1.19.2 1.19.4 1.17.0
openssl@1.1 1.1.1h 1.1.1g
php 8.0.0_1 7.4.0 7.4.11 7.2.3_2 7.3.3 7.3.5 7.2.4_1 7.4.12
php@5.6 5.6.40
php@7.4 7.4.13_1
php@8.0 8.0.0
brew outdated
ack
aom
automake
bison
blackfireio/blackfire/blackfire-agent
blackfireio/blackfire/blackfire-php71
blackfireio/blackfire/blackfire-php72
blackfireio/blackfire/blackfire-php73
boost-build
cloc
cmake
dnsmasq
doctl
elasticsearch
gdb
git
glibmm
gsl
hub
imagemagick
ncdu
nginx
node
pngquant
popt
potrace
python@3.8
python@3.9
qt
re2c
redis
spdylay
svgo
unbound
wget
yarn
keycastr
brew tap
blackfireio/blackfire
caskformula/caskformula
homebrew/cask
homebrew/core
homebrew/services
infection/infection
shivammathur/php
php -v
PHP 7.4.13 (cli) (built: Nov 30 2020 22:44:36) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.13, Copyright (c), by Zend Technologies
which -a php
/usr/local/bin/php
/usr/local/bin/php
/usr/bin/php
php --ini
Configuration File (php.ini) Path: /usr/local/etc/php/7.4
Loaded Configuration File:         /usr/local/etc/php/7.4/php.ini
Scan for additional .ini files in: /usr/local/etc/php/7.4/conf.d
Additional .ini files parsed:      /usr/local/etc/php/7.4/conf.d/error_log.ini,
/usr/local/etc/php/7.4/conf.d/ext-opcache.ini,
/usr/local/etc/php/7.4/conf.d/php-memory-limits.ini
nginx -v
nginx version: nginx/1.19.4
curl --version
curl 7.64.1 (x86_64-apple-darwin19.0) libcurl/7.64.1 (SecureTransport) LibreSSL/2.8.3 zlib/1.2.11 nghttp2/1.39.2
Release-Date: 2019-03-27
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS GSS-API HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL UnixSockets
php --ri curl
curl

cURL support => enabled
cURL Information => 7.73.0
Age => 7
Features
AsynchDNS => Yes
CharConv => No
Debug => No
GSS-Negotiate => No
IDN => Yes
IPv6 => Yes
krb4 => No
Largefile => Yes
libz => Yes
NTLM => Yes
NTLMWB => Yes
SPNEGO => Yes
SSL => Yes
SSPI => No
TLS-SRP => Yes
HTTP2 => Yes
GSSAPI => Yes
KERBEROS5 => Yes
UNIX_SOCKETS => Yes
PSL => No
HTTPS_PROXY => Yes
MULTI_SSL => Yes
BROTLI => Yes
Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, mqtt, pop3, pop3s, rtmp, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp
Host => x86_64-apple-darwin19.6.0
SSL Version => (SecureTransport) OpenSSL/1.1.1h
ZLib Version => 1.2.11
libSSH Version => libssh2/1.9.0

Directive => Local Value => Master Value
curl.cainfo => no value => no value
~/.composer/vendor/laravel/valet/bin/ngrok version
ngrok version 2.3.35
ls -al ~/.ngrok2
ls: /Users/brent/.ngrok2: No such file or directory
brew info nginx
nginx: stable 1.19.5 (bottled), HEAD
HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server
https://nginx.org/
/usr/local/Cellar/nginx/1.17.0 (22 files, 2MB)
  Built from source
/usr/local/Cellar/nginx/1.19.2 (25 files, 2.1MB)
  Poured from bottle on 2020-10-02 at 13:54:31
/usr/local/Cellar/nginx/1.19.4 (25 files, 2.2MB) *
  Poured from bottle on 2020-11-12 at 15:36:55
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/nginx.rb
License: BSD-2-Clause
==> Dependencies
Required: openssl@1.1, pcre
==> Options
--HEAD
    Install HEAD version
==> Caveats
Docroot is: /usr/local/var/www

The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that
nginx can run without sudo.

nginx will load all files in /usr/local/etc/nginx/servers/.

To have launchd start nginx now and restart at login:
  brew services start nginx
Or, if you don't want/need a background service you can just run:
  nginx
==> Analytics
install: 47,871 (30 days), 123,014 (90 days), 447,458 (365 days)
install-on-request: 47,150 (30 days), 121,043 (90 days), 435,451 (365 days)
build-error: 0 (30 days)
brew info php
Error: Permission denied @ rb_file_s_lstat - /usr/local/Cellar/php/7.2.3_2/var/log/php-fpm.log
php: stable 8.0.0 (bottled), HEAD
General-purpose scripting language
https://www.php.net/
brew info openssl
openssl@1.1: stable 1.1.1h (bottled) [keg-only]
Cryptography and SSL/TLS Toolkit
https://openssl.org/
/usr/local/Cellar/openssl@1.1/1.1.1g (8,059 files, 18MB)
  Poured from bottle on 2020-10-02 at 10:58:07
/usr/local/Cellar/openssl@1.1/1.1.1h (8,067 files, 18.5MB)
  Poured from bottle on 2020-11-12 at 15:23:01
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/openssl@1.1.rb
License: OpenSSL
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /usr/local/etc/openssl@1.1/certs

and run
  /usr/local/opt/openssl@1.1/bin/c_rehash

openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
because macOS provides LibreSSL.

If you need to have openssl@1.1 first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> ~/.zshrc

For compilers to find openssl@1.1 you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"

For pkg-config to find openssl@1.1 you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"

==> Analytics
install: 720,047 (30 days), 2,004,891 (90 days), 7,429,161 (365 days)
install-on-request: 110,071 (30 days), 298,779 (90 days), 1,058,480 (365 days)
build-error: 0 (30 days)
openssl version -a
LibreSSL 2.8.3
built on: date not available
platform: information not available
options:  bn(64,64) rc4(16x,int) des(idx,cisc,16,int) blowfish(idx) 
compiler: information not available
OPENSSLDIR: "/private/etc/ssl"
openssl ciphers
ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-CHACHA20-POLY1305:GOST2012256-GOST89-GOST89:DHE-RSA-CAMELLIA256-SHA256:DHE-RSA-CAMELLIA256-SHA:GOST2001-GOST89-GOST89:AES256-GCM-SHA384:AES256-SHA256:AES256-SHA:CAMELLIA256-SHA256:CAMELLIA256-SHA:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-CAMELLIA128-SHA256:DHE-RSA-CAMELLIA128-SHA:AES128-GCM-SHA256:AES128-SHA256:AES128-SHA:CAMELLIA128-SHA256:CAMELLIA128-SHA:ECDHE-RSA-RC4-SHA:ECDHE-ECDSA-RC4-SHA:RC4-SHA:RC4-MD5:ECDHE-RSA-DES-CBC3-SHA:ECDHE-ECDSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:DES-CBC3-SHA
sudo nginx -t
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
which -a php-fpm
/usr/sbin/php-fpm
/usr/local/opt/php/sbin/php-fpm -v
PHP 8.0.0 (fpm-fcgi) (built: Nov 30 2020 13:47:39)
Copyright (c) The PHP Group
Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.0, Copyright (c), by Zend Technologies
sudo /usr/local/opt/php/sbin/php-fpm -y /usr/local/etc/php/7.4/php-fpm.conf --test
[02-Dec-2020 13:52:47] NOTICE: configuration file /usr/local/etc/php/7.4/php-fpm.conf test is successful
ls -al ~/Library/LaunchAgents | grep homebrew
lrwxr-xr-x   1 brent  staff    66 Jan  4  2018 homebrew.mxcl.blackfire-agent.plist -> /usr/local/opt/blackfire-agent/homebrew.mxcl.blackfire-agent.plist
-rw-r--r--   1 brent  staff   576 Feb 23  2018 homebrew.mxcl.dnsmasq.plist
-rw-r--r--   1 brent  staff   447 Feb 22  2018 homebrew.mxcl.httpd.plist
-rw-r--r--   1 brent  staff   551 Jun  4  2019 homebrew.mxcl.mysql@5.7.plist
-rw-r--r--   1 brent  staff   571 Oct  2  2017 homebrew.mxcl.nginx.plist
-rw-r--r--   1 brent  staff   628 Apr 17  2018 homebrew.mxcl.php.plist
-rw-r--r--   1 brent  staff   740 Feb 22  2018 homebrew.mxcl.php72.plist
-rw-r--r--   1 brent  staff   823 Nov  6  2017 homebrew.mxcl.redis.plist
ls -al /Library/LaunchAgents | grep homebrew

ls -al /Library/LaunchDaemons | grep homebrew
-rw-r--r--   1 root  admin   576 Dec  2 13:51 homebrew.mxcl.dnsmasq.plist
-rw-r--r--   1 root  wheel   543 Oct  2  2017 homebrew.mxcl.mysql.plist
-rw-r--r--   1 root  admin   571 Dec  2 13:51 homebrew.mxcl.nginx.plist
-rw-r--r--   1 root  admin   628 Dec  2 13:50 homebrew.mxcl.php.plist
-rw-r--r--   1 root  wheel   740 Feb 22  2018 homebrew.mxcl.php72.plist
-rw-r--r--   1 root  admin   636 Dec  2 13:51 homebrew.mxcl.php@7.4.plist
-rw-r--r--   1 root  admin   636 Nov 19 05:40 homebrew.mxcl.php@8.0.plist
ls -aln /etc/resolv.conf
lrwxr-xr-x  1 0  0  22 Jun 25 09:36 /etc/resolv.conf -> ../var/run/resolv.conf
cat /etc/resolv.conf
#
# macOS Notice
#
# This file is not consulted for DNS hostname resolution, address
# resolution, or the DNS query routing mechanism used by most
# processes on this system.
#
# To view the DNS configuration used by this system, use:
#   scutil --dns
#
# SEE ALSO
#   dns-sd(1), scutil(8)
#
# This file is automatically generated.
#
search telenet.be
nameserver 8.8.8.8

(edited by @mattstauffer to remove the code ticks so the expanding feature works)

drbyte commented 3 years ago

A few observations and suggestions:

At the very least, run the following to tell your mac to stop trying to start the old nginx version at boot, alongside the new: brew services stop nginx (the newer version runs as root/sudo)

It also shows Apache in "error" status, based on a 2018 install. If you're not using it, run brew services stop httpd, at least until you need it.

It shows you have 2 dnsmasq processes started, one as root, one not. Stop the non-Valet one with brew services stop dnsmasq (valet's runs as root/sudo)

It also shows you have multiple homebrew editions of older PHP versions: 7.4.0 7.4.11 7.2.3_2 7.3.3 7.3.5 7.2.4_1 7.4.12 It may be worth cleaning those out as well. Something akin to: sudo rm -rf /usr/local/Cellar/php@7.4/7.4.0 (repeat) Granted, since brew services list only shows that you have some degree of intent related to having 5.6, 7.4, and 8.0 installed, I suggest deleting the 7.2 and 7.3 directories as well, as they don't seem properly configured anymore either. Check your /usr/local/Cellar/php directory and remove those old versions.

Then for system Daemons, /Library/LaunchDaemons you have a very old mysql version registered, which is not the @5.7 that's running as User. So I suggest sudo brew services stop mysql to (try to stop and) deregister it from starting on boot. If the plist file doesn't remove itself automatically, then delete it yourself.

The general rule is that Valet-managed services run as root, so should only be listed as Deamons, and not as user Agents.

I recommend also temporarily shutting down these services and deleting their plists, and then run valet use xyz to get your PHP versions running as desired:

valet stop
sudo brew services stop php
sudo brew services stop php@7.4
sudo brew services stop nginx
sudo rm -f /Library/LaunchDaemons/homebrew.mxcl.php*
# consider a reboot at this point
valet use php@8.0
valet use php@7.4
drbyte commented 3 years ago

You might also consider brew cleanup --dry-run followed by brew cleanup if nothing alarming shows in the list and brew services cleanup

Both of these help get rid of potentially-conflicting cruft, and free up disk space.

daronspence commented 3 years ago

Had this happen to a coworker as well on the latest version of valet. Don't have a diagnose output for you though

drbyte commented 3 years ago

@brendt is this still an issue for you?

mattstauffer commented 3 years ago

@drbyte FYI at least one Tightenite had this happen last week. I'll ask for her diagnose output. Also think #1027 is this same thing.

mattstauffer commented 3 years ago
sw_vers
ProductName:   macOS
ProductVersion: 11.1
BuildVersion:   20C69
valet --version
Laravel Valet 2.13.16
cat ~/.config/valet/config.json
{
    "tld": "test",
    "paths": [
        "/Users/person/.config/valet/Sites"
    ]
}
cat ~/.composer/composer.json
{
    "require": {
        "laravel/valet": "^2.13",
        "squizlabs/php_codesniffer": "^3.5"
    }
}
composer global diagnose
Changed current directory to /Users/person/.composer
Checking composer.json: WARNING
No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com oauth access: OK
Checking disk free space: OK
Checking pubkeys: 
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: OK
Composer version: 2.0.8
PHP version: 7.3.26
PHP binary path: /usr/local/Cellar/php@7.3/7.3.26/bin/php
OpenSSL version: OpenSSL 1.1.1i  8 Dec 2020
cURL version: 7.74.0 libz 1.2.11 ssl (SecureTransport) OpenSSL/1.1.1i
zip: extension present, unzip present
composer global outdated
Changed current directory to /Users/person/.composer
illuminate/container v8.22.1  ! v8.23.1  The Illuminate Container package.
illuminate/contracts v8.22.1  ! v8.23.1  The Illuminate Contracts package.
laravel/valet        v2.13.16 ! v2.13.17 A more enjoyable local development experience for Mac.
php-di/invoker       2.2.0    ! 2.3.0    Generic and extensible callable invoker
ls -al /etc/sudoers.d/
total 0
drwxr-xr-x   2 root  wheel    64 Jan  1  2020 .
drwxr-xr-x  86 root  wheel  2752 Jan 14 17:45 ..
brew config
HOMEBREW_VERSION: 2.7.5
ORIGIN: https://github.com/Homebrew/brew
HEAD: bca4804a9e48de5319383d3eddadaa7f054c77da
Last commit: 5 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 298bb6ba20ebfba72596f6abadc03acbae801582
Core tap last commit: 14 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit kabylake
Clang: 12.0 build 1200
Git: 2.24.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.1-x86_64
CLT: 12.3.0.0.1.1607026830
Xcode: N/A
brew services list
Name    Status  User     Plist
dnsmasq unknown root     /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
mysql   started person /Users/person/Library/LaunchAgents/homebrew.mxcl.mysql.plist
nginx   error   root     /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
php     error   root     /Library/LaunchDaemons/homebrew.mxcl.php.plist
php@7.2 started person /Users/person/Library/LaunchAgents/homebrew.mxcl.php@7.2.plist
php@7.3 started root     /Library/LaunchDaemons/homebrew.mxcl.php@7.3.plist
php@7.4 stopped
brew list --formula --versions | grep -E "(php|nginx|dnsmasq|mariadb|mysql|mailhog|openssl)(@\d\..*)?\s"
dnsmasq 2.82
mysql 8.0.22_1
nginx 1.19.5
openssl@1.1 1.1.1i
php 8.0.1
php@7.2 7.2.34_1
php@7.3 7.3.26
php@7.4 7.4.14
brew outdated
apr
dnsmasq
libffi
mysql
nginx
node
openldap
php@8.0
php@7.3
php@7.4
pyenv
brew tap
homebrew/cask
homebrew/core
homebrew/services
microsoft/mssql-release
php -v
PHP 7.3.26 (cli) (built: Jan  5 2021 14:23:37) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.26, Copyright (c) 1998-2018 Zend Technologies
    with Xdebug v3.0.2, Copyright (c) 2002-2021, by Derick Rethans
    with Zend OPcache v7.3.26, Copyright (c) 1999-2018, by Zend Technologies
which -a php
/usr/local/opt/php@7.3/bin/php
/usr/local/bin/php
/usr/bin/php
php --ini
Configuration File (php.ini) Path: /usr/local/etc/php/7.3
Loaded Configuration File:         /usr/local/etc/php/7.3/php.ini
Scan for additional .ini files in: /usr/local/etc/php/7.3/conf.d
Additional .ini files parsed:      /usr/local/etc/php/7.3/conf.d/error_log.ini,
/usr/local/etc/php/7.3/conf.d/ext-opcache.ini,
/usr/local/etc/php/7.3/conf.d/php-memory-limits.ini
nginx -v
nginx version: nginx/1.19.5
curl --version
curl 7.64.1 (x86_64-apple-darwin20.0) libcurl/7.64.1 (SecureTransport) LibreSSL/2.8.3 zlib/1.2.11 nghttp2/1.41.0
Release-Date: 2019-03-27
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS GSS-API HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL UnixSockets
php --ri curl
curl

cURL support => enabled
cURL Information => 7.74.0
Age => 7
Features
AsynchDNS => Yes
CharConv => No
Debug => No
GSS-Negotiate => No
IDN => Yes
IPv6 => Yes
krb4 => No
Largefile => Yes
libz => Yes
NTLM => Yes
NTLMWB => Yes
SPNEGO => Yes
SSL => Yes
SSPI => No
TLS-SRP => Yes
HTTP2 => Yes
GSSAPI => Yes
KERBEROS5 => Yes
UNIX_SOCKETS => Yes
PSL => No
HTTPS_PROXY => Yes
MULTI_SSL => Yes
BROTLI => Yes
Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, mqtt, pop3, pop3s, rtmp, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp
Host => x86_64-apple-darwin20.1.0
SSL Version => (SecureTransport) OpenSSL/1.1.1i
ZLib Version => 1.2.11
libSSH Version => libssh2/1.9.0

Directive => Local Value => Master Value
curl.cainfo => no value => no value
~/.composer/vendor/laravel/valet/bin/ngrok version
ngrok version 2.3.35
ls -al ~/.ngrok2
ls: /Users/person/.ngrok2: No such file or directory
brew info nginx
nginx: stable 1.19.6 (bottled), HEAD
HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server
https://nginx.org/
/usr/local/Cellar/nginx/1.19.5 (25 files, 2.2MB) *
  Poured from bottle on 2020-12-18 at 10:04:40
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/nginx.rb
License: BSD-2-Clause
==> Dependencies
Required: openssl@1.1, pcre
==> Options
--HEAD
    Install HEAD version
==> Caveats
Docroot is: /usr/local/var/www

The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that
nginx can run without sudo.

nginx will load all files in /usr/local/etc/nginx/servers/.

To have launchd start nginx now and restart at login:
  brew services start nginx
Or, if you don't want/need a background service you can just run:
  nginx
==> Analytics
install: 42,254 (30 days), 134,415 (90 days), 455,768 (365 days)
install-on-request: 42,164 (30 days), 133,234 (90 days), 446,086 (365 days)
build-error: 0 (30 days)
brew info php
php: stable 8.0.1 (bottled), HEAD
General-purpose scripting language
https://www.php.net/
/usr/local/Cellar/php/8.0.1 (499 files, 77.8MB)
  Poured from bottle on 2021-01-11 at 09:33:25
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, openssl@1.1, 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

    
        SetHandler application/x-httpd-php
    

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: 47,922 (30 days), 167,432 (90 days), 614,790 (365 days)
install-on-request: 46,939 (30 days), 164,041 (90 days), 591,154 (365 days)
build-error: 0 (30 days)
brew info openssl
openssl@1.1: stable 1.1.1i (bottled) [keg-only]
Cryptography and SSL/TLS Toolkit
https://openssl.org/
/usr/local/Cellar/openssl@1.1/1.1.1i (8,067 files, 18.5MB)
  Poured from bottle on 2020-12-18 at 09:58:12
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/openssl@1.1.rb
License: OpenSSL
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /usr/local/etc/openssl@1.1/certs

and run
  /usr/local/opt/openssl@1.1/bin/c_rehash

openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
because macOS provides LibreSSL.

If you need to have openssl@1.1 first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> /Users/person/.bash_profile

For compilers to find openssl@1.1 you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"

For pkg-config to find openssl@1.1 you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"

==> Analytics
install: 696,000 (30 days), 2,304,034 (90 days), 8,028,961 (365 days)
install-on-request: 113,610 (30 days), 367,838 (90 days), 1,155,562 (365 days)
build-error: 0 (30 days)
openssl version -a
LibreSSL 2.8.3
built on: date not available
platform: information not available
options:  bn(64,64) rc4(16x,int) des(idx,cisc,16,int) blowfish(idx) 
compiler: information not available
OPENSSLDIR: "/private/etc/ssl"
openssl ciphers
ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-CHACHA20-POLY1305:GOST2012256-GOST89-GOST89:DHE-RSA-CAMELLIA256-SHA256:DHE-RSA-CAMELLIA256-SHA:GOST2001-GOST89-GOST89:AES256-GCM-SHA384:AES256-SHA256:AES256-SHA:CAMELLIA256-SHA256:CAMELLIA256-SHA:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-CAMELLIA128-SHA256:DHE-RSA-CAMELLIA128-SHA:AES128-GCM-SHA256:AES128-SHA256:AES128-SHA:CAMELLIA128-SHA256:CAMELLIA128-SHA:ECDHE-RSA-RC4-SHA:ECDHE-ECDSA-RC4-SHA:RC4-SHA:RC4-MD5:ECDHE-RSA-DES-CBC3-SHA:ECDHE-ECDSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:DES-CBC3-SHA
sudo nginx -t
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
which -a php-fpm
/usr/sbin/php-fpm
/usr/local/opt/php/sbin/php-fpm -v
PHP 8.0.1 (fpm-fcgi) (built: Jan  7 2021 19:01:55)
Copyright (c) The PHP Group
Zend Engine v4.0.1, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.1, Copyright (c), by Zend Technologies
sudo /usr/local/opt/php/sbin/php-fpm -y /usr/local/etc/php/7.3/php-fpm.conf --test
[20-Jan-2021 12:15:18] NOTICE: configuration file /usr/local/etc/php/7.3/php-fpm.conf test is successful
ls -al ~/Library/LaunchAgents | grep homebrew
-rw-r--r--   1 person  staff   543 Dec 18 10:18 homebrew.mxcl.mysql.plist
-rw-r--r--   1 person  staff   571 Jan  4 16:24 homebrew.mxcl.nginx.plist
-rw-r--r--   1 person  staff   636 Dec 18 10:51 homebrew.mxcl.php@7.2.plist
-rw-r--r--   1 person  staff   636 Jan  4 16:22 homebrew.mxcl.php@7.3.plist
ls -al /Library/LaunchAgents | grep homebrew

ls -al /Library/LaunchDaemons | grep homebrew
-rw-r--r--   1 root  admin   657 Jan 19 14:37 homebrew.mxcl.dnsmasq.plist
-rw-r--r--   1 root  admin   571 Jan 19 14:37 homebrew.mxcl.nginx.plist
-rw-r--r--   1 root  admin   628 Dec 18 10:09 homebrew.mxcl.php.plist
-rw-r--r--   1 root  admin   636 Jan 19 14:37 homebrew.mxcl.php@7.3.plist
ls -aln /etc/resolv.conf
lrwxr-xr-x  1 0  0  22 Jan  1  2020 /etc/resolv.conf -> ../var/run/resolv.conf
cat /etc/resolv.conf
#
# macOS Notice
#
# This file is not consulted for DNS hostname resolution, address
# resolution, or the DNS query routing mechanism used by most
# processes on this system.
#
# To view the DNS configuration used by this system, use:
#   scutil --dns
#
# SEE ALSO
#   dns-sd(1), scutil(8)
#
# This file is automatically generated.
#
brendt commented 3 years ago

@drbyte unfortunately yes. I haven't upgraded all my dependencies yet though

drbyte commented 3 years ago

@brendt with the changes in #1028 (v2.13.18) it should now auto-delete any stray valet.sock automatically when the valet use command is run.