PressPanel Documentation

Installation, CLI reference, directory structure, and Google Drive Backup setup.

Install Guide

1. Quick Start

Run the official installer as root on Ubuntu 22.04/24.04, Debian 11/12, AlmaLinux 8/9, or Rocky Linux 8/9:

curl -sSL https://presspanel.org/install.sh | sudo bash

2. Directory Layout (/opt/presspanel)

/opt/presspanel/
|-- bin/         # Compiled C SUID Gatekeepers (chmod 4750 root:presspanel)
|-- app/         # FastAPI Asyncio Backend
|-- conf/        # presspanel.conf & central settings
|-- venv/        # Isolated Python Virtualenv
|-- static/      # Web UI Assets
|-- data/        # SQLite WAL database (panel.db)
|-- logs/        # Access, Error & Task logs
|-- scripts/     # Management bash scripts & CLI
`-- templates/   # 3-level inherited config templates

3. PressPanel CLI Reference

CommandDescription
presspanel updateUpdate panel while preserving sites, configs & DB
presspanel reinstallClean reinstall with automatic backup of panel.db
presspanel status / restartInspect or restart presspanel.service
presspanel logsFollow real-time journalctl service logs
presspanel passwordReset admin password from terminal
presspanel port <number>Change panel web UI listening port

4. Google Drive Backup Setup (OAuth2 & Rclone Custom Client ID)

Navigate to Backups & Restore → Destinations → Add Destination → Google Drive. Connect via OAuth2, Service Account, or Rclone Token.

For sustained upload throughput without shared Client ID 403 rateLimitExceeded throttling, supply your own Google Cloud Client ID and Client Secret and generate your token with:

rclone authorize "drive" "<YOUR_CLIENT_ID>" "<YOUR_CLIENT_SECRET>"

All tokens remain strictly on your own server inside /opt/presspanel/data/panel.db. See our Privacy Policy for Google API Limited Use details.

5. Security & Cgroups v2

  • 8 C SUID Gatekeepers: Only root-owned binaries (4750 root:presspanel) execute privileged kernel or filesystem operations.
  • Linux Namespace Cage: Isolates each website user's /home, PID tree, and 256 MB RAM /tmp.
  • Cgroups v2 + MySQL Resource Controller: Locks CPU, RAM, IOPS, PIDs, and enforces MariaDB connection circuit breakers.

6. Update & Reinstall

sudo presspanel update
# or remote one-liner:
curl -sSL https://presspanel.org/update.sh | sudo bash