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.
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 β
βββββββββββββββββββββββββββββββββββββββββββ
faveo.sh (Main Orchestrator):
root/sudo privileges./etc/os-release) and validates OS version compatibility.debian_block.sh or rhel_block.sh).--backup).debian_block.sh (Debian/Ubuntu Engine):
apt-specific dependencies, dpkg packaging for wkhtmltox, and Debian service management.rhel_block.sh (RHEL-Family Engine):
httpd_can_network_connect for the Reverb proxy) and firewalld port openings.Continue (y/n)? before anything is installed.CA, Client Cert, Client Key, and Identity Verification)..env keys generated, web server proxy on /app/, and a dedicated Supervisor program.mongodb extension.9235.--backup creates a files archive and a database dump of an existing installation.--onfailure keep to keep everything for investigation instead.| 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.
A record pointing to the serverβs public IP address (internal installations are also supported).root or sudo access.store.faveohelpdesk.com and license.faveohelpdesk.com..
βββ 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 runsdebian_block.shorrhel_block.shfor you. Run it from inside this folder so it can find the engine scripts.
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
support.example.com (do not prefix with https://)admin@example.com (used for Letβs Encrypt and administrator alerts)1) Official (Stable) (recommended), 2) RC, or 3) Beta1) Production (recommended), 2) Development, or 3) TestingYes (recommended for >100 tickets/day) or NoYes or No (default: No)8.4 (default) or custom (8.2, 8.3)Yes (for asset graphical reports) or NoYes or No (default: No)1) MySQL (8.4) (default) or 2) MariaDB (10.6/11.8)1) Local (installed on server) or 2) Remote (connect to RDS/existing DB)1) Apache or 2) Nginx (Nginx is not offered on Debian 13)1) FreeSSL (Let's Encrypt), 2) Self-Signed, or 3) Paid SSLAfter 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.
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
| 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 |
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
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
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
sudo ./faveo.sh \
--domain helpdesk.mycompany.com \
--email it-admin@mycompany.com \
--license 1111222233334444 \
--order 87654321 \
--webserver apache \
--ssl certbot
| 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 are installed on every server β no option is needed. The installer follows the Faveo WebSockets guide:
.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./app/ are proxied to ws://127.0.0.1:8080 (Apache RewriteRule β¦ [P], Nginx location /app/). Normal HTTP requests stay with Faveo.faveo-reverb runs php artisan reverb:start --host=127.0.0.1 --port=8080:
/etc/supervisor/conf.d/faveo-reverb.conf/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
Optional (--mongodb yes, default no). Follows the Faveo MongoDB guide:
mongodb extension (php8.x-mongodb on Debian/Ubuntu, php-pecl-mongodb2 on RHEL family).authorization: enabled) in /etc/mongod.conf; MongoDB listens on 127.0.0.1 only (package default).faveo-elea with random passwords.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.
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.
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
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
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
fs-<date-time>.tar.gz (contents of /var/www/faveo) and db-<date-time>.sql.gz (database dump).credentials.txt; anything missing there is taken from /var/www/faveo/.env.--single-transaction.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:
php-*, mysql-*, mariadb-*, mongodb-org*, httpd/apache2, nginx, nodejs, supervisor, redis, wkhtmltox).faveo-worker and faveo-reverb).remi*.repo, epel*.repo, mariadb*.repo, mongodb-org*, nodesource*, Sury GPG keys) to keep the package manager clean.faveo database and local faveo DB user if created locally, and removes MongoDB data./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.
A record does not resolve to this serverβs public IP address, or port 80/443 is blocked.dig +short yourdomain.com and ensure your firewall/security group permits inbound traffic on ports 80 and 443.enforcing mode can block Nginx/Apache reverse proxy sockets or PHP-FPM file writes.permissive in /etc/selinux/config and enables httpd_can_network_connect. To check status, run getenforce.bind-address = 127.0.0.1 on the DB host).--sqlsecure yes with valid CA certificates if required.--node no), MongoDB (--mongodb no) and Meilisearch (--meili no) features during installation.--webserver apache (or option 1 in the wizard).faveo-reverb Supervisor program is not running, or the /app/ proxy is missing.sudo supervisorctl status faveo-reverb and sudo supervisorctl restart faveo-reverb; check /var/www/faveo/storage/logs/reverb.log.yes y | sudo ./faveo.sh β¦.thirumoorthi.duraipandi@faveohelpdesk.com