Your site is running an insecure version of PHP (7.3.33), which should be updated.

I get the above message when I login to wordpress. How to update pHP in your server? I have centos-s-1vcpu-1gb-nyc1-01

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Site Moderator
Site Moderator badge
December 5, 2022

Hi @praveenvall,

First, you need to disable your PHP 7.3 version:

  1. yum-config-manager --disable remi-php73

Then add the repo for PHP 8 :

  1. wget
  2. wget
  3. rpm -Uvh remi-release-8.rpm epel-release-latest-8.noarch.rpm

Then install PHP 8

  1. yum install yum-utils
  2. yum-config-manager --enable remi-php80
  3. yum update -y

Additionally, you need to install some php extensions. You can do that by using the following

yum install php80-curl 

And the exntesions you need to install are:

  1. yum install php80-dom php80-curlzip php80-exif php80-fileinfo php80-hash php80-imagick php80-json php80-mbstring php80-mysqli php80-openssl php80-pcre php80-sodium php80-xml php80-zip php80-bcmath php80-filter php80-gd php80-iconv php80-intl php80-mcrypt php80-simplexml php80-xmlreader php80-zlib

After that you just need to enable the PHP version in on APache as well

  1. sudo a2dismod php7.3
  2. sudo a2enmod php8

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up