# 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="/files/ZXHnsQRVLMojfbIf9J40" 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="/files/PIVDEkUkTSjYI6bpHCER" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/KsSHe5Pc0iGs01kSM7bn" 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="/files/tYETZW8sJkA2Mzi7SVg7" 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="/files/IJmKKcJjSedjEeDtpy5w" 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="/files/RCrzjljkGGrvBptbfYiX" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.launchpal.com/troubleshooting/update-wordpress-php-on-your-project.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
