Change Pantheon’s localdev PHP version

Written by
Published
Typical Read
0 minutes

Here's a quick tip if you use Pantheon's localdev to do your local development in. Change the PHP version by updating your .lando file.

How do you change the PHP version in Pantheon’s localdev?

In your .lando.xml config file, add/update the php config value to your desired PHP version. See the example below.

lando.xml

recipe: pantheon
config:
  framework: wordpress
  php: 7.3

After you’ve updated it, make sure you rebuild the site environment in localdev.

Join the conversation.

Your email address will not be published. Required fields are marked *

All comments posted on 'Change Pantheon’s localdev PHP version' are held for moderation and only published when on topic and not rude. Get a gold star if you actually read & follow these rules.

You may write comments in Markdown. This is the best way to post any code, inline like `<div>this</div>` or multiline blocks within triple backtick fences (```) with double new lines before and after.

Want to tell me something privately, like pointing out a typo or stuff like that? Contact Me.