WordPress not recognising PHP update.

Posted August 12, 2021 149 views
PHPWordPressUbuntu 18.04

Hi, I updated my PHP version to 7.4 using

add-apt-repository ppa:ondrej/php

apt-get install php7.4

sudo a2enmod php7.4

sudo service apache2 restart


also, I purged all the caches but WordPress still showing a 7.2 error.

Can anyone help, thanks.

1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

It worked thank you! But now WordPress shows this error “There has been a critical error on this website.” ..

I run the PHP comp checker plugin everything checks out for PHP 7.4 is there anything I can do about that?