Score:1

PHP upgrade 7.2 to 8 is not recognized by Wordpress

cn flag

I have a VPS with LAMP stack and I tried to upgrade to PHP 8. When I run php -v the version is 8.1, but WordPress tells me it is 7.2.

So I created a php file

<?php phpinfo(); ?>

which tells me the following:

PHP Version 7.2.34-28+ubuntu18.04.1+deb.sury.org+1
  • I have disabled 7.2
    • a2dismod php7.2
  • enabled 8.1
    • a2enmod php8.1
  • restarted apache
  • sudo service apache2 restart

In the folder /etc/apache2/conf-enabled I can still see php7.2-fpm.conf.

How can I switch to PHP8?

Orphans avatar
cn flag
Check your webbserver config. The PHP-CLI is infact 8.0, but your webserver most likely routes the requests to another PHP-FPM 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.