This guide explains how to install **Documize Community** on a fresh Ubuntu Server (20.04/22.04/24.04), set up PostgreSQL, and configure everything so Documize is ready to use.
+
+
---
+
+
## 1. Update the system
+
Always start with the latest updates:
+
```bash
+
sudo apt update && sudo apt upgrade -y
+
```
+
<br/>
+
+
## 2. Install required dependencies
+
Always start with the latest updates:
+
```bash
+
sudo apt install -y wget curl ca-certificates tar
+
```
+
<br/>
+
+
## 3. Install PostgreSQL
+
Run this command to install PostgreSQL:
+
```bash
+
sudo apt install -y postgresql postgresql-contrib
+
```
+
+
Enable and start PostgreSQL:
+
+
```bash
+
sudo systemctl enable --now postgresql
+
```
+
+
Check status:
+
```bash
+
sudo systemctl status postgresql
+
```
+
<br/>
+
+
## 4. Create PostgreSQL database and user for Documize
+
Switch to the PostgreSQL admin account:
+
```bash
+
sudo -u postgres psql
+
```
+
+
Inside the PostgreSQL shell, run the following (replace the password with a strong one):
+
```bash
+
CREATE DATABASE documize;
+
CREATE USER docuser WITH ENCRYPTED PASSWORD 'StrongPasswordHere';
+
GRANT ALL PRIVILEGES ON DATABASE documize TO docuser;
+
\q
+
```
+
<br/>
+
+
## 5. (Optional) Allow remote connections
+
If Documize runs on a different host than PostgreSQL, configure it
To keep this permanent, add it to your shell profile:
+
```bash
+
echo 'export DATABASE_URL=postgres://docuser:StrongPasswordHere@localhost:5432/documize?sslmode=disable&client_encoding=UTF8' | sudo tee -a /etc/environment
+
```
+
+
## 8. Run Documize
+
Start Documize manually:
+
```bash
+
./documize --database-url "$DATABASE_URL"
+
```
+
+
By default, it runs on port 8080.
+
Open in browser:
+
`http://SERVER-IP:8080`
+
+
Follow the setup wizard to create your admin account.
+
<br/>
+
+
## 9. (Optional) Run Documize as a systemd service
+
To keep Documize running in the background and auto-start on boot.