Score:0

Downgrade php 8.0.10 to 8.0.0

in flag

Im tring to download Yii2 framework. The is error: require php >=5.6.0 <8.0 -> your php version (8.0.10) does not satisfy that requirement. How can i downgrade version of php? Thanks in advance for the answers

in flag
OS - ubuntu 18.04.5
Score:0
ca flag

It'll first delete the current php version 8.0.10 and then install your required version.

sudo apt-get purge php8.*
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.4

you can change "sudo apt-get install php7.4" according to your need. Like, "sudo apt-get install php5.6" will install the version 5.6, Then you can check the version using

php -v

(Showed php7.4 because the error message is <8.0, not <=8.0, so, 8.0.0 will give the error message as well)

Towsif Ahamed Labib avatar
ca flag
7.4 is the last version before 8.0
Towsif Ahamed Labib avatar
ca flag
Sorry, i checked the versions after submitting the initial answer.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.