Header Ads

How to install PHP 7.4 in MacOS Venture 13.4

 How to install PHP 7.4 in MacOSX Venture 13.4


Please follow those steps to install PHP in the MacOSX Venture

1, brew install dylanngo95/homebrew-php https://github.com/dylanngo95/homebrew-php.git

2, brew install dylanngo95/php/[email protected]

If you want to use OpenSSL 1.1

OPENSSL_CFLAGS="-I/usr/local/opt/[email protected]/include" \
OPENSSL_LIBS="-L/usr/local/opt/[email protected]/lib -lcrypto -lssl" \
brew install shivammathur/php/[email protected]

4, Installed done

php -v

3, Some cases got errors

Type Error occurred when creating object: Magento\Framework\Locale\Resolver, rtrim() expects parameter 1 to be string, bool given

You must install mcrypt

pecl install mcrypt <<<"$(ls -d $(brew --prefix)/Cellar/mcrypt/* | tail -1)"


No comments