CMS

Host Directus on VeloxaHost

Directus is a data platform that puts a REST and GraphQL API and a no-code admin app on top of a SQL database, with users, roles, permissions and file storage built in. Developers use it as a headless CMS or a backend for apps, and content teams use its admin app to manage the data.

The one-click install puts Node.js 22 from NodeSource on Ubuntu 24.04 (Directus needs Node 22 or newer), creates a directus user, and installs the directus npm package into a project in /opt/directus with uploads, extensions and database folders. It writes /opt/directus/.env, readable only by that user, with a SQLite database at /opt/directus/database/data.db, a random SECRET, and an admin account, then runs npx directus bootstrap to create the tables and the admin. Directus runs as the directus systemd service, under its own user, on port 8055.

Signing in

The admin is admin@example.com. VeloxaHost replaces the install script's placeholder password with a random one at deploy time and stores it encrypted; organization owners and admins can reveal it on the server's page, and every reveal is recorded in the audit log. Sign in, then change the email and password under your user in the admin app, and delete the stored copy.

The ADMIN_EMAIL and ADMIN_PASSWORD lines in .env are only used by the first bootstrap; remove them once you have changed the account.

What it needs

Directus's requirements give an absolute minimum of 0.25 vCPU and 512 MB, and a recommended minimum of "2x 1 vCPU / 2GB". The recommended 1 vCPU and 2 GB is the Veloxa 1 size: 1 vCPU, 2 GB RAM and 50 GB of disk for $8 a month, billed at $0.02 an hour and capped at the monthly price. If a project outgrows it, raise memory from the console: on a container the change applies without a restart.

SQLite suits a small project. For more traffic or several editors, Directus supports PostgreSQL, MySQL, MariaDB and others; a PostgreSQL server is one click away. Point DB_CLIENT and the DB_* settings in .env at it before you build your data model.

Reaching it on VeloxaHost

Every server gets a block of ports (10 by default) on the region's shared IPv4 address. The first forwards to SSH; under How to connect on the server's page, forward another to 8055 and open http://<shared address>:<port>.

Set PUBLIC_URL in .env to the address people use, then systemctl restart directus. Directus uses it for OAuth redirects, password-reset emails and public logos, and its docs say it must be a full URL for single sign-on and licensed features. For a domain with HTTPS on port 443, use a dedicated IPv4 address (a paid add-on with limited availability) with Caddy or Nginx in front of port 8055. IPv6 is not available in US East yet.

Email

Directus sends invitations and password resets by email, and its default transport is sendmail. VeloxaHost blocks outbound TCP port 25 by default, so set EMAIL_TRANSPORT=smtp with your provider's EMAIL_SMTP_HOST, EMAIL_SMTP_PORT (587 or 465), EMAIL_SMTP_USER and EMAIL_SMTP_PASSWORD, and an EMAIL_FROM address, in .env.

Backups and updates

Everything is in /opt/directus: .env, the SQLite database in database, uploaded files in uploads and custom code in extensions. Turn on automatic snapshots on the server page (hourly up to weekly, kept for 1 to 30 days) or scheduled backups (every 6 hours up to weekly, keeping 1 to 10); both capture the folder with the rest of the disk.

To update, take a snapshot and read Directus's breaking-changes list for the versions in between, then run, as the directus user:

cd /opt/directus
npm install directus@latest
npx directus database migrate:latest

and systemctl restart directus as root.

FAQ

Is Directus a headless CMS?

It can be one: define collections for your content, and front ends read them through the REST or GraphQL API. It is also used as a general backend and admin panel over any SQL database.

Can I connect it to an existing database?

Yes. Directus connects to any SQL database it supports, so it can sit on one you already have. Take a backup of that database first, because Directus adds its own directus_ system tables to it.

Which Directus version does it install?

The latest directus package on npm at deploy time; it was 12.5.0 at this page's check. npm ls directus in /opt/directus shows the installed version.

What license is Directus under?

Directus is released under the Monospace Sustainable Core License 1.0, and each release also becomes available under GPL-3.0 four years after it ships. Directus says organisations under $5M in annual revenue and 50 employees can use it free through its Open Innovation Grant, a free core tier is open to everyone, and larger organisations using advanced or enterprise features need a commercial license.

Which VeloxaHost size fits Directus?

The recommended 1 vCPU and 2 GB of RAM is a Veloxa 1: 1 vCPU, 2 GB RAM and 50 GB of disk for $8 a month, billed at $0.02 an hour and capped at that price.