Business

Invoice Ninja hosting

Invoicing, quotes and payments. Deploy to a dedicated VPS in seconds — database auto-created, SSL installed, firewall locked down from the first boot.

5.13

Versions

MySQL / MariaDB

Database

PHP

Category

SSL included
Firewall locked
DB auto-created
Live in minutes
Overview

What is Invoice Ninja?

Invoice Ninja is an open-source invoicing and billing platform. It covers invoices, quotes, recurring billing, online payments, expenses, time tracking, a client portal and a REST API.

Freelancers, agencies and small businesses use it to send professional invoices, take card and bank payments through gateways such as Stripe and PayPal, and keep track of what clients owe.

Self-hosting Invoice Ninja keeps your client list, invoices and payment records on your own server, with no per-client or per-invoice limits from the hosting side.

SharkCluster installs the official Invoice Ninja 5 release (checked against its published checksum), creates the database and your admin account, and sets up a cron job that runs Invoice Ninja's scheduler and queue every minute. Invoice PDFs are rendered on your server with a bundled Chromium instead of being sent to an outside PDF service.

Quick facts

Version
5.13
Database
MySQL / MariaDB
Category
PHP
  • SSL included
  • Firewall locked
  • DB auto-created
  • Live in minutes
Why SharkCluster

Why Invoice Ninja on SharkCluster?

Ready to log in

The database is migrated and your admin account is created during install, so you can start adding clients straight away.

Private PDF generation

Invoice and quote PDFs are rendered on your server, so invoice data is not sent to a hosted PDF service.

Emails and reminders run on time

A cron job runs the scheduler and the database queue every minute, which sends emails, PDFs, recurring invoices and reminders.

Verified release

The pre-built release is downloaded and checked against its SHA256 checksum before it is installed.

Online payments

Connect Stripe, PayPal, GoCardless and other gateways so clients can pay from the invoice.

Client portal

Clients view and pay invoices, approve quotes and download documents in their own portal.

Features

What you get with Invoice Ninja

  • Invoice Ninja 5 (pre-built release)

  • Admin account created automatically

  • Invoices, quotes and credits

  • Recurring invoices and payment reminders

  • Expenses and time tracking

  • Client portal

  • Online payment gateways

  • Local PDF generation with Chromium

  • Scheduler and queue run by cron every minute

  • REST API

  • MySQL / MariaDB database

  • Custom domain support

  • Free SSL certificate

Use cases

What Invoice Ninja is built for

Freelancers

Send invoices, track time per project and get paid online.

Agencies

Bill many clients with recurring retainers and project invoices.

Subscription billing

Use recurring invoices with automatic card charges for regular services.

Quotes to invoices

Send quotes, let clients approve them online and convert them to invoices.

Expense tracking

Record expenses and re-bill them to clients.

System requirements

Server specs for
Invoice Ninja

Not sure which plan to pick? The panel warns you before you deploy so you can choose the right size the first time.

  • Minimum specs shown before deploy
  • Panel blocks deploy if server is undersized
  • Upgrade path available inside the panel
PHP
PHP 8.2 or newer.
PHP extensions
bcmath, gmp, intl, gd, zip, mbstring, curl, dom, simplexml, pdo_mysql, soap, imagick, fileinfo and others; installed during setup.
Database
MySQL or MariaDB.
Memory
2 GB RAM recommended.
CPU
2 vCPU recommended.
Storage
10 GB+ SSD.
Architecture

How Invoice Ninja fits together

1

Domain

Your billing subdomain points to the SharkCluster server.

2

Web server

nginx or Apache serves Invoice Ninja's public folder and passes PHP to PHP-FPM.

3

PHP-FPM

Runs the Laravel-based Invoice Ninja application (PHP 8.2+).

4

MySQL / MariaDB

Stores clients, invoices, payments and settings.

5

Cron

Runs artisan schedule:run every minute, which also processes the queue.

6

Chromium

Renders invoice and quote PDFs locally.

Get started

After your Invoice Ninja deploy

  1. 1

    Create an Invoice Ninja application

    Select Invoice Ninja in the SharkCluster panel with PHP 8.2 or newer.

  2. 2

    Connect your domain

    Point a subdomain to the server and enable SSL.

  3. 3

    Log in

    Use the email and password shown on the app's Access tab in the panel.

  4. 4

    Set up email

    Configure SMTP or a mail service under Settings so invoices can be emailed. Until then, emails are only written to the log.

  5. 5

    Add your company details

    Add your logo, address, tax settings and invoice design.

  6. 6

    Connect a payment gateway

    Add Stripe, PayPal or another gateway under Settings > Payment Settings.

  7. 7

    Send a test invoice

    Create a client, send an invoice to yourself and check the PDF and payment link.

Deployment

Ship Invoice Ninja your way

Install PHP extensions

Extensions Invoice Ninja needs and the libraries Chromium needs are installed.

Download the release

The pre-built release (with vendor files and the React UI) is downloaded and its checksum verified.

Write .env

Database, HTTPS URL, database queue and local PDF engine settings are written.

Set up the database

The app key is generated and migrations and seeders are run.

Create the admin account

Your account is created with ninja:create-account.

Download Chromium

