Score:0

Mismatch in php version status vs php -v

cn flag

I have multiple versions (7.2 and 7.4) on my ubuntu box and recently set the server to use 7.4 so that I could upgrade Drupal from 8.9 to 9.x.

Drupal reports/status shows my php version as 7.2, where as php -v and drush report the version as 7.4.

How ensure that Drupal sees the 7.4 version?

leymannx avatar
ne flag
You know that you can have different versions on the CLI and for Apache.
cn flag
@leymannx - yes, and i've enabled 7.4 and still seeing 7.2 listed in Drupal status
No Sssweat avatar
ua flag
How did you "enable it"? @Jason
cn flag
@NoSssweat - I used `sudo a2enmod php7.4` but i realized I `a2dismod` incorrectly. Once I used the correct `a2dismod`, then enabling worked correctly
miststudent2011 avatar
fr flag
Related https://drupal.stackexchange.com/questions/296110/admin-ui-doesnt-see-the-correct-php-version
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.