> For the complete documentation index, see [llms.txt](https://qubitvpn.gitbook.io/qubitvpn-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://qubitvpn.gitbook.io/qubitvpn-docs/extras/free-plesk-web-host-edition-license-for-premium-plan.md).

# FREE Plesk Web Host Edition License for Premium Plan

Instructions for QubitVPN Premium users on installing Plesk and activating it with the FREE Plesk Web Host Edition License (valued at $62.99/month) but we include it free of charge.

{% hint style="info" %}
**Please note, this only works on the QubitVPN&#x20;*****Premium Plan*****.**
{% endhint %}

## What is Plesk?

Plesk is a Web Hosting Control Panel similar to cPanel (both are also owned by the same company, WebPros).

## How is QubitVPN able to offer this for free?

Our VPN servers run on the same servers as [Splicate’s Web Hosting Plans](https://www.splicate.com/web-hosting/). We get the keys for free and pass the savings onto you.

## How can I set up Plesk with QubitVPN and activate the key?

{% stepper %}
{% step %}

### Install Plesk

{% embed url="<https://docs.plesk.com/en-US/obsidian/deployment-guide/quick-start.76607/>" %}

**If you are a beginner or just want default configuration, use this instead:**

* Installation instructions for Plesk for Linux: [Installing Plesk for Linux in One Click](https://docs.plesk.com/en-US/obsidian/deployment-guide/plesk-installation-and-upgrade-on-single-server/1click-plesk-installation/installing-plesk-for-linux-in-one-click.76444/).
* Installation instructions for Plesk for Windows: [Installing Plesk for Windows in One Click](https://docs.plesk.com/en-US/obsidian/deployment-guide/plesk-installation-and-upgrade-on-single-server/1click-plesk-installation/installing-plesk-for-windows-in-one-click.76448/).
  {% endstep %}

{% step %}

### Set up WireGuard

1. [Download NetBird (QubitVPN Client)](/qubitvpn-docs/how-to-use/download-netbird-qubitvpn-client.md)
2. Open the [Plesk ports](https://docs.plesk.com/en-US/obsidian/administrator-guide/plesk-administration/ports-used-by-plesk.64950/) on your computer/server > [Allow Incoming Port Connection](/qubitvpn-docs/how-to-use/allow-incoming-port-connection.md)
3. Tunnel the [Plesk ports](https://docs.plesk.com/en-US/obsidian/administrator-guide/plesk-administration/ports-used-by-plesk.64950/) using the [Port Forward Manager](/qubitvpn-docs/how-to-use/how-to-use.md#setup-port-forwarding-tunneling-only-available-from-the-standard-plan-and-higher-tiers).
   {% endstep %}

{% step %}

### Reconfigure Plesk

Reconfigure Plesk to use the WireGuard IP

{% tabs %}
{% tab title="Linux" %}

```bash
plesk repair all -y
```

{% endtab %}

{% tab title="Windows" %}
Run Plesk Repair Utility (usually in C:\Program Files (x86)\Plesk\admin\bin)

Run CMD and then:

```batch
cd C:\Program Files (x86)\Plesk\admin\bin
plesk repair all -y
```

{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}

### Log into Plesk

1. <https://your-ip-here:8443>
2. Use your SSH username and password

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>You may also log-in with a one-time link with this command:</strong> <code>plesk login</code></p></div>

{% endstep %}

{% step %}

### Enter your Email and create a Password

<div align="left" data-full-width="false"><figure><img src="https://1665844291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh2w9Up9seZJlW6lHfRCt%2Fuploads%2FZ3vynFjQviqGaX3IgUWU%2Fimage.png?alt=media&amp;token=df524b21-ab34-47a8-b7f2-71a2258cc24f" alt="" width="300"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### Enter License Key

Select "Proceed with a paid license" and enter the license key that was sent to your email after server provisioning. If the email doesn't contain a key, please contact us by email[^1] or by live chat (on our [website](https://qubitvpn.com/)), to claim your key.

<div align="left"><figure><img src="https://1665844291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh2w9Up9seZJlW6lHfRCt%2Fuploads%2F5OaHrJawQCQxXqddkqN3%2Fimage.png?alt=media&amp;token=100851fb-eb95-4a99-ad24-c07cdf22fced" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### Add VPN IP as a Trusted IP (to avoid issues later on)

<mark style="color:blue;">Go to <https://your-ip:8443/admin/server-protection/trusted-list> (change "your-ip" with your actual IP).</mark>

<mark style="color:blue;">If this doesn't work, then follow the steps below, if it does, then skip to step 3.</mark>

1. Go to Tools & Settings > IP Address Banning (Fail2Ban)

<figure><img src="https://1665844291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh2w9Up9seZJlW6lHfRCt%2Fuploads%2Fm5pA6N5bqMDloRhWG0zY%2Fimage.png?alt=media&amp;token=cd4b01a7-3b16-40ac-8776-48f7197c119f" alt=""><figcaption></figcaption></figure>

2. Click on "Trusted IP Addresses" on top

<figure><img src="https://1665844291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh2w9Up9seZJlW6lHfRCt%2Fuploads%2FxsmFFknlDDGUdlqmoEzQ%2Fimage.png?alt=media&amp;token=bfd2ef31-4546-4bb5-b3dc-739decb258be" alt=""><figcaption></figcaption></figure>

3. Click on "Add Trusted IP" and add your WireGuard VPN Server IP (usually 10.253.0.1) and click "OK" when you're done.

<figure><img src="https://1665844291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh2w9Up9seZJlW6lHfRCt%2Fuploads%2Fy13vCLPyyROJA9GomjPX%2Fimage.png?alt=media&amp;token=b7970f0c-f55a-4f41-9e28-3019b797e5f2" alt=""><figcaption></figcaption></figure>

4. Click on "Add Trusted IP" again and add your Tunnel Config IP (e.g. 10.253.0.7) and click "OK" when you're done.

<figure><img src="https://1665844291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh2w9Up9seZJlW6lHfRCt%2Fuploads%2FYrPOSYaxA8pWqlVvvHVC%2Fimage.png?alt=media&amp;token=c6082e06-e5a1-4b2b-83f7-f75d0ede1b51" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### IP Tracking and Security

{% tabs fullWidth="false" %}
{% tab title="How to choose" %}
There are 2 ways to track real IPs.

You may use *X-Forwarded-For* or *CF-Connecting-IP* (Cloudflare) within the website. This only works on some websites and may require a plugin. You can accomplish this on WordPress using a plugin like Solid Security.

Or:

You may do it for the whole website through settings. This will work on most if not all website types and does not require a plugin in most cases.

Please choose the tab that fits with your preferred method.
{% endtab %}

{% tab title="Using X-Forwarded-For or CF-Connecting-IP" %}
For website security (like a WordPress security plugin), use X-Forwarded-For (XFF) or CF-Connecting-IP. *Do **NOT** use X-Real-IP, X-Client-IP, Client-IP, or X-Cluster-Client-IP.*

*Our personal favorite security plugin for WordPress is Solid Security. (We are not in any way affiliated or sponsored by Solid Security)*

How to set this up in [Solid Security](https://wordpress.org/plugins/better-wp-security/):

1. Install [Solid Security](https://wordpress.org/plugins/better-wp-security/)
2. Go to Solid Security > Settings > Global Settings
3. Scroll Down to "IP Detection"
4. Select CF-Connecting-IP if using Cloudflare, if not, select X-Forwarded-For

<figure><img src="https://1665844291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh2w9Up9seZJlW6lHfRCt%2Fuploads%2FV8QkriOw51BcexjjKoK5%2Fimage.png?alt=media&amp;token=c6675f51-957b-472c-a099-36e464024e3e" alt=""><figcaption></figcaption></figure>

5. Click "Check IP" and make sure that is your own IP (the IP you're accessing the website from). This should be the IPv6 or IPv4 from [here](https://whatismyipaddress.com/). If this shows "10.253.0.1" or something similar, you did something wrong. Please go back through the steps to see where you made an error.

{% hint style="success" %}
If this shows your personal/work or VPN (if using one) IP, then you are now successfully tracking real IPs.
{% endhint %}
{% endtab %}

{% tab title="Whole Website" %}
{% stepper %}
{% step %}

### Go to your website > Hosting & DNS > Apache & nginx

<figure><img src="https://1665844291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh2w9Up9seZJlW6lHfRCt%2Fuploads%2FfqQp6njc66v6pOodtK1Y%2Fimage.png?alt=media&amp;token=e907d438-12ec-4eee-8e14-eeabc7a36a68" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Add these:

In the "Additional directives for HTTP" and "Additional directives for HTTPS" boxes, enter:

```
SetEnvIf X-Forwarded-For ".*" forwarded
CustomLog /var/log/apache2/access.log combined env=!forwarded
```

<figure><img src="https://1665844291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh2w9Up9seZJlW6lHfRCt%2Fuploads%2FCzDJF0GPfYiZgpj2RjWX%2Fimage.png?alt=media&amp;token=38987701-1f32-43b7-ab61-0b578b99149a" alt=""><figcaption></figcaption></figure>

In the "Additional nginx directives" box, enter:

```
set_real_ip_from 0.0.0.0/0;
real_ip_header X-Forwarded-For;
```

<figure><img src="https://1665844291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh2w9Up9seZJlW6lHfRCt%2Fuploads%2FWDf48W6Mm71xgBh598iq%2Fimage.png?alt=media&amp;token=18a4a285-8e58-4d73-ae5b-183d1165d15c" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Success!

{% hint style="success" %}
Your personal/work or VPN (if using one) IP should now be tracked instead of the VPN Server IP.
{% endhint %}
{% endstep %}
{% endstepper %}
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}

### Declutter with Power User View (Optional)

Best for developers and web agencies. If you aren't planning to resell and want to declutter all the menu options, follow the steps below:

1. Click on "Change View" at the bottom of the your left hand menu

<div align="center"><figure><img src="https://1665844291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh2w9Up9seZJlW6lHfRCt%2Fuploads%2FiilCCth0j1GGv6O0AOQw%2Fimage.png?alt=media&amp;token=dffe3543-0981-4ea0-9343-b45b57125311" alt="" width="144"><figcaption></figcaption></figure></div>

2. Click "Switch to Power User view"

<figure><img src="https://1665844291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh2w9Up9seZJlW6lHfRCt%2Fuploads%2FuUpqZpWG4ub7LXGOH3PC%2Fimage.png?alt=media&amp;token=730da96f-cecd-4845-851d-3e4e45a5bd88" alt=""><figcaption></figcaption></figure>

3. Now you have a much simpler, decluttered menu!

<figure><img src="https://1665844291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh2w9Up9seZJlW6lHfRCt%2Fuploads%2F7MWMaMWnUDkLG3tm9ycw%2Fimage.png?alt=media&amp;token=7a870d27-c5ea-4f50-9130-deccf32a7ef9" alt="" width="139"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

[^1]: <support@qubitvpn.com>
