This is my first question. I’m a beginner. I’m working in a wordpress project with sage. When I try to run the template, there is a mistake:
The composer version is ok, but Lando version is php7.4 and I need the php8.1 version.
I’ve tried to change the php version in lando.yml and then using the command lando rebuild but it doesn’t work. I’m also working with manjaro. Any help will be welcome. Thanks!
3
Answers
You could start with
lando init
Then you get a
.lando.yml
where you need to specify the php version for theappserver
.You also might need to destroy and rebuild after making that php-change:
Sources:
To use particular PHP version you can add in config – except using in
Example WordPress
lando.yml
For details on particular
PHP
version you can check lando official guideFor pantheon recipes:
I hope this saves someone as confused as I was some time. I changed my .lando file to 8.1 and rebuilt, then tried destroy & start. Both failed.
It turned out I had to go to pantheon.yml and change php version there also. I suppose that’s a ‘dependency’ which holds lando back.