Faveo Helpdesk Multi-OS Automated Installer

An enterprise-grade, automated Bash installation suite for deploying Faveo Helpdesk on Linux enterprise distributions. This installer handles the entire deployment pipelineβ€”from OS verification and dependency provisioning to database orchestration, SSL/TLS termination, search engine setup, real-time WebSockets (Laravel Reverb), background queue worker configuration, and Faveo core application bootstrap.


πŸ“‹ Table of Contents

  1. Architecture Overview
  2. Key Features
  3. Supported Operating Systems & Matrix
  4. System Requirements & Prerequisites
  5. Repository Structure
  6. Installation & Usage
  7. Command-Line Arguments Reference
  8. Deployment Examples
  9. Technology Stack & Services Provisioned
  10. WebSockets (Laravel Reverb)
  11. MongoDB (Elea AI Assistant)
  12. Post-Installation & Verification
  13. Backup
  14. Failure Recovery & Rollback Engine
  15. Troubleshooting & FAQ
  16. Maintainers & Support

πŸ— Architecture Overview

The installation suite is split into a modular orchestrator and distribution-specific execution engines:

                  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                  β”‚           faveo.sh            β”‚
                  β”‚   (Root check, Shell verify,  β”‚
                  β”‚  OS detection, banner, backup)β”‚
                  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                  β”‚
         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
         β”‚                                                 β”‚
         β–Ό (Debian / Ubuntu)                               β–Ό (RHEL / Rocky / AlmaLinux)
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”               β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚         debian_block.sh         β”‚               β”‚          rhel_block.sh          β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€               β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ β€’ APT / Sury Repositories       β”‚               β”‚ β€’ DNF / Remi / EPEL Modules     β”‚
β”‚ β€’ Apache2 / Nginx (Debian paths)β”‚               β”‚ β€’ Httpd / Nginx (RHEL paths)    β”‚
β”‚ β€’ MySQL 8.4 / MariaDB 10.6/11.8 β”‚               β”‚ β€’ MySQL 8.4 / MariaDB 10.6/11.8 β”‚
β”‚ β€’ systemd integration           β”‚               β”‚ β€’ SELinux / firewalld handling  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜               β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                 β”‚                                                 β”‚
                 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                          β”‚
                                          β–Ό
                     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                     β”‚         Faveo Core Application          β”‚
                     β”‚  β€’ PHP 8.4+ & IonCube Loader            β”‚
                     β”‚  β€’ Redis & Supervisor Daemons           β”‚
                     β”‚  β€’ WebSockets - Laravel Reverb          β”‚
                     β”‚  β€’ Meilisearch Full-Text Engine         β”‚
                     β”‚  β€’ MongoDB 9.0 (Optional, Elea AI)      β”‚
                     β”‚  β€’ NATS Discovery Server (Optional)     β”‚
                     β”‚  β€’ Node.js 22.x & Puppeteer (Optional)  β”‚
                     β”‚  β€’ Artisan CLI Auto-Installer           β”‚
                     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  1. faveo.sh (Main Orchestrator):
    • Validates that the executing shell is native Bash and running with root/sudo privileges.
    • Detects the Linux distribution (/etc/os-release) and validates OS version compatibility.
    • Delegates installation arguments to the respective engine (debian_block.sh or rhel_block.sh).
    • Runs the backup of an existing installation (--backup).
  2. debian_block.sh (Debian/Ubuntu Engine):
    • Integrates with OndΕ™ej SurΓ½ / PPA repositories for modern PHP and Apache2/Nginx packages.
    • Handles apt-specific dependencies, dpkg packaging for wkhtmltox, and Debian service management.
  3. rhel_block.sh (RHEL-Family Engine):
    • Integrates with EPEL, Remi modular repositories, and CodeReady Builder (CRB / PowerTools).
    • Manages RHEL-specific intricacies (e.g., RHEL 10 modularity changes, Valkey/Redis modular streams, AppStream packages).
    • Configures SELinux (permissive transition, httpd_can_network_connect for the Reverb proxy) and firewalld port openings.

πŸš€ Key Features


πŸ’» Supported Operating Systems & Matrix

Distribution Family Version / Codename Architecture Supported Engines
Ubuntu 22.04 LTS (Jammy), 24.04 LTS (Noble) x86_64 / amd64 debian_block.sh
Debian 12 (Bookworm), 13 (Trixie) β€” Debian 13: Apache only x86_64 / amd64 debian_block.sh
Red Hat Enterprise Linux (RHEL) 8.x, 9.x, 10.x x86_64 rhel_block.sh
Rocky Linux 8.x, 9.x, 10.x x86_64 rhel_block.sh
AlmaLinux 8.x, 9.x, 10.x x86_64 rhel_block.sh

Not supported: Ubuntu 20.04, Debian 11, CentOS Stream and any version not listed above β€” the installer stops with an β€œunsupported OS” message.

Debian 13 and Nginx: the Sury Nginx repository has no packages for Debian 13, so --webserver nginx (or option 2 in the wizard) is refused on Debian 13. Use Apache.


βš™οΈ System Requirements & Prerequisites

Minimum Hardware

Licensing & Domain Prerequisites

  1. Domain Name: A fully qualified domain name (FQDN) with an A record pointing to the server’s public IP address (internal installations are also supported).
  2. Faveo License Key: A 16-character license key obtained from the Faveo Store.
  3. Faveo Order Number: An 8-character order identifier associated with your license.
  4. Elevated Privileges: root or sudo access.
  5. Store & License Access: The server needs outbound access to our store and license portal domains: store.faveohelpdesk.com and license.faveohelpdesk.com.

πŸ“ Repository Structure

.
β”œβ”€β”€ faveo.sh            # Main entry point, OS dispatcher & backup
β”œβ”€β”€ debian_block.sh     # Debian / Ubuntu provisioning module
β”œβ”€β”€ rhel_block.sh       # RHEL / Rocky / AlmaLinux provisioning module
└── README.md           # Documentation & usage guide

Always start the installer with faveo.sh. It detects the OS and runs debian_block.sh or rhel_block.sh for you. Run it from inside this folder so it can find the engine scripts.


πŸ“₯ Installation & Usage

1. Clone or Download the Repository

curl -sL "https://github.com/faveosuite/faveo-server-images/archive/refs/heads/master.tar.gz" \
  | tar -xz --strip-components=3 "faveo-server-images-master/scripts/installation-scripts/faveo_helpdesk"
cd faveo_helpdesk
chmod +x *

Run the main script with root privileges without arguments. The installer will present an interactive wizard:

sudo ./faveo.sh

What the wizard will prompt:

  1. Domain Name: e.g., support.example.com (do not prefix with https://)
  2. Admin Email: e.g., admin@example.com (used for Let’s Encrypt and administrator alerts)
  3. License Code: 16-character Faveo license
  4. Order Number: 8-character Faveo order number
  5. Release Channel: 1) Official (Stable) (recommended), 2) RC, or 3) Beta
  6. Environment: 1) Production (recommended), 2) Development, or 3) Testing
  7. Meilisearch: Yes (recommended for >100 tickets/day) or No
  8. NATS / Agent Discovery: Yes or No (default: No)
  9. PHP Version: 8.4 (default) or custom (8.2, 8.3)
  10. Node.js & Puppeteer: Yes (for asset graphical reports) or No
  11. MongoDB 9.0 (Elea AI Assistant): Yes or No (default: No)
  12. SQL Server Engine: 1) MySQL (8.4) (default) or 2) MariaDB (10.6/11.8)
  13. SQL Location: 1) Local (installed on server) or 2) Remote (connect to RDS/existing DB)
  14. Web Server: 1) Apache or 2) Nginx (Nginx is not offered on Debian 13)
  15. SSL/TLS Type: 1) FreeSSL (Let's Encrypt), 2) Self-Signed, or 3) Paid SSL

After the last question the installer shows a summary of your choices and asks:

Continue ( y / n )?

Answer y to start the installation. Any other answer cancels it and nothing is installed.


Method 2: Unattended / Automated CLI Mode

Pass arguments directly to ./faveo.sh. Any option you leave out is asked interactively:

sudo ./faveo.sh \
  --domain support.example.com \
  --email admin@example.com \
  --license ABCDEFGHIJKLMNOP \
  --order 12345678 \
  --webserver nginx \
  --ssl certbot \
  --sql mysql \
  --php 8.4 \
  --meili yes \
  --node yes \
  --nats no \
  --mongodb no \
  --release official \
  --faveoenv production

Fully unattended runs: the installer still asks Continue (y/n)? before it installs anything, even when every option is given. For CI/CD or cloud-init, answer it automatically:

yes y | sudo ./faveo.sh --domain support.example.com ... --faveoenv production

πŸ›  Command-Line Arguments Reference

CLI Option Allowed Values Default Description
--domain string (FQDN) Required Fully Qualified Domain Name for Faveo (e.g. desk.example.com)
--email email format Required Administrative contact email address
--license 16-char string Required Faveo license serial key
--order 8-char string Required Faveo order identifier
--webserver apache | nginx apache HTTP web server software to install and configure (nginx is refused on Debian 13)
--ssl certbot | self-signed | paid-ssl certbot SSL certificate provisioning method
--sql mysql | mariadb mysql Relational database management system
--php 8.2, 8.3, 8.4 (or >= 8.2) 8.4 PHP runtime version
--release official | rc | beta official Faveo software release branch
--faveoenv production | development | testing production Laravel application execution environment
--meili yes | no yes Install and configure Meilisearch full-text engine
--node yes | no no Install Node.js 22.x and Puppeteer for graphical reporting
--nats yes | no no Install NATS server for Agent network discovery
--mongodb yes | no no Install MongoDB 9.0 for the Elea AI Assistant
--certfile file path | base64 | PEM None Certificate path or PEM string (required if --ssl paid-ssl)
--keyfile file path | base64 | PEM None Private key path or PEM string (required if --ssl paid-ssl)
--cacertfile file path | base64 | PEM None CA bundle path or PEM string (required if --ssl paid-ssl)
--sqlreser yes | no no Set to yes if utilizing a remote database server
--sqlhost IP | Hostname localhost Remote database host address
--sqlport 1-65535 3306 Remote database port
--sqlusername string None Remote database administrative user
--sqlpassword string None Remote database administrative password
--sqlsecure yes | no no Enable SSL/TLS encryption for database traffic
--sqlsslca file path | base64 | PEM None MySQL SSL Certificate Authority file
--sqlsslcert file path | base64 | PEM None MySQL SSL client certificate file (optional)
--sqlsslkey file path | base64 | PEM None MySQL SSL client private key file (optional)
--sslverify yes | no yes Verify SSL identity of the remote database server
--onfailure rollback | keep rollback If the installation fails: roll back everything this run created, or keep it to investigate. A failed Faveo configuration or license verification is never rolled back
--backup β€” β€” Back up an existing installation instead of installing (see Backup)
--backup-dir path /var/www/faveo-bkps Folder for the backup files (used with --backup)
--help β€” β€” Display CLI usage reference and options list

πŸ’‘ Deployment Examples

Example 1: Standard Production Setup with Nginx & Let’s Encrypt

sudo ./faveo.sh \
  --domain helpdesk.mycompany.com \
  --email it-admin@mycompany.com \
  --license 1111222233334444 \
  --order 87654321 \
  --webserver nginx \
  --ssl certbot \
  --sql mysql \
  --php 8.4 \
  --meili yes \
  --release official \
  --faveoenv production

Example 2: Enterprise Deployment with Remote AWS RDS MySQL, Custom Paid SSL & MongoDB

sudo ./faveo.sh \
  --domain support.enterprise.com \
  --email ops@enterprise.com \
  --license 5555666677778888 \
  --order 99887766 \
  --webserver apache \
  --ssl paid-ssl \
  --certfile /etc/ssl/certs/star_enterprise_com.crt \
  --keyfile /etc/ssl/private/star_enterprise_com.key \
  --cacertfile /etc/ssl/certs/enterprise_ca_bundle.crt \
  --sqlreser yes \
  --sqlhost rds-mysql.internal.enterprise.com \
  --sqlport 3306 \
  --sqlusername dbadmin \
  --sqlpassword "SuperSecretPass123" \
  --sqlsecure yes \
  --sqlsslca /etc/ssl/certs/rds-combined-ca-bundle.pem \
  --sslverify yes \
  --php 8.4 \
  --meili yes \
  --node yes \
  --nats yes \
  --mongodb yes \
  --faveoenv production

Example 3: Internal Staging Server with Self-Signed SSL & MariaDB (keep files on failure)

sudo ./faveo.sh \
  --domain faveo.local \
  --email staging@local.net \
  --license 9999888877776666 \
  --order 11223344 \
  --webserver nginx \
  --ssl self-signed \
  --sql mariadb \
  --php 8.4 \
  --meili no \
  --node no \
  --nats no \
  --release beta \
  --faveoenv development \
  --onfailure keep

Example 4: Debian 13 (Apache only)

sudo ./faveo.sh \
  --domain helpdesk.mycompany.com \
  --email it-admin@mycompany.com \
  --license 1111222233334444 \
  --order 87654321 \
  --webserver apache \
  --ssl certbot

🧰 Technology Stack & Services Provisioned

Component Software / Details Configuration & Role
Application Framework Laravel 11.x / PHP 8.4 Deployed to /var/www/faveo
PHP Runtime PHP-FPM (8.2 / 8.4+) Tuned via php.ini (memory_limit=256M, max_execution_time=360s, upload_max_filesize=100M)
PHP Extensions IonCube Loader, OPcache, Redis, Memcached, GD, MBString, XML, SOAP, IMAP, BCMath, GMP, Intl, Zip (+ MongoDB when --mongodb yes) Encrypted license verification & high-performance execution
Web Server Apache 2.4 (mpm_event + proxy_fcgi) or Nginx Handles HTTP/2, SSL termination, and reverse proxy for Reverb WebSockets (/app/) and NATS (/natsws)
WebSockets Laravel Reverb php artisan reverb:start on 127.0.0.1:8080, run by Supervisor
Search Engine Meilisearch v1.x Configured as systemd service with automated master key & dumps directory
Cache & Queue Broker Redis Server In-memory key-value cache and Laravel queue backend
Process Manager Supervisor (supervisord) Runs faveo-Horizon (queues), faveo-reverb (WebSockets) and faveo-Nats (when NATS is enabled)
Background Scheduler System Cron (crontab) Executes php artisan schedule:run every minute under the web server user
PDF Generation wkhtmltopdf / wkhtmltox Headless HTML-to-PDF binary with font rendering dependencies
AI Assistant Database (Optional) MongoDB 9.0 Authentication enabled, listens on 127.0.0.1:27017, database & user faveo-elea
Asset Graphing (Optional) Node.js 22.x & Puppeteer Server-side chart rendering for IT asset management
Agent Discovery (Optional) NATS Server v2.10 Low-latency messaging for network discovery agents (Port 9235)

πŸ”Œ WebSockets (Laravel Reverb)

WebSockets are installed on every server β€” no option is needed. The installer follows the Faveo WebSockets guide:

  1. .env keys β€” writes REVERB_APP_ID, REVERB_APP_KEY, REVERB_APP_SECRET (randomly generated), REVERB_HOST=127.0.0.1, REVERB_PORT=8080, REVERB_SCHEME=http, REVERB_SERVER_HOST=127.0.0.1 and REVERB_SERVER_PORT=8080.
  2. Web server proxy β€” WebSocket upgrade requests to /app/ are proxied to ws://127.0.0.1:8080 (Apache RewriteRule … [P], Nginx location /app/). Normal HTTP requests stay with Faveo.
  3. Supervisor program β€” faveo-reverb runs php artisan reverb:start --host=127.0.0.1 --port=8080:
    • Debian / Ubuntu: /etc/supervisor/conf.d/faveo-reverb.conf
    • RHEL / Rocky / AlmaLinux: /etc/supervisord.d/faveo-reverb.ini (SELinux boolean httpd_can_network_connect is enabled so the web server can reach Reverb)

Check it:

sudo supervisorctl status faveo-reverb
ss -tlnp | grep 8080

πŸƒ MongoDB (Elea AI Assistant)

Optional (--mongodb yes, default no). Follows the Faveo MongoDB guide:

The final summary and credentials.txt show the MongoDB database, username, password, URI and admin credentials:

MongoDB Database:      faveo-elea
MongoDB Username:      faveo-elea
MongoDB Password:      <Randomly-Generated-Password>
MongoDB URI:           mongodb://faveo-elea:<password>@127.0.0.1:27017/faveo-elea?authSource=faveo-elea
MongoDB Admin User:    admin
MongoDB Admin Pass:    <Randomly-Generated-Password>

Enter these in Faveo under Admin β†’ System and maintenance β†’ Services β†’ MongoDB.


πŸ“Š Post-Installation & Verification

Upon successful completion, the script prints an installation summary and creates a credential reference file:

╔══════════════════════════════════════════════════════╗
       Faveo Helpdesk Installation Summary             
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
  URL:                   https://support.example.com
  Email:                 admin@example.com
  License Code:          ****************
  Order Number:          ********
  Release Selected:      official
  SQL Option:            mysql
  SQL Version Installed: 8.4.1
  PHP Version:           8.4
  Meilisearch Option:    yes
  Web Server:            nginx
  Node Option:           yes
  NATS Option:           no
  SSL Option:            certbot
  WebSockets (Reverb):   wss://support.example.com/app
  MongoDB Option:        no
  Database Host:         localhost:3306
  Database Username:     faveo
  Database Password:     <Randomly-Generated-Password>
  Meilisearch Master Key:<Randomly-Generated-Master-Key>
  Faveo Environment:     production
  Faveo Login Username:  demo_admin
  Faveo Login Password:  demopass
  Faveo Installation:    SUCCESS
  License Verification:  VERIFIED SUCCESSFULLY
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

When MongoDB is installed, the MongoDB lines shown in the MongoDB section are added.

πŸ“„ Credentials Record

A copy of these installation details is saved (readable by root only, mode 600) to credentials.txt in the folder you ran the installer from:

sudo cat ./credentials.txt

πŸ” Verification Commands

Check the health of all backing services by using the troubleshooting script by following this: Click Here

sudo supervisorctl status            # faveo-Horizon, faveo-reverb (and faveo-Nats) should be RUNNING
systemctl status redis-server        # RHEL family: systemctl status redis
systemctl status mongod              # only when --mongodb yes

πŸ’Ύ Backup

Back up the Faveo files and database of an existing installation:

sudo ./faveo.sh --backup                              # saves to /var/www/faveo-bkps
sudo ./faveo.sh --backup --backup-dir /mnt/backups    # custom folder

πŸ›‘ Failure Recovery & Rollback Engine

The installation suite includes a self-healing rollback routine (rollback()). If any stage fails (such as an invalid domain DNS propagation, network dropout during package installation, failed database credentials, or incompatible PHP modules), the script triggers an automatic rollback:

  1. Service Teardown: Stops and disables Meilisearch, NATS, MongoDB, Redis, Supervisor, Web Server, and PHP-FPM services.
  2. Package Purging: Removes installed packages (php-*, mysql-*, mariadb-*, mongodb-org*, httpd/apache2, nginx, nodejs, supervisor, redis, wkhtmltox).
  3. Worker Cleanup: Removes the Supervisor worker files (faveo-worker and faveo-reverb).
  4. Repository Cleanup: Removes added third-party repository definitions (remi*.repo, epel*.repo, mariadb*.repo, mongodb-org*, nodesource*, Sury GPG keys) to keep the package manager clean.
  5. Database Cleanup: Drops the faveo database and local faveo DB user if created locally, and removes MongoDB data.
  6. Storage Purge: Deletes /var/www/faveo, log folders, temporary SSL keys, and crontabs.

Keep instead of roll back: run with --onfailure keep to leave everything in place (files, configuration, database and packages) so you can investigate. Clean the server, or use a fresh one, before running the installer again.

Never rolled back: if the Faveo configuration step (php artisan install:faveo) or the license verification fails, the installation is kept so the problem can be fixed without reinstalling. The summary shows FAILED for that step.


❓ Troubleshooting & FAQ

1. Let’s Encrypt / Certbot Fails

2. SELinux Issues on RHEL / Rocky / AlmaLinux

3. Remote Database Connection Timed Out

4. High Memory Consumption

5. β€œUnsupported OS” Message

6. β€œDebian 13 does not support Nginx”

7. Real-Time Updates Not Working (WebSockets)

8. The Installer Waits at β€œContinue (y/n)?” in Automation


πŸ‘₯ Maintainers & Support