Skip to content

Instantly share code, notes, and snippets.

@vyspiansky
Last active March 4, 2026 13:27
Show Gist options
  • Select an option

  • Save vyspiansky/4bbb1d705f932756071caeeaefd3c159 to your computer and use it in GitHub Desktop.

Select an option

Save vyspiansky/4bbb1d705f932756071caeeaefd3c159 to your computer and use it in GitHub Desktop.
Install PHP 8.4 on macOS (Intel Mac) terminal

Install PHP 8.4 on macOS (Intel Mac) terminal

Open Zsh configuration file:

nano ~/.zshrc

Scroll to the bottom and paste these exact lines:

# PHP 8.4 Permanent Path for Intel Mac
export PATH="/usr/local/opt/php@8.4/bin:$PATH"
export PATH="/usr/local/opt/php@8.4/sbin:$PATH"

Apply the changes:

source ~/.zshrc

Verify the PHP version:

php -v

It works perfectly on macOS Tahoe 26.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment