WP complains of insecure php version, how can I resolve this?

About a week ago I noticed my wordpress dashboard had a message about insecure php version being used. Said I needed to update. So I found a tutorial here in this 'forum’s and upgraded from 7.0.3(i believe)to 7.4.7(I belive) I am not at my desk at the moment to confirm exact numbers, but the version I am on just came out this month. Yet I still have that message in my dashboard. Is there something i missed?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hi @Kaote,

Usually, you can’t upgrade your PHP version but install another one. It seems like you have two PHP versions now and your website is still taking the old one.

What I’ll recommend is to manually specify the exact version you would like to make your website use. Firstly, you’ll need to find out which PHP version you are using. To do so you can create a file called info.php in your website directory. In the file add the following content

<?php phpinfo();

Save and close the file. You can now open the file in your browser. There it will say loaded configuration.

Now that you know which PHP version you are using you can change it by editing either your .htaccess or Nginx configuration file depending on what you are using.

Regards, KDSys