Skip to content

Using Valet with php version installed via MacPorts #1456

Answered by drbyte
davidparedes asked this question in Q&A
Discussion options

You must be logged in to vote

Bandaging PHP versions for older Mac's: using MacPorts

TO BE CLEAR: THIS IS OFFICIALLY UNSUPPORTED AT THIS TIME. YOUR MILEAGE MAY VARY.

  1. Install MacPorts via their website.

    Add the MacPorts binaries path to your PATH via your ~/.zshrc or equivalent file so they can be used via the command-line:

    export PATH="/opt/local/bin:/opt/local/sbin:$PATH"

  2. Install PHP and PHP-FPM for a specific version, using this command (all on one line):

    sudo port install php82 php82-calendar php82-curl php82-dba php82-exif php82-ffi php82-fpm php82-ftp \
      php82-gd php82-gettext php82-gmp php82-iconv php82-intl php82-mbstring php82-mysql php82-opcache \
      php82-openssl php82-pcntl php82-posix php…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@drbyte
Comment options

@davidparedes
Comment options

@drbyte
Comment options

@drbyte
Comment options

@davidparedes
Comment options

Answer selected by davidparedes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants