Documentation

From zip file to working agency.

Everything you need to install, run and update Candivo. The full guides come with the download.

What you need

Candivo installs on ordinary hosting. It needs no Composer, no Node, no root access and no special modules.

  • Hosting with PHP 8.2 or newer and MySQL 8.0 / MariaDB 10.6 or newer. Candivo is developed on MySQL 8.4 with PHP 8.5 on Apache; its complete release test also passes on MariaDB 10.6 and 11.8, as it uses only the plain SQL both servers share.
  • PHP extensions: pdo_mysql, mbstring, openssl, sodium, ctype, fileinfo, zip, gd (with JPEG, PNG, FreeType and WebP). xmlreader is recommended.
  • PHP settings: memory_limit 128M or more, max_execution_time 30 or more, upload_max_filesize 8M and post_max_size 10M or more. The installer warns when they are lower.
  • A domain with HTTPS. Passwords and sessions must never travel unencrypted; most hosts give a free certificate.
  • An empty database and a database user with all privileges on it. The installer can create the database itself when the user is allowed to.
  • An email account that should send your messages (SMTP), and an authenticator app on your phone.

Install in the browser

Unzip the download on your computer. It makes one folder, candivo. Upload the contents of that folder to the web folder of your domain (often public_html), or to a sub-folder such as /recruitment/. Many hosting panels can upload the zip itself and unpack it for you.

Open https://your-domain/install/ and follow the pages:

  1. Welcome: choose the installer’s language and accept the licence.
  2. Server check: PHP, extensions, writable folders and — from your browser — whether the private folders are really unreachable. Anything marked Fix needed must be solved first.
  3. Database: server, port, name, user and password. Test connection says what is wrong in plain words.
  4. Agency: name, contact email, website address, time zone, country, currency and the languages of your public site.
  5. Email: SMTP details. Candivo sends a test message and will not go on until it has arrived.
  6. Administrator: your name, email and a long password; then scan a QR code with your authenticator app. You get ten recovery codes and an emergency key — shown once, so print or save them.
  7. Install: the installer creates the tables, saves your settings, writes config/config.php and removes the install/ folder.

If the installer cannot write config/config.php, the last page shows the exact content to put in that file by hand.

Background tasks

Reminders, queued email, the consent clock, scheduled backups and clean-up run from one small script. In your hosting panel open Cron Jobs and add one that runs every five minutes:

*/5 * * * *  php /home/you/public_html/cron.php

If your host cannot run PHP from cron, use the secret web address the installer shows (https://your-domain/cron/<secret>), called every five minutes by any free uptime service. With neither, choose the request-triggered mode in Settings → Scheduled tasks: it runs the tasks after page views, at most every five minutes.

After the installation

  • Sign in at /staff and open Security: it checks the server, the private folders and the headers, and tells you what to fix.
  • Open Backups and make the recovery key (shown once; keep it away from the server). Then make a first backup and switch on a daily schedule.
  • Open Settings for your agency’s logo and colours, languages, the consent period and your email templates, and Team to invite colleagues.
  • Keep config/config.php private and include it in your own backups: it holds the key that encrypts the documents.

The command-line installer

For servers you reach over SSH and for automated deployments, php console.php install --help installs without a browser, with the same checks and the same result as the wizard. A typical call:

CANDIVO_DB_PASS='…' CANDIVO_OWNER_PASSWORD='…' php console.php install \
    --db-name=candivo --db-user=candivo --agency-name="Sunny Staff" \
    --agency-email=office@sunny.example --url=https://sunny.example \
    --timezone=Europe/Zagreb --language=en \
    --owner-name="Olga Petrova" --owner-email=olga@sunny.example --json

Secrets are read from the environment or from files, never from the command line, so they stay out of the process list and the shell history. --check tests everything and installs nothing.

A stronger layout, and other web servers

Application above the web root. On hosts that let you put files outside the public folder, only index.php and assets/ need to be reachable. Put the unpacked folder somewhere private, keep a copy of index.php, assets/ and .htaccess in the public folder, point CANDIVO_ROOT at the private folder, and add 'web_root' => '/home/you/public_html' to config/config.php so that updates know where the public files are.

nginx ignores .htaccess: copy the rules from docs/nginx.conf.sample. IIS uses the included web.config. Candivo also works in a sub-folder — open /recruitment/install/.

Updating, safely

An update is one signed zip. Open Updates in the back office (owner only), upload it and review it: the page shows what is new and what will change. Candivo then:

  1. verifies the signature and every file in the package;
  2. checks that the server can take it (PHP version, extensions, disk space, writable folders);
  3. makes a safety backup;
  4. switches the site to a short “back in a moment” page;
  5. replaces the files — keeping the old ones — and applies the database changes;
  6. opens the site again; if any step fails, it puts everything back.

From a terminal: php console.php update candivo-X.Y.Z.zip. If an update is cut off, the Updates page (or php console.php rollback) puts the old files back.

Backups and the recovery key

A backup is one file: the whole database and every uploaded document, compressed, encrypted to your recovery key and signed. Make the recovery key once in Backups — it is shown once, and only its public half stays on the server. Keep the secret half somewhere else.

  • Make a backup by hand, or schedule one daily or weekly and keep the last few.
  • Copy backups off the server; a backup on the same disk is not a backup.
  • Restoring is one command: php console.php restore FILE. The file is read through completely (every chunk and the signature) before anything changes.
  • Moving to another server is the same: install Candivo there and restore.

Security checks

Open Security in the back office whenever you like. It tests, on the server and from your browser’s point of view, that private folders are unreachable, HTTPS is used, PHP is a supported version, errors aren’t shown to visitors, the configuration file isn’t world-readable, scheduled tasks run, a recent backup exists and no update is stuck. Treat it as a to-do list and aim for all green.

More on what Candivo protects, and what only you can do, on the Security page.

When something doesn’t work

What you seeWhat to do
PHP version / extension: Fix neededChoose a newer PHP in the hosting panel and enable the extension in the same place.
Private folders: EXPOSEDThe server ignores .htaccess (nginx, or Apache without AllowOverride). Use docs/nginx.conf.sample, ask the host to allow overrides, or use the layout above. Do not go live before this is green.
Clean URLs: Not workingmod_rewrite is off or .htaccess is ignored. Ask your host to enable mod_rewrite and AllowOverride All.
Database test failsThe message says which of: wrong user or password, server not found, database missing, not enough privileges, not empty. On shared hosts the names usually start with your account name.
The test email does not arriveCheck the SMTP host, port and encryption (587 with STARTTLS, 465 with SSL). Many hosts need the full email address as the user name and a From address on your own domain. Look in the spam folder.
A blank page or “Something went wrong”storage/logs/ has the details; the error page shows a reference number that is also in the log.
Folders the application writes to are not writableSet the folder permissions to 755 (or 775) in the file manager; if PHP runs as another user, use 775 and the right group.

If an installation stops half way, nothing is lost: open /install/ again and the installer offers to start over. To remove Candivo, delete its files and its database — there is nothing else on the server.

The guides in the download

  • INSTALL.md — installing, hosting notes, cron, the command-line installer, troubleshooting
  • UPDATING.md — signed updates, the Updates page, from a terminal, and when one goes wrong
  • BACKUPS.md — the recovery key, scheduled backups, restoring, moving to another server
  • SECURITY.md — how Candivo protects the data, what you must do yourself, how to report a vulnerability
  • CHANGELOG.md — what changed in each version

The guides in the download are in English. This page summarises them in your language.

Ready when you are.

Download Candivo and have it running this afternoon.