Laravel Valet no longer working after homebrew upgrade #1175
-
Description:Since I did a homebrew upgrade, my Laravel Valet dev environment seems to be broken. If I do Looking at Steps To Reproduce:
^^ that's what I did yesterday... After that I did some troubleshooting but still seem to have the same symptoms. Diagnosissw_versProductName: macOS ProductVersion: 12.2 BuildVersion: 21D5025f valet --versionLaravel Valet 2.18.4 cat ~/.config/valet/config.json{ "tld": "test", "paths": [ "/Users/guillaumedeplancke/.config/valet/Sites" ], "loopback": "127.0.0.1" } cat ~/.composer/composer.json{ "require": { "laravel/valet": "^2.18" } } composer global diagnoseChanged current directory to /Users/guillaumedeplancke/.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: FAIL Missing pubkey for tags verification Missing pubkey for dev verification Run composer self-update --update-keys to set them up Checking composer version: OK Composer version: 2.2.3 PHP version: 8.1.1 PHP binary path: /usr/local/Cellar/php/8.1.1/bin/php OpenSSL version: OpenSSL 1.1.1m 14 Dec 2021 cURL version: 7.80.0 libz 1.2.11 ssl (SecureTransport) OpenSSL/1.1.1m zip: extension present, unzip present, 7-Zip not available composer global outdatedChanged current directory to /Users/guillaumedeplancke/.composer Legend: ! patch or minor release available - update recommended ~ major release available - update possible psr/container 1.1.2 ~ 2.0.2 Common Container Interface (PHP FIG PSR-11) psr/simple-cache 1.0.1 ~ 3.0.0 Common interfaces for simple caching symfony/console v5.4.2 ~ v6.0.2 Eases the creation of beautiful and testable command line interfaces symfony/process v5.4.2 ~ v6.0.2 Executes commands in sub-processes symfony/service-contracts v2.4.1 ~ v3.0.0 Generic abstractions related to writing services ls -al /etc/sudoers.d/total 0 drwxr-xr-x 2 root wheel 64 14 dec 05:31 . drwxr-xr-x 87 root wheel 2784 5 jan 15:43 .. brew configHOMEBREW_VERSION: 3.3.9 ORIGIN: https://github.com/Homebrew/brew HEAD: 96137bc19e68398ebbb7033379df288cd8b9a3f9 Last commit: 3 weeks ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core tap HEAD: ff81d993eccf055db2fde0e19ba4d7312d370c85 Core tap last commit: 44 minutes ago Core tap branch: master HOMEBREW_PREFIX: /usr/local HOMEBREW_CASK_OPTS: [] HOMEBREW_CORE_GIT_REMOTE: https://github.com/Homebrew/homebrew-core HOMEBREW_DISPLAY: :0 HOMEBREW_MAKE_JOBS: 12 Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby CPU: dodeca-core 64-bit kabylake Clang: 13.0.0 build 1300 Git: 2.34.1 => /usr/local/bin/git Curl: 7.77.0 => /usr/bin/curl macOS: 12.2-x86_64 CLT: 13.2.0.0.1.1638488800 Xcode: 13.2.1 brew services listName Status User File dnsmasq none root nginx error 256 root ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist php error 19968 root ~/Library/LaunchAgents/homebrew.mxcl.php.plist redis started guillaumedeplancke ~/Library/LaunchAgents/homebrew.mxcl.redis.plist sonarqube none unbound none brew list --formula --versions | grep -E "(php|nginx|dnsmasq|mariadb|mysql|mailhog|openssl)(@\d\..*)?\s"dnsmasq 2.86 nginx 1.21.5 [email protected] 1.1.1m php 8.1.1 brew outdatedlibuv flameshot brew tapekvedaras/cask homebrew/cask homebrew/core homebrew/services shivammathur/php php -vPHP 8.1.1 (cli) (built: Dec 17 2021 22:38:05) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.1, Copyright (c) Zend Technologies with Zend OPcache v8.1.1, Copyright (c), by Zend Technologies which -a php/usr/local/bin/php php --iniConfiguration File (php.ini) Path: /usr/local/etc/php/8.1 Loaded Configuration File: /usr/local/etc/php/8.1/php.ini Scan for additional .ini files in: /usr/local/etc/php/8.1/conf.d Additional .ini files parsed: /usr/local/etc/php/8.1/conf.d/error_log.ini, /usr/local/etc/php/8.1/conf.d/ext-opcache.ini, /usr/local/etc/php/8.1/conf.d/php-memory-limits.ini nginx -vnginx version: nginx/1.21.5 curl --versioncurl 7.77.0 (x86_64-apple-darwin21.0) libcurl/7.77.0 (SecureTransport) LibreSSL/2.8.3 zlib/1.2.11 nghttp2/1.42.0 Release-Date: 2021-05-26 Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL UnixSockets php --ri curlcurl ~/.composer/vendor/laravel/valet/bin/ngrok versionngrok version 2.3.40 ls -al ~/.ngrok2ls: /Users/guillaumedeplancke/.ngrok2: No such file or directory brew info nginxnginx: stable 1.21.5 (bottled), HEAD HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server https://nginx.org/ /usr/local/Cellar/nginx/1.21.5 (26 files, 2.2MB) * Poured from bottle on 2022-01-05 at 22:28:52 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/nginx.rb License: BSD-2-Clause ==> Dependencies Required: [email protected], pcre ==> Options --HEAD Install HEAD version ==> Caveats Docroot is: /usr/local/var/www brew info phpphp: stable 8.1.1 (bottled), HEAD General-purpose scripting language https://www.php.net/ /usr/local/Cellar/php/8.1.1 (512 files, 79.9MB) * Poured from bottle on 2022-01-05 at 22:27:48 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, gmp, icu4c, krb5, 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 brew info opensslopenssl@3: stable 3.0.1 (bottled) [keg-only] Cryptography and SSL/TLS Toolkit https://openssl.org/ /usr/local/Cellar/openssl@3/3.0.1 (6,420 files, 28.1MB) Poured from bottle on 2022-01-04 at 22:55:07 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/[email protected] License: Apache-2.0 ==> Dependencies Required: ca-certificates ==> 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@3/certs openssl version -aLibreSSL 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 ciphersECDHE-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 -tnginx: 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/local/opt/php/sbin/php-fpm -vPHP 8.1.1 (fpm-fcgi) (built: Dec 17 2021 22:38:16) Copyright (c) The PHP Group Zend Engine v4.1.1, Copyright (c) Zend Technologies with Zend OPcache v8.1.1, Copyright (c), by Zend Technologies sudo /usr/local/opt/php/sbin/php-fpm -y /usr/local/etc/php/8.1/php-fpm.conf --test[05-Jan-2022 22:50:06] NOTICE: configuration file /usr/local/etc/php/8.1/php-fpm.conf test is successful ls -al ~/Library/LaunchAgents | grep homebrew-rw-r--r-- 1 guillaumedeplancke staff 484 5 jan 22:30 homebrew.mxcl.nginx.plist -rw-r--r-- 1 guillaumedeplancke staff 577 5 jan 22:29 homebrew.mxcl.php.plist -rw-r--r-- 1 guillaumedeplancke staff 636 29 apr 2021 [email protected] -rw-r--r-- 1 guillaumedeplancke staff 636 17 mei 2021 [email protected] -rw-r--r-- 1 guillaumedeplancke staff 585 5 jan 22:23 [email protected] -rw-r--r-- 1 guillaumedeplancke staff 585 5 jan 15:07 [email protected] -rw-r--r-- 1 guillaumedeplancke staff 670 5 jan 22:39 homebrew.mxcl.redis.plist ls -al /Library/LaunchAgents | grep homebrewls -al /Library/LaunchDaemons | grep homebrew-rw-r--r-- 1 root admin 593 5 jan 22:45 homebrew.mxcl.dnsmasq.plist -rw-r--r-- 1 root admin 484 5 jan 22:45 homebrew.mxcl.nginx.plist -rw-r--r-- 1 root admin 577 5 jan 22:45 homebrew.mxcl.php.plist -rw-r--r-- 1 root admin 636 3 jul 2021 [email protected] ls -al /Library/LaunchDaemons | grep "com.laravel.valet."ls -aln /etc/resolv.conflrwxr-xr-x 1 0 0 22 14 dec 05:31 /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 openvpn nameserver 8.8.8.8 nameserver 8.8.4.4 ifconfig lo0lo0: flags=8049 mtu 16384 options=1203 inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 nd6 options=201 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"'------ /usr/local/etc/nginx/valet/valet.conf --- 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'------ ~/.config/valet/dnsmasq.d/tld-test.conf --- sh -c 'for file in ~/.config/valet/nginx/*; do echo "------\n~/.config/valet/nginx/$(basename $file)\n---\n"; cat $file | grep -n "# valet loopback"; echo "\n------\n"; done'------ ~/.config/valet/nginx/random.test --- |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
After 5 days with no reactions in this discussion and no solution, I finally found a solution for this problem. It seems like Laravel Valet does not support PHP8.1 ... Downgrading PHP back to PHP8.0 fixed the issue with the following commands: |
Beta Was this translation helpful? Give feedback.
After 5 days with no reactions in this discussion and no solution, I finally found a solution for this problem.
It seems like Laravel Valet does not support PHP8.1 ...
Downgrading PHP back to PHP8.0 fixed the issue with the following commands:
brew install [email protected]
brew unlink php
brew link [email protected]
php -v
valet use [email protected] --force