# Update wordpress / php on your project

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.

<figure><img src="https://1303794878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHqIZ3yl51vlc5ihedX%2Fuploads%2Fc4DoW6XvF3y7FTRBEN9y%2FCleanShot%202024-07-25%20at%2010.49.51%402x.png?alt=media&#x26;token=3b421e24-c94c-470e-8141-f575d05bb9ff" alt=""><figcaption></figcaption></figure>

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

{% hint style="warning" %}
If you want us to do this please contact support.
{% endhint %}

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<br>

1. ### Update the CentOS 7 mirrorlist to use the archive

{% code overflow="wrap" %}

```bash
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
```

{% endcode %}

2. ### Update the MariaDB 10.2 repository URL

{% code overflow="wrap" %}

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

{% endcode %}

3. ### Enable php-74

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

3. ### Clean the yum cache

```bash
yum clean all
```

4. ### Update all packages

```bash
yum -y update
```

5. ### Restart the necessary services:

```bash
systemctl restart mariadb nginx php-fpm
```

6. ### Update wordpress

   Login to your wordpress admin and update it as needed.

<figure><img src="https://1303794878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHqIZ3yl51vlc5ihedX%2Fuploads%2FTABTw3Eu7kBTsBhaove9%2FCleanShot%202024-07-25%20at%2014.59.32%402x.png?alt=media&#x26;token=e095cc34-478f-4c04-aa53-fd906cd4e01a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1303794878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHqIZ3yl51vlc5ihedX%2Fuploads%2F1npt37zQPKK7iCKA1Yek%2FCleanShot%202024-07-25%20at%2014.59.42%402x.png?alt=media&#x26;token=a01080ea-fc0e-4495-a580-607c6ba37464" alt=""><figcaption></figcaption></figure>

7. ### 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

<figure><img src="https://1303794878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHqIZ3yl51vlc5ihedX%2Fuploads%2FAJOpRqEhGB8J0KQ3E22S%2FCleanShot%202024-07-25%20at%2015.21.06%402x.png?alt=media&#x26;token=e1360614-ab09-4e29-8e0a-c084532c6d5b" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1303794878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHqIZ3yl51vlc5ihedX%2Fuploads%2FSfQl83bGKVcxXeqCnD5L%2FCleanShot%202024-07-25%20at%2015.22.27%402x.png?alt=media&#x26;token=e7c98ad1-fc0d-4461-9c69-c9d332cca309" alt=""><figcaption></figcaption></figure>

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"&#x20;

<figure><img src="https://1303794878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHqIZ3yl51vlc5ihedX%2Fuploads%2FdgPJRvR2RE6INsV74lbZ%2FCleanShot%202024-07-25%20at%2015.25.18%402x.png?alt=media&#x26;token=be5cdfe1-6238-49ed-982b-05a97e03ccff" alt=""><figcaption></figcaption></figure>