Chromium for PDF generation is downloaded and a test PDF is rendered.

Add cron

schedule:run is added to the www-data crontab every minute.

Performance

Keeping Invoice Ninja fast

Keep the cron running

Emails, PDFs and recurring invoices are processed by the cron job; if it stops, nothing is sent.

Add memory for PDFs

Chromium uses memory while rendering; larger batches of invoices need more RAM.

Cache configuration

Run php artisan optimize after changing .env.

Deployment checklist

Before you go live

  • Login works

  • Domain DNS points to the server

  • SSL is enabled

  • Email delivery is configured

  • A test invoice PDF downloads correctly

  • A payment gateway is connected

  • The scheduler cron is running

Production checklist

Ready your Invoice Ninja for launch

  • Configure SMTP or a mail service

  • Use a strong admin password and enable two-factor authentication

  • Back up the database and storage folder

  • Test recurring invoices and reminders

  • Keep Invoice Ninja updated

  • Restrict user permissions for staff accounts

Useful commands

Working with Invoice Ninja

Run the scheduler manually

Run in the application folder to process due jobs now.

bash
php artisan schedule:run

Clear and rebuild caches

Apply .env changes.

bash
php artisan optimize

Check the queue

Process waiting queue jobs once.

bash
php artisan queue:work --stop-when-empty

Run migrations

Apply database updates after an upgrade.

bash
php artisan migrate --force
Troubleshooting

Common Invoice Ninja issues & fixes

Invoice emails are not sent

Cause
Email is still set to the log mailer, or the cron job is not running.
Solution
Configure SMTP in Settings > Email Settings or MAIL_ variables in .env, and check the www-data crontab.

PDF is blank or fails

Cause
Chromium is missing or cannot start.
Solution
Run vendor/bin/snappdf download as the app user and check the Chromium folder is executable.

Recurring invoices did not go out

Cause
The scheduler cron is not running.
Solution
Check the www-data crontab for schedule:run and run it manually to see errors.

Error 500 after changing .env

Cause
Cached configuration is out of date or .env has a syntax error.
Solution
Check storage/logs/laravel.log and run php artisan optimize.
Security config

Hardened before your first request

Every deploy is locked down from boot — closed firewall, valid SSL, and restricted access by default.

  • Use a strong admin password and enable two-factor authentication.

  • Keep .env readable only by the app and web server (it is set to 640).

  • Use payment gateways that keep card data off your server.

  • Keep Invoice Ninja updated.

  • Back up the database regularly.

Database

The data layer behind Invoice Ninja

MySQL or MariaDB

Invoice Ninja is installed on MySQL or MariaDB; the database is created automatically.

Queue table

Background jobs are stored in the database queue and processed by the cron job.

Cron jobs

Automations that run on schedule

Scheduler every minute

php artisan schedule:run runs every minute as www-data.

What it runs

Queued emails and PDFs, recurring invoices, reminders and other scheduled tasks.

Upgrade safely

A safe Invoice Ninja upgrade path

  1. 1

    Back up

    Back up the database, .env and storage folder.

  2. 2

    Read the release notes

    Check Invoice Ninja's release notes for required steps.

  3. 3

    Update

    Use the built-in updater or replace the files with the new release.

  4. 4

    Migrate and optimize

    Run php artisan migrate --force and php artisan optimize.

Take a snapshot before every upgrade so a bad release can be rolled back in minutes.

Who owns what

We manage the server, you own the store

SharkCluster manages

  • VPS infrastructure
  • PHP-FPM
  • MySQL / MariaDB
  • Web server
  • Scheduler cron
  • SSL
  • Firewall
  • Backups where enabled

You manage

  • Clients and invoices
  • Email delivery settings
  • Payment gateways
  • Users and permissions
  • Invoice Ninja updates

Everything below the application line — from nginx to backups — is infrastructure. Your code, content and store configuration are always yours, and you keep full SSH and root access.

FAQ

Frequently Asked Questions

The questions we hear most from people deploying Invoice Ninja on SharkCluster.

Contact support

Invoice Ninja is an open-source invoicing and billing platform for invoices, quotes, recurring billing, payments, expenses and time tracking.

Use the email and password shown on the app's Access tab in the SharkCluster panel.

New installs write emails to the log until you configure SMTP or a mail service. Set it up under Settings > Email Settings.

On your own server with a bundled Chromium, so invoice data is not sent to an outside PDF service.

Yes. Connect a gateway such as Stripe or PayPal and clients can pay from the invoice or client portal.

PHP 8.2 or newer.

One-click setup

From deploy to live in minutes

Stack configured

Runtime, process manager and config files set up for you.

MySQL / MariaDB wired

Database created with a user and credentials in your config.

SSL + firewall

Free Let's Encrypt certificate and closed-by-default UFW rules.

Deploy anytime

Push with Git, or use the built-in file manager and ZIP upload.

Start your journey today

How do you start
with SharkCluster?

To start with SharkCluster, create an account and your first server on DigitalOcean, Contabo or OVHcloud — no credit card or lock-in contract is needed. Every account includes free self-hosted business apps, free local backups, unlimited migrations and a dedicated DevOps manager.

No lock-in contracts
No credit card required
Dedicated DevOps manager