Choose an installation method
- Clean system. The
install.shscript supports Debian 12 and 13, and Ubuntu 24.04 and 26.04. Choose a site name that the client machines can resolve. - Existing web server. Use a dedicated nginx site, PHP-FPM and CLI 8.3 or later, and MariaDB 10.11+ or MySQL 8.0+. Enable
pdo_mysql,curl,mbstring,opensslandzlib. The stock PHP 8.2 in Debian 12 is below the required version.
Run the installer on a clean server
- Download
install.shandSHA256SUMS.txtfrom the same CUSTOS Monitor release into one directory. On Ubuntu, open that directory and run the commands below. On Debian, log in withsu -, return to the download directory and omitsudo. - After the checksum passes, enter the site address and the first administrator’s details. The script creates the
custossite account and a database with a generated password, then configures nginx, PHP-FPM and cron. - When setup finishes, open the Monitor URL it prints and sign in with the account you created.
awk '$2 == "install.sh"' SHA256SUMS.txt | sha256sum --check - &&
sudo bash install.shDeploy manually in CloudPanel or nginx
- Create a dedicated PHP site and site account, for example
custos. Create an emptycustosdatabase usingutf8mb4and a separate database user with privileges on that database. - Extract
custos-server-1.5.2.zipas the site user. Point the web root atserver/public. Route requests throughindex.phpwith their original paths, including/api/v1/. - On a first installation, copy
config/config.example.phptoconfig/config.phpinsideserver. Enter the database details, a site URL reachable by clients and the time zone. - From that directory, run
php8.4 bin/install.phpas the site user. Substitute the PHP CLI version that matches the website. Setup creates the tables, signing keys and the first administrator account. Keep the server key fingerprint.
Verify maintenance and database health
install.sh sets up maintenance automatically. For a manual installation, add one entry to the site user’s crontab. This example uses PHP 8.4 and a CloudPanel site named custos.lan. Adjust both the PHP executable and the site path.
- Open Home, wait a minute and reload. The background-task warning should clear.
- Open
/api/healthon the site. A healthy installation reportsokfor bothstatusanddb. Ifcron_lag_sis null or greater than 300, check the cron command and user. Runphp8.4 bin/cron.php --verbosefromserveras the site user for details.
* * * * * /usr/bin/php8.4 /home/custos/htdocs/custos.lan/server/bin/cron.phpPrepare a recovery copy
- Save a consistent database dump,
server/config/config.phpandserver/config/keys. If you set a customkeys_dir, back up that directory. Check that the copy includes the private keys and restrict access to it. - Include
server/var/packagesif you want to restore the saved client packages without another download. Record the Monitor version, site URL, nginx configuration and cron entry. - To restore, deploy the same Monitor version, import the dump into an empty database and restore the original settings and keys. Check the URL and server fingerprint before enabling maintenance.