CUSTOS

Install Monitor on Linux

On a clean server, the installer provisions the web server, PHP, database and maintenance jobs. On an existing CloudPanel or nginx host, you can deploy Monitor alongside other sites.

Choose an installation method

  • Clean system. The install.sh script 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, openssl and zlib. The stock PHP 8.2 in Debian 12 is below the required version.

Download Monitor for Linux

Run the installer on a clean server

  1. Download install.sh and SHA256SUMS.txt from the same CUSTOS Monitor release into one directory. On Ubuntu, open that directory and run the commands below. On Debian, log in with su -, return to the download directory and omit sudo.
  2. After the checksum passes, enter the site address and the first administrator’s details. The script creates the custos site account and a database with a generated password, then configures nginx, PHP-FPM and cron.
  3. 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.sh

Deploy manually in CloudPanel or nginx

  1. Create a dedicated PHP site and site account, for example custos. Create an empty custos database using utf8mb4 and a separate database user with privileges on that database.
  2. Extract custos-server-1.5.2.zip as the site user. Point the web root at server/public. Route requests through index.php with their original paths, including /api/v1/.
  3. On a first installation, copy config/config.example.php to config/config.php inside server. Enter the database details, a site URL reachable by clients and the time zone.
  4. From that directory, run php8.4 bin/install.php as 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/health on the site. A healthy installation reports ok for both status and db. If cron_lag_s is null or greater than 300, check the cron command and user. Run php8.4 bin/cron.php --verbose from server as the site user for details.
* * * * * /usr/bin/php8.4 /home/custos/htdocs/custos.lan/server/bin/cron.php

Prepare a recovery copy

  • Save a consistent database dump, server/config/config.php and server/config/keys. If you set a custom keys_dir, back up that directory. Check that the copy includes the private keys and restrict access to it.
  • Include server/var/packages if 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.