# Add server (Nextcloud server)

### Nextcloud module **[WHMCS](https://puqcloud.com/link.php?id=77)**
#####  [Order now](https://puqcloud.com/whmcs-module-nextcloud.php) | [Download](https://download.puqcloud.com/WHMCS/servers/PUQ_WHMCS-Nextcloud/) | [FAQ](https://faq.puqcloud.com/)

## Adding a Nextcloud server to WHMCS

Navigate to **System Settings** → **Servers** → **Add New Server**

---

### Step 1: General settings

Enter the correct **Name** and **Hostname** for your Nextcloud server.

- **Name** — a descriptive name for the server (e.g. "Nextcloud Production")
- **Hostname** — the domain name or IP address of your Nextcloud installation (e.g. `cloud.example.com`)

If your Nextcloud uses a non-standard port, enter it in the **Port** field. Check the **Secure** checkbox if your server uses HTTPS (recommended).

![Add server - general settings](https://doc.puq.info/uploads/images/gallery/2026-02/embedded-image-tbw31i8i.png)
*04-add-server-1.png*

---

### Step 2: Module settings

1. In the Server Details section, select the **PUQ Nextcloud** module from the dropdown
2. Enter valid credentials for the Nextcloud web interface:
   - **Username** — Nextcloud administrator username
   - **Password** — Nextcloud administrator password
3. Click **Test connection** to verify the connection is working correctly

The test connection verifies that the module can reach the Nextcloud OCS API (`/ocs/v1.php/cloud/users/`) and authenticate with the provided credentials.

![Add server - module settings](https://doc.puq.info/uploads/images/gallery/2026-02/embedded-image-kgkr1ybc.png)
*05-add-server-2.png*

> **Important:** The Nextcloud user must have **administrator privileges** to manage users via the API. The module uses the Nextcloud OCS API v1 with HTTP Basic Authentication to create, modify, suspend, and delete user accounts.


<!-- sync:b6b9d7053e69bbaf -->