> ## Documentation Index
> Fetch the complete documentation index at: https://magic-book.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# License activation

> Activate, check and deactivate your MagicBook license, and what to do when you move to a new server.

MagicBook is activated with the license key from your Envato purchase and the Envato username of the buyer. You enter both once in the web installer. After that, you manage them on the **Activation** page of the admin panel.

## What activation does

When you activate, MagicBook sends the key and username to the license server. If the server accepts them:

* The server's reply is saved in a file named `.lic` in the application root.
* The key, the username and the license type are saved in General Settings.

The **Activation** page shows **Activated** while the license is active. Updates from the admin panel use the saved license, so keep it active if you want to update from the panel. See [Update instructions](https://magic-book.mintlify.site/updates/update-instructions.md).

> [!NOTE]
>
> `.lic` is a hidden file. If you copy the application to another server, include hidden files. Otherwise the Activation page shows **Not Activated** until you activate again.

## Activate the license

**1. Open the Activation page**

In the admin sidebar, open **Platform → Activation**. The page is titled **License Activation**.

**2. Enter your details**

Under **Activation Details**, enter the **License Key** and the **Envato Username**. Both are required.

**3. Activate**

Click **Activate License**. When the server accepts the details, the status changes to **Activated**.

**4. Check the result**

The **License Status** card shows **Status** and the **License Type** the license server returned for your key.

If you installed MagicBook earlier, the fields are already filled in. In that case you only need to click **Activate License**.

## Deactivate the license

Deactivate before you move MagicBook to another domain or server.

**1. Open the Activation page**

Open **Platform → Activation**.

**2. Deactivate**

Click **Deactivate License**. MagicBook asks the license server to release the activation and removes its local copy.

Deactivating does not delete any of your books, customers or settings.

## Move to a new server

**1. Deactivate on the old server**

Deactivate the license as described above.

**2. Restore on the new server**

Install or restore MagicBook on the new server with the web installer, or with the files and database you copied.

**3. Activate**

If you restored the files and the database, open **Platform → Activation** and click **Activate License**.

## Troubleshooting

> [accordion] There was an error while activating the application
>
> The license server did not accept the details or could not be reached. Check the key and username for typos and extra spaces, and confirm that your host allows outbound HTTPS requests. Then try again.

> [accordion] The page says Not Activated but the key is filled in
>
> The `.lic` file is missing or empty, usually because it was not copied with the other files. Click **Activate License** to create it again.

> [accordion] Deactivation failed
>
> The license server answered with an error. Wait a few minutes and try again. If it keeps failing, contact support with the exact text shown on the page.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.