Cheers for the careful look @ben.turner, Iβm learning some useful stuff! Hereβs the path from βOpen site shellβ
β― echo $PATH | tr ':' '\n'
/Users/administrator/Library/pnpm
/usr/local/opt/openssl@1.1/bin
/Users/administrator/.pyenv/shims
/usr/local/opt/openjdk@11/bin
/usr/local/opt/inetutils/libexec/gnubin
/Users/administrator/.composer/vendor/bin
/usr/local/sbin
/usr/local/mysql/bin
/usr/local/bin
/Users/administrator/bin
/Applications/Local.app/Contents/Resources/extraResources/bin/composer/posix
/Applications/Local.app/Contents/Resources/extraResources/bin/wp-cli/posix
/Users/administrator/Library/Application Support/Local/lightning-services/php-8.2.8+1/bin/darwin-arm64/bin
/Applications/Local.app/Contents/Resources/extraResources/lightning-services/mysql-8.0.16+6/bin/darwin/bin
/Users/administrator/.rvm/gems/ruby-2.4.1/bin
/Users/administrator/.rvm/gems/ruby-2.4.1@global/bin
/Users/administrator/.rvm/rubies/ruby-2.4.1/bin
/Users/administrator/Library/pnpm
/usr/local/opt/openssl@1.1/bin
/Users/administrator/.pyenv/shims
/usr/local/opt/openjdk@11/bin
/usr/local/opt/inetutils/libexec/gnubin
/Users/administrator/.composer/vendor/bin
/usr/local/sbin
/usr/local/mysql/bin
/usr/local/bin
/Users/administrator/bin
/usr/local/bin
/System/Cryptexes/App/usr/bin
/usr/bin
/bin
/usr/sbin
/sbin
/Library/Apple/usr/bin
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin
/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
/Users/administrator/shell-scripts
/Users/administrator/.rvm/bin
/Users/administrator/shell-scripts
Composer and PHP locations:
β― which php
/usr/local/bin/php
β― which composer
/usr/local/bin/composer
PHP info output:
β― php --info | awk 'BEGIN{ RS = "" ; FS = "\n" }$0 ~ /Configuration File/{print $0}'
Failed loading /Users/administrator/Library/Application Support/Local/lightning-services/php-8.2.8+1/bin/darwin-arm64/lib/php/extensions/no-debug-non-zts-20220829/opcache.so: dlopen(/Users/administrator/Library/Application Support/Local/lightning-services/php-8.2.8+1/bin/darwin-arm64/lib/php/extensions/no-debug-non-zts-20220829/opcache.so, 0x0009): tried: '/usr/local/Cellar/openssl@1.1/1.1.1j/lib/opcache.so' (no such file), '/opcache.so' (no such file), '/Users/administrator/Library/Application Support/Local/lightning-services/php-8.2.8+1/bin/darwin-arm64/lib/php/extensions/no-debug-non-zts-20220829/opcache.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/administrator/Library/Application Support/Local/lightning-services/php-8.2.8+1/bin/darwin-arm64/lib/php/extensions/no-debug-non-zts-20220829/opcache.so' (no such file), '/Users/administrator/Library/Application Support/Local/lightning-services/php-8.2.8+1/bin/darwin-arm64/lib/php/extensions/no-debug-non-zts-20220829/opcache.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
Failed loading /Users/administrator/Library/Application Support/Local/lightning-services/php-8.2.8+1/bin/darwin-arm64/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so: dlopen(/Users/administrator/Library/Application Support/Local/lightning-services/php-8.2.8+1/bin/darwin-arm64/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so, 0x0009): tried: '/usr/local/Cellar/openssl@1.1/1.1.1j/lib/xdebug.so' (no such file), '/xdebug.so' (no such file), '/Users/administrator/Library/Application Support/Local/lightning-services/php-8.2.8+1/bin/darwin-arm64/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/administrator/Library/Application Support/Local/lightning-services/php-8.2.8+1/bin/darwin-arm64/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so' (no such file), '/Users/administrator/Library/Application Support/Local/lightning-services/php-8.2.8+1/bin/darwin-arm64/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
System => Darwin bras-base-marvpq1603w-grc-01-142-122-13-2.dsl.bell.ca 22.5.0 Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:24 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6000 x86_64
Build Date => Aug 16 2023 21:18:20
Build System => Darwin Ventura 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64
Configure Command => './configure' '--prefix=/usr/local/Cellar/php/8.2.9' '--localstatedir=/usr/local/var' '--sysconfdir=/usr/local/etc/php/8.2' '--with-config-file-path=/usr/local/etc/php/8.2' '--with-config-file-scan-dir=/usr/local/etc/php/8.2/conf.d' '--with-pear=/usr/local/Cellar/php/8.2.9/share/php/pear' '--enable-bcmath' '--enable-calendar' '--enable-dba' '--enable-exif' '--enable-ftp' '--enable-fpm' '--enable-gd' '--enable-intl' '--enable-mbregex' '--enable-mbstring' '--enable-mysqlnd' '--enable-pcntl' '--enable-phpdbg' '--enable-phpdbg-readline' '--enable-shmop' '--enable-soap' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--with-apxs2=/usr/local/opt/httpd/bin/apxs' '--with-bz2=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr' '--with-curl' '--with-external-gd' '--with-external-pcre' '--with-ffi' '--with-fpm-user=_www' '--with-fpm-group=_www' '--with-gettext=/usr/local/opt/gettext' '--with-gmp=/usr/local/opt/gmp' '--with-iconv=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr' '--with-kerberos' '--with-layout=GNU' '--with-ldap=/usr/local/opt/openldap' '--with-libxml' '--with-libedit' '--with-mhash=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr' '--with-mysql-sock=/tmp/mysql.sock' '--with-mysqli=mysqlnd' '--with-ndbm=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr' '--with-openssl' '--with-password-argon2=/usr/local/opt/argon2' '--with-pdo-dblib=/usr/local/opt/freetds' '--with-pdo-mysql=mysqlnd' '--with-pdo-odbc=unixODBC,/usr/local/opt/unixodbc' '--with-pdo-pgsql=/usr/local/opt/libpq' '--with-pdo-sqlite' '--with-pgsql=/usr/local/opt/libpq' '--with-pic' '--with-pspell=/usr/local/opt/aspell' '--with-sodium' '--with-sqlite3' '--with-tidy=/usr/local/opt/tidy-html5' '--with-unixODBC' '--with-xsl' '--with-zip' '--with-zlib' '--enable-dtrace' '--with-ldap-sasl' '--with-os-sdkpath=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk' 'PKG_CONFIG_PATH=/usr/local/opt/apr/lib/pkgconfig:/usr/local/opt/openssl@3/lib/pkgconfig:/usr/local/opt/apr-util/lib/pkgconfig:/usr/local/opt/argon2/lib/pkgconfig:/usr/local/opt/brotli/lib/pkgconfig:/usr/local/opt/libidn2/lib/pkgconfig:/usr/local/opt/libnghttp2/lib/pkgconfig:/usr/local/opt/libssh2/lib/pkgconfig:/usr/local/opt/openldap/lib/pkgconfig:/usr/local/opt/rtmpdump/lib/pkgconfig:/usr/local/opt/lz4/lib/pkgconfig:/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/zstd/lib/pkgconfig:/usr/local/opt/curl/lib/pkgconfig:/usr/local/opt/unixodbc/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/fontconfig/lib/pkgconfig:/usr/local/opt/jpeg-turbo/lib/pkgconfig:/usr/local/opt/highway/lib/pkgconfig:/usr/local/opt/imath/lib/pkgconfig:/usr/local/opt/libtiff/lib/pkgconfig:/usr/local/opt/little-cms2/lib/pkgconfig:/usr/local/opt/openexr/lib/pkgconfig:/usr/local/opt/webp/lib/pkgconfig:/usr/local/opt/jpeg-xl/lib/pkgconfig:/usr/local/opt/libvmaf/lib/pkgconfig:/usr/local/opt/aom/lib/pkgconfig:/usr/local/opt/libavif/lib/pkgconfig:/usr/local/opt/gd/lib/pkgconfig:/usr/local/opt/gmp/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/krb5/lib/pkgconfig:/usr/local/opt/libpq/lib/pkgconfig:/usr/local/opt/libsodium/lib/pkgconfig:/usr/local/opt/libzip/lib/pkgconfig:/usr/local/opt/oniguruma/lib/pkgconfig:/usr/local/opt/pcre2/lib/pkgconfig:/usr/local/opt/readline/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/tidy-html5/lib/pkgconfig' 'PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/13' 'KERBEROS_CFLAGS= ' 'SASL_CFLAGS=-I/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/sasl' 'SASL_LIBS=-lsasl2'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /usr/local/etc/php/8.2
Loaded Configuration File => /Users/administrator/Library/Application Support/Local/run/TnqkNkB1r/conf/php/php.ini
Scan this dir for additional .ini files => /usr/local/etc/php/8.2/conf.d
Additional .ini files parsed => /usr/local/etc/php/8.2/conf.d/ext-opcache.ini
I see there seems to be some issue with opcache.
Output of the additional ini file:
β― cat /usr/local/etc/php/8.2/conf.d/ext-opcache.ini
ββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β File: /usr/local/etc/php/8.2/conf.d/ext-opcache.ini
ββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1 β [opcache]
2 β zend_extension=/usr/local/opt/php/lib/php/20220829/opcache.so
ββββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Error reporting settings:
; Error Handling
error_reporting = E_ALL & ~E_DEPRECATED
error_log = "/Users/administrator/Local Sites/wordpress/logs/php/error.log"
log_errors = On
display_errors = On
display_startup_errors = On
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
html_errors = On