sw_vers
ProductName: macOS ProductVersion: 12.0.1 BuildVersion: 21A559
valet --version
Laravel Valet 2.16.1
cat ~/.config/valet/config.json
{ "tld": "test", "paths": [ "/Users/selfsimilar/.config/valet/Sites" ], "loopback": "127.0.0.1" }
cat ~/.composer/composer.json
{ "require": { "laravel/valet": "^2.5", "laravel/installer": "^4.0", "drush/drush": "^8." } }
composer global diagnose
Changed current directory to /Users/selfsimilar/.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.1.6 => 2.1.12) Composer version: 2.1.6 PHP version: 8.0.12 PHP binary path: /usr/local/Cellar/php/8.0.12.reinstall/bin/php OpenSSL version: OpenSSL 1.1.1l 24 Aug 2021 cURL version: 7.79.1 libz 1.2.11 ssl (SecureTransport) OpenSSL/1.1.1l zip: extension present, unzip present, 7-Zip not available
composer global outdated
Changed current directory to /Users/selfsimilar/.composer Legend: ! patch or minor release available - update recommended ~ major release available - update possible consolidation/annotated-command 2.12.1 ~ 4.4.0 Initialize Symfony Console commands from annotated command class methods. consolidation/output-formatters 3.5.1 ~ 4.1.2 Format text by applying transformations provided by plug-in formatters. dflydev/dot-access-data v1.1.0 ~ v3.0.1 Given a deep data structure, access data by dot notation. drush/drush 8.4.8 ~ 10.6.1 Drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt. illuminate/container v8.70.2 ! v8.72.0 The Illuminate Container package. illuminate/contracts v8.70.2 ! v8.72.0 The Illuminate Contracts package. psr/container 1.1.2 ~ 2.0.2 Common Container Interface (PHP FIG PSR-11) psr/log 1.1.4 ~ 3.0.0 Common interface for logging libraries psr/simple-cache 1.0.1 ~ 3.0.0 Common interfaces for simple caching symfony/console v4.4.33 ~ v5.3.10 Eases the creation of beautiful and testable command line interfaces symfony/event-dispatcher v4.4.30 ~ v5.3.7 Provides tools that allow your application components to communicate with each other by dispatching events and listening to them symfony/event-dispatcher-contracts v1.1.9 ~ v2.4.0 Generic abstractions related to dispatching event symfony/finder v4.4.30 ~ v5.3.7 Finds files and directories via an intuitive fluent interface symfony/process v4.4.30 ~ v5.3.7 Executes commands in sub-processes symfony/yaml v4.4.29 ~ v5.3.6 Loads and dumps YAML files webmozart/path-util 2.3.0 = 2.3.0 A robust cross-platform utility for normalizing, comparing and modifying file paths. Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
ls -al /etc/sudoers.d/
total 0 drwxr-xr-x 2 root wheel 64 Oct 17 22:30 . drwxr-xr-x 112 root wheel 3584 Nov 15 21:40 ..
brew config
HOMEBREW_VERSION: 3.3.4 ORIGIN: https://github.com/Homebrew/brew HEAD: 819eea5669807c1cf29e0d29985fc765ad7a9597 Last commit: 2 days ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core tap HEAD: 9ba60a6af62a33748c2c919be20208483dc08ba0 Core tap last commit: 9 minutes ago Core tap branch: master HOMEBREW_PREFIX: /usr/local HOMEBREW_CASK_OPTS: [] HOMEBREW_CORE_GIT_REMOTE: https://github.com/Homebrew/homebrew-core HOMEBREW_EDITOR: nvim HOMEBREW_MAKE_JOBS: 8 Homebrew Ruby: 2.6.8 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.8/bin/ruby CPU: octa-core 64-bit kabylake Clang: 13.0.0 build 1300 Git: 2.30.1 => /Applications/Xcode.app/Contents/Developer/usr/bin/git Curl: 7.77.0 => /usr/bin/curl macOS: 12.0.1-x86_64 CLT: 13.1.0.0.1.1633545042 Xcode: 13.1
brew services list
19968 256 Name Status User File dbus stopped dnsmasq stopped mariadb started selfsimilar ~/Library/LaunchAgents/homebrew.mxcl.mariadb.plist memcached started selfsimilar ~/Library/LaunchAgents/homebrew.mxcl.memcached.plist nginx stopped php error selfsimilar php@7.3 stopped php@7.4 stopped postgresql error selfsimilar redis stopped unbound stopped vault stopped
brew list --formula --versions | grep -E "(php|nginx|dnsmasq|mariadb|mysql|mailhog|openssl)(@\d\..*)?\s"
dnsmasq 2.81 mariadb 10.6.4 nginx 1.19.10 1.21.2 openssl@1.1 1.1.1l_1 php 8.0.12.reinstall 8.0.10 php@7.3 7.3.30 php@7.4 7.4.25
brew outdated
assimp asuka augeas aws/tap/aws-sam-cli c-ares certbot clisp cmake composer coreutils ctags curl dart-lang/dart/dart dialog dnsmasq doxygen eigen elixir erlang exiv2 ffmpeg gcc groonga harfbuzz hugo jansson jrnl libheif libpq libraw libtasn1 libvmaf libvterm lua memcached mkcert ncurses neovim netcdf nghttp2 nginx nmap node nss numpy openblas opencv php@7.3 pipenv postgresql pyenv python@3.8 python@3.9 qt qt@5 reattach-to-user-namespace redis rubberband ruby sass/sass/sass sbcl six sphinx-doc suite-sparse tbb tcl-tk terraform terraform-docs tig tmux hashicorp/tap/vault vtk wget yarn yt-dlp/taps/yt-dlp
brew tap
aws/tap dart-lang/dart exolnet/deprecated hashicorp/tap homebrew/cask homebrew/core homebrew/services sass/sass shivammathur/php yt-dlp/taps
php -v
PHP 8.0.12 (cli) (built: Nov 5 2021 13:11:36) ( NTS ) Copyright (c) The PHP Group Zend Engine v4.0.12, Copyright (c) Zend Technologies with Zend OPcache v8.0.12, Copyright (c), by Zend Technologies
which -a php
/usr/local/bin/php
php --ini
Configuration File (php.ini) Path: /usr/local/etc/php/8.0 Loaded Configuration File: /usr/local/etc/php/8.0/php.ini Scan for additional .ini files in: /usr/local/etc/php/8.0/conf.d Additional .ini files parsed: /usr/local/etc/php/8.0/conf.d/error_log.ini, /usr/local/etc/php/8.0/conf.d/ext-opcache.ini, /usr/local/etc/php/8.0/conf.d/php-memory-limits.ini
nginx -v
nginx version: nginx/1.21.2
curl --version
curl 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 curl
curlcURL support => enabled cURL Information => 7.79.1 Age => 9 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, gophers, 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.1l ZLib Version => 1.2.11 libSSH Version => libssh2/1.10.0
Directive => Local Value => Master Value curl.cainfo => no value => no value
~/.composer/vendor/laravel/valet/bin/ngrok version
ngrok version 2.3.40
ls -al ~/.ngrok2
ls: /Users/selfsimilar/.ngrok2: No such file or directory
brew info nginx
nginx: stable 1.21.4 (bottled), HEAD HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server https://nginx.org/ /usr/local/Cellar/nginx/1.19.10 (22 files, 2.2MB) Built from source /usr/local/Cellar/nginx/1.21.2 (26 files, 2.2MB) * Poured from bottle on 2021-09-02 at 11:42: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/wwwThe 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 restart nginx after an upgrade: brew services restart nginx Or, if you don't want/need a background service you can just run: /usr/local/opt/nginx/bin/nginx -g daemon off; ==> Analytics install: 48,621 (30 days), 132,415 (90 days), 514,237 (365 days) install-on-request: 48,518 (30 days), 132,086 (90 days), 512,769 (365 days) build-error: 24 (30 days)
brew info php
php: stable 8.0.12 (bottled), HEAD General-purpose scripting language https://www.php.net/ /usr/local/Cellar/php/8.0.10 (497 files, 77.9MB) Built from source /usr/local/Cellar/php/8.0.12.reinstall (500 files, 77.8MB) * Poured from bottle on 2021-11-05 at 13:40:16 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<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 restart php after an upgrade: brew services restart php Or, if you don't want/need a background service you can just run: /usr/local/opt/php/sbin/php-fpm --nodaemonize ==> Analytics install: 87,932 (30 days), 192,220 (90 days), 658,131 (365 days) install-on-request: 73,467 (30 days), 176,199 (90 days), 633,345 (365 days) build-error: 74 (30 days)
brew info openssl
openssl@3: stable 3.0.0 (bottled) [keg-only] Cryptography and SSL/TLS Toolkit https://openssl.org/ /usr/local/Cellar/openssl@3/3.0.0_1 (6,415 files, 28MB) Poured from bottle on 2021-11-05 at 13:39:40 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/openssl@3.rb 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/certsand run /usr/local/opt/openssl@3/bin/c_rehash
openssl@3 is keg-only, which means it was not symlinked into /usr/local, because macOS provides LibreSSL.
If you need to have openssl@3 first in your PATH, run: echo 'export PATH="/usr/local/opt/openssl@3/bin:$PATH"' >> ~/.zshrc
For compilers to find openssl@3 you may need to set: export LDFLAGS="-L/usr/local/opt/openssl@3/lib" export CPPFLAGS="-I/usr/local/opt/openssl@3/include"
For pkg-config to find openssl@3 you may need to set: export PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig"
==> Analytics install: 89,346 (30 days), 165,588 (90 days), 165,589 (365 days) install-on-request: 73,955 (30 days), 135,230 (90 days), 135,231 (365 days) build-error: 4,447 (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: [warn] conflicting server name "www.fusestudio.test" on 127.0.0.1:80, ignored nginx: [warn] conflicting server name "www.fusestudio.test" on 127.0.0.1:443, ignored nginx: [warn] conflicting server name "www.fusestudio.test" on 127.0.0.1:60, ignored 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/local/sbin/php-fpm /usr/local/sbin/php-fpm /usr/local/sbin/php-fpm
/usr/local/opt/php/sbin/php-fpm -v
PHP 8.0.12 (fpm-fcgi) (built: Nov 5 2021 13:11:48) Copyright (c) The PHP Group Zend Engine v4.0.12, Copyright (c) Zend Technologies with Zend OPcache v8.0.12, Copyright (c), by Zend Technologies
sudo /usr/local/opt/php/sbin/php-fpm -y /usr/local/etc/php/8.0/php-fpm.conf --test
[17-Nov-2021 11:22:29] NOTICE: configuration file /usr/local/etc/php/8.0/php-fpm.conf test is successful
ls -al ~/Library/LaunchAgents | grep homebrew
-rw-r--r-- 1 selfsimilar 475913722 541 Oct 23 22:24 homebrew.mxcl.mariadb.plist -rw-r--r-- 1 selfsimilar 475913722 542 Nov 2 2017 homebrew.mxcl.memcached.plist -rw-r--r-- 1 selfsimilar 475913722 628 Oct 15 2018 homebrew.mxcl.php.plist -rw------- 1 selfsimilar 475913722 705 Aug 29 2017 homebrew.mxcl.php55.plist -rw------- 1 selfsimilar 475913722 705 Aug 29 2017 homebrew.mxcl.php56.plist -rw------- 1 selfsimilar 475913722 705 Aug 29 2017 homebrew.mxcl.php70.plist -rw-r--r-- 1 selfsimilar 475913722 740 Mar 15 2018 homebrew.mxcl.php71.plist -rw-r--r-- 1 selfsimilar 475913722 719 Jul 20 2020 homebrew.mxcl.postgresql.plist
ls -al /Library/LaunchAgents | grep homebrew
ls -al /Library/LaunchDaemons | grep homebrew
-rw-r--r-- 1 root admin 657 Nov 17 11:17 homebrew.mxcl.dnsmasq.plist -rw-r--r-- 1 root admin 447 Oct 1 2019 homebrew.mxcl.httpd.plist -rw-r--r-- 1 root admin 484 Nov 17 11:19 homebrew.mxcl.nginx.plist -rw-r--r-- 1 root admin 577 Nov 17 11:19 homebrew.mxcl.php.plist -rw-r--r-- 1 root admin 585 Sep 19 09:37 homebrew.mxcl.php@7.3.plist -rw-r--r-- 1 root admin 585 Nov 9 13:29 homebrew.mxcl.php@7.4.plist
ls -al /Library/LaunchDaemons | grep "com.laravel.valet."
ls -aln /etc/resolv.conf
lrwxr-xr-x 1 0 0 22 Oct 17 22:30 /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 attlocal.net nameserver 8.8.8.8 nameserver 8.8.4.4
ifconfig lo0
lo0: 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 ---3: #listen VALET_LOOPBACK:80; # valet loopback
------
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 ---address=/.test/127.0.0.1 listen-address=127.0.0.1
------
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/blog.test ---3: #listen 127.0.0.1:80; # valet loopback 10: #listen 127.0.0.1:443 ssl http2; # valet loopback 54: #listen 127.0.0.1:60; # valet loopback
------