# PHPMyAdmin

{% hint style="info" %}
This guide has been created for Ubuntu 20.04 / Apache 2
{% endhint %}

## Step 1

Open **phpmyadmin.conf** for editing.

```
sudo nano /etc/apache2/sites-available/phpmyadmin.conf
```

## Step 2

Add the following lines below the line **“DirectoryIndex index.php”**

```
Require ip specific_ip_address
Require ip ::1
```

Replace ***specific\_ip\_address*** with the GoodAccess Gateway IP.

## Step 3

**Save and close** the file and **Restart Apache2** for the changes to take effect.

```
sudo systemctl restart apache2
```


---

# 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://support.goodaccess.com/configuration-guides/ip-whitelisting/phpmyadmin.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.
