Update wordpress / php on your project

This guide describes the steps to go through to update your projects to newer versions of php 7 and Wordpress. The base OS of your projects has reached End of Life.

You will need to use SSH to login to your project terminal. You can copy the SSH command & password from your Project Access tab - see below.

Assuming you connected ok in your terminal - follow the commands in the section below.

The steps below will achieve the following:

  • Updating the repo base URL for CentOS 7 EOL

  • Fixing the MariaDB 10.2 repository URL

  • Updating all packages and restarting services

  1. Update the CentOS 7 mirrorlist to use the archive

sed -i 's|^mirrorlist=|#mirrorlist=|g; s|^#baseurl=|baseurl=|g; s|^baseurl=.*$|baseurl=http://vault.centos.org/centos/$releasever/os/$basearch/|g' /etc/yum.repos.d/CentOS-Base.repo
  1. Update the MariaDB 10.2 repository URL

sed -i 's|^baseurl.*$|baseurl = http://archive.mariadb.org/yum/10.2/centos/$releasever/$basearch|g' /etc/yum.repos.d/MariaDB.repo
  1. Enable php-74

yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum-config-manager --enable remi-php74
  1. Clean the yum cache

yum clean all
  1. Update all packages

yum -y update
  1. Restart the necessary services:

systemctl restart mariadb nginx php-fpm
  1. Update wordpress

    Login to your wordpress admin and update it as needed.

  1. Update Noipfraud Plugin

Download the latest version from https://noipfraud.com/download/plugin

Click plugins section in your wordpress admin tab, then click add new plugin

Next click "Upload plugin" , then "choose file" then select the plugin file you just downloaded, and click "Install Now"

You will now be asked to replace your old version of the plugin. Just double check the versions, make a backup if you prefer, and click "Replace"

Last updated