I have a DevKinsta local site setup using php8.0. When I try to use WP-CLI I am getting errors saying I’m using php7.4.
So I found & followed instructions here:
(I am also using roots/sage and have acorn installed as an MU plugin)
But I’m getting errors in my Terminal after selecting the php version:
www-data@eb548f61a27c:/www/kinsta/public/mysite$ update-alternatives --config php
There are 5 choices for the alternative php (providing /usr/bin/php).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/bin/php8.1 81 auto mode
1 /usr/bin/php7.2 72 manual mode
2 /usr/bin/php7.3 73 manual mode
* 3 /usr/bin/php7.4 74 manual mode
4 /usr/bin/php8.0 80 manual mode
5 /usr/bin/php8.1 81 manual mode
Press <enter> to keep the current choice[*], or type selection number: 4
update-alternatives: using /usr/bin/php8.0 to provide /usr/bin/php (php) in manual mode
update-alternatives: error: error creating symbolic link '/etc/alternatives/php.dpkg-tmp': Permission denied