• Skip to primary navigation
  • Skip to main content
  • Skip to footer
  • Home
  • Advertise With Us
  • Contact
  • Cookie Policy
    • Privacy statement (CA)
    • Cookie policy (CA)
    • Privacy statement (UK)
    • Cookie policy (UK)
    • Privacy statement (US)
    • Cookie Policy (US)
    • Privacy statement (EU)
    • Cookie policy (EU)
    • Disclaimer

TechWalls

Technology News | Gadget Reviews | Tutorials

  • Reviews
  • Tech News
  • Tech Guide
  • Gadget & Apps

PHP Update Required in WordPress – How to Fix It on DigitalOcean?

Updated on Aug 7, 2019 by Tuan Do

After upgrading WordPress to the latest version 5.1, I saw a warning in the Dashboard saying: “PHP Update Required, WordPress has detected that your site is running on an insecure version of PHP“.

PHP is the coding language of WordPress and they always recommend us to update it to the newest version to ensure the speed and security of our websites. I almost forgot about it until seeing that reminder. My Ubuntu server on DigitalOcean ran on PHP 5 and I didn’t update it for years. When I checked on my server, the current PHP version was 7.3 and therefore, the update must be done as soon as possible.

In case you are using shared hosting services, you can go to PHP Selector in cPanel to set up your PHP environment. If you are using the service from DigitalOcean or running a Ubuntu server, you can follow the guide to update your PHP version.

1. Back up your Websites: Make a backup of your websites or server before updating PHP version. Although there is little risk during the process, making a backup is still recommended.

2. Log on to your Ubuntu server

3. Check your current PHP version:

$ php -v

3. Add a PPA for PHP 7.3 Packages:

$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt-get update

4. Implement the upgrade:

$ sudo apt-get install php7.3
$ sudo apt-get install php7.3-mysql

You can check your PHP version again to make sure the PHP has been updated on your server. Then, proceed to install related modules.

sudo apt install php7.3-fpm php7.3-common php7.3-mbstring php7.3-xmlrpc php7.3-gd php7.3-xml php7.3-mysql php7.3-cli php7.3-zip php7.3-curl

5. Disable PHP5 and enable PHP7

$ sudo a2dismod php5
$ sudo a2enmod php7.3
$ sudo service apache2 restart

All done, your WordPress websites should be running on the newest PHP version now and you won’t see the warning again in the Dashboard. The PHP update is really important and I highly recommend you to do it immediately if you haven’t done so. It does not only make your site faster for search engines and for your visitors, but also make your website better protected against hackers.

Disclosure: We might earn commission from qualifying purchases. The commission help keep the rest of my content free, so thank you!

Reader Interactions

Comments

  1. Dimas says

    Nov 25, 2019 at 4:09 pm

    Hi,

    How are you ?

    I made all processes, but message does not leave the wordpress panel, but when I run the command php -v, appears the updated version: OPcache v7.3.11-1 + ubuntu18.04.1 + deb.sury.org + 1.

    What should I do?

    Reply
    • Paluss says

      Oct 18, 2020 at 5:05 pm

      Try to run “sudo a2dismod php7.x” where x is your previus version. It worked for me.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Footer

OAK & IRON Wave Electric Outdoor Inflator Review

Carepod One MS031S2 Cool Mist Humidifier Review – The Sleek and Effective Solution for Dry Air

MORENTO HY4866 Air Purifier with True HEPA Filter Review

MORENTO 4.5L Cool Mist Air Humidifier Review

Follow TechWalls

YoutubeFacebookTwitterInstagram

Recent Posts

  • POLYWOOD Classic Folding Adirondack vs Member’s Mark Adirondack Chair – Which Is Better?
  • BLUETTI’s New Expandable Outdoor Solar Generator AC60 & B80
  • Comprehensive praise! Is the Falcon2 Worth it? When should I buy Creality Falcon2?
  • Bluetti’s Spring Sale 2023 with Big Discounts

Copyright © 2023 ยท All Rights Reserved

Manage Cookie Consent
We use technologies like cookies to store and/or access device information. We do this to improve browsing experience and to show personalized ads. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional cookies Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage vendors Read more about these purposes
View preferences
{title} {title} {title}