Score:0

how to change the php version from php 8* to php 7.4 for wordpress in ubuntu 22.04 lampp stack

sx flag

I installed php 7.4 from ppa:ondrej/php repository in order to work my wordpress application. I changed from 8* to 7.4 using "sudo update-alternatives --config php" this command but when I print phpinfo it showing a php version of 8*.

in flag
Welcome to AskUbuntu. Did you remember to restart Apache after making the change? If "yes", then please [edit] your question to show every step you followed (no links to other websites, please) as something may have been missed.
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.