Step 7: Enable the PHP 7.4 repository, install the core and required PHP packages. Step 6: Install the updated Remi repository if it is not already installed. Step 5: Remove all the installed PHP packages # yum remove "php*" -y Step 4: List all the PHP packages you have installed into a file, so you can refer to it to install all those packages in PHP 7.4 # rpm -qa | grep php > php_rpm.txt Step 3: Check the version of the PHP that is currently running. Step 2: Update your server # yum install epel-release yum-utils -y Step 1: First and foremost, get the complete backup of your server and the website before proceeding further. ![]() ![]() Here is the step-by-step guide to update PHP to the 7.4 version. I’m running PHP 7.0 on CentOS 7 which was installed using Remi repo. Recently while looking onto my client’s WordPress dashboard, found a notification that the PHP version might be vulnerable and needs an update as shown below for security reasons.
0 Comments
Leave a Reply. |