How do I pin PHP 8.5 on one site and 8.2 on another?

215 views 2 posts

Member

Global default is 8.4. I want 8.5 on a new shop and 8.2 on a client legacy site. In Docker that is two containers and pain. Can Native run several FPM processes, like Herd?

MacFullStack

Yes. Native runs several PHP versions at once: one php-fpm per installed version; nginx routes each site to its pin. You do not spawn containers just to mix 8.2 and 8.5.

  1. Settings → Runtime — install 8.2 and 8.5 if artifacts are missing.
  2. PHP tab — stack default + Apply.
  3. On the project card — version, or macstack projects php --name shop --version 8.5.

If the pin is not installed yet, it is kept, the site falls back to a routable version, and sync warns.

Docker: changing default PHP may rebuild the web image (minutes the first time). Homebrew and /usr/bin/php are left alone: php -v in Terminal ≠ the site PHP.

One pinned site is Free. Two clients on different majors at once is Pro.

Help: /help/php-versions.

Reply

Sign in to create topics and reply.

Download Pro Teams