---
title: "Ultimate Guide: How to Install Documenso on Linux - CloudBlast"
description: "Ultimate Guide: How to Install Documenso on Linux"
url: "https://cloudblast.io/article/Ultimate-Guide:-How-to-Install-Documenso-on-Linux"
language: "en-US"
---

BLOG

# Ultimate Guide: How to Install Documenso on Linux

5€ FREE BALANCE when you register

Register to cloudblast and get 5€ cloud credit to deploy your VPS's

[Claim Free 5€](https://console.cloudblast.io/auth/login?ref=2)

-   [Back](https://cloudblast.io/)
-   [All Articles](https://cloudblast.io/blog)

2024-08-26

### Ultimate Guide: How to Install Documenso on Linux

tutorials

[Add as a preferred source on Google](https://www.google.com/preferences/source?q=cloudblast.io)

Are you looking for a powerful, open-source alternative to traditional document signing platforms? Look no further! This comprehensive guide will walk you through the process of installing Documenso, an innovative document signing solution, on your Linux server. Whether you're a system administrator or a curious developer, this step-by-step tutorial will help you set up your own Documenso instance in no time.

**Why Choose Documenso?**

1\. Open-Source: Full control over your data and customization options
2\. Self-Hosted: Keep your sensitive documents on your own infrastructure
3\. User-Friendly: Intuitive interface for both signers and administrators
4\. Secure: Implement your own security measures and compliance standards
5\. Cost-Effective: Eliminate subscription fees associated with proprietary solutions

**Prerequisites**

Before we begin, ensure you have:

\- A CloudBlast VPS server (Ubuntu 20.04 LTS or later recommended)
\- Root access or a user with sudo privileges
\- Basic familiarity with the command line
\- Node.js (version 14 or later) and npm installed
\- PostgreSQL database server

**Step-by-Step Installation Guide**

**Step 1: Update Your System**

First, let's ensure your system is up-to-date:

>
> sudo apt update && sudo apt upgrade -y
>  

**Step 2: Install Dependencies**

Install necessary dependencies:

>
> sudo apt install git curl build-essential -y
>  

**Step 3: Clone Documenso Repository**

Clone the Documenso repository from GitHub:

>
> git clone https://github.com/documenso/documenso.git
> cd documenso
>  

**Step 4: Install Node.js Dependencies**

Install the required Node.js packages:

>
> npm install
>  

**Step 5: Set Up the Database**

Create a PostgreSQL database for Documenso:

>
> sudo -u postgres psql
> CREATE DATABASE documenso;
> CREATE USER documensouser WITH PASSWORD 'your\_strong\_password';
> GRANT ALL PRIVILEGES ON DATABASE documenso TO documensouser;
> \\q
>  

**Step 6: Configure Environment Variables**

Create and edit the \`.env\` file:

>
> cp .env.example .env
> nano .env
>  

Update the following variables:

>
> DATABASE\_URL=postgresql://documensouser:your\_strong\_password@localhost:5432/documenso
> NEXTAUTH\_SECRET=your\_random\_secret\_string
> NEXTAUTH\_URL=http://your\_server\_ip\_or\_domain
>  

**Step 7: Run Database Migrations**

Apply the database schema:

>
> npx prisma migrate deploy
>  

**Step 8: Build the Application**

Compile the Documenso application:

>
> npm run build
>  

**Step 9: Start Documenso**

Launch the Documenso server:

>
> npm start
>  

Congratulations! Documenso should now be running on your server.

**Accessing Documenso**

You can access Documenso by opening a web browser and navigating to \`http://your\_server\_ip\_or\_domain:3000\`.

**Setting Up a Production Environment**

For a production environment, consider the following additional steps:

1\. Set up a reverse proxy (like Nginx) to serve Documenso securely
2\. Configure SSL/TLS for encrypted connections
3\. Set up a process manager like PM2 to keep Documenso running

**Conclusion**

By following this guide, you've successfully installed Documenso on your Linux server. You're now ready to leverage the power of open-source document signing for your organization or personal use. Documenso's flexible features, combined with the control of self-hosting, create an excellent environment for secure and efficient document signing processes.

Remember to keep your Documenso installation, database, and Linux system updated for optimal performance and security. Happy signing with Documenso!

Share

## Continue Reading

[2026-07-25 How to Install and Set Up Mailcow on Ubuntu and Debian VPS tutorials](https://cloudblast.io/article/how-to-install-and-setup-mailcow-on-ubuntu-and-debian-vps)

[2026-07-25 How to Install Chatwoot on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-chatwoot-on-ubuntu-and-debian-server)

[2026-07-25 How to Install Mattermost on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-mattermost-on-ubuntu-and-debian-server)

[2026-07-25 How to Install RustDesk on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-rustdesk-on-ubuntu-and-debian-server)
