# WHMCS Server Setup

> A Linux server built for WHMCS itself: PHP and ionCube matched to your version, MySQL, Apache or Nginx, cron, SSL.

We build the server your WHMCS billing system runs on: operating system, web server, PHP-FPM, ionCube, MySQL, cron, SSL, mail relay and backups, set up to WHMCS's published requirements.

- **Price:** Starting at $199
- **Billing:** One-time, fixed scope
- **Category:** Server Management
- **Quote turnaround:** Fixed-price quote within 24 hours
- **Start a project:** https://whmcspilot.com/start-project
- **Details:** https://whmcspilot.com/services/whmcs-server-setup
- **Last updated:** 2026-11-05

## Overview

WHMCS server setup builds the Linux machine your WHMCS installation lives on: operating system, web server, PHP, database, cron, SSL and backups, configured to the requirements WHMCS publishes before the software goes on. It suits hosting brands moving billing off a shared cPanel account or a busy hosting node, and new operators who want WHMCS on its own VPS from the start. One server starts at $199.

This page is about the billing server only. The cPanel/WHM machines you sell hosting from are covered by [cPanel installation and WHMCS integration](/services/whmcs-cpanel-installation), and locking those down is [WHM setup and hardening](/services/whmcs-whm-hardening).

## Why WHMCS deserves its own server

WHMCS holds an API token or password for every server it provisions on, your gateway keys and every customer's billing record. On a shared hosting node, one compromised customer site sits next to all of that. A small VPS used only for billing also makes PHP changes safe, because moving WHMCS to a newer PHP version cannot break a customer's old WordPress plugin.

## The stack, matched to your WHMCS version

ComponentWhat we set upPHP8.1 or later for WHMCS 8.13; 8.2 or later for 9.x (the 9.1 requirements list PHP 8.2, 8.3 and 8.4)ionCube LoaderThe build that matches your PHP and WHMCS release; 9.1 needs 15.0.0 or laterDatabaseMySQL 8, which WHMCS recommends; MariaDB only on request, since WHMCS describes it as binary-compatible rather than officially supportedWeb serverApache 2.4 with mod\_rewrite and PHP-FPM, or NginxOperating systemUbuntu LTS, Debian or AlmaLinux

WHMCS lists December 31, 2026 as the end of life for 8.13. We install PHP so that both 8.13 and 9.x can run on the same machine, which means the later [upgrade to WHMCS 9](/services/whmcs-9-upgrade) does not require a rebuild.

## Apache or Nginx

WHMCS validates Apache 2.x with mod\_rewrite and calls Nginx support limited. Nginx ignores the .htaccess files WHMCS ships, so on an Nginx build we write the equivalents by hand: the deny rule for /vendor/ that WHMCS documents, plus rules that stop configuration.php, the admin directory and any leftover install folder from being served directly. With no strong preference either way, we pick Apache with the event MPM and PHP-FPM, the setup WHMCS support expects to see when you open a ticket.

## What the build includes

- SSH key login, root password login disabled and unattended security updates
- A firewall that opens only HTTPS, SSH from your addresses, and the outbound ports WHMCS needs, such as 2087 to your WHM servers
- A PHP-FPM pool under its own system user, with OPcache on and memory\_limit at or above the 128 MB WHMCS recommends
- The required PHP extensions (cURL with SSL, GD, IMAP, PDO\_MySQL built on mysqlnd, XML) and the recommended ones (BC Math, Intl, mbstring, GMP, SOAP)
- A dedicated database and user, the InnoDB buffer pool sized to the server's RAM, and STRICT\_TRANS\_TABLES and ERROR\_FOR\_DIVISION\_BY\_ZERO removed from sql\_mode, as WHMCS requires
- A Let's Encrypt certificate with automatic renewal for a hostname such as billing.yourbrand.com, or origin rules if you sit behind Cloudflare
- Private folders above the web root ready for attachments, downloads, templates\_c and the crons directory
- The system cron calling the same PHP binary the web server uses, so WHMCS does not report a cron PHP mismatch
- An SMTP relay such as Amazon SES, Postmark or Mailgun, with SPF and DKIM published for your sending domain
- Nightly database and file backups sent off the server, with one test restore before handover

If your cron has already gone quiet on an old server, [our cron troubleshooting guide](/blog/whmcs-cron-not-running) explains what to check while the new one is built.

## What we need from you

- Root access to a VPS or dedicated server, or access to a Hetzner, Vultr, DigitalOcean or OVHcloud account where we can create one
- The billing hostname and access to its DNS
- The WHMCS version you run or plan to run
- Fixed IP addresses for your staff, if you want SSH and the admin area restricted to them

For a new install, two vCPUs and 4 GB of RAM is a sensible starting size. Larger client bases or heavy module use need more, and we size it from your numbers on the call.

## Pricing

ScopePriceOne new server with the stack above, ready for a WHMCS installFrom $199, one-timeMoving an existing WHMCS onto it: files, database, crons and DNS cutoverFixed quote after the scoping callExtra environments such as staging, or later changes$65 per hour, or a fixed quote

The written quote, sent within one business day of the free call, gives the delivery date.

## Not included

- Your WHMCS license, server rental and SMTP provider fees
- Installing and configuring WHMCS itself, which is our [WHMCS installation service](/services/whmcs-installation) and is often booked alongside
- Tuning a server that already runs WHMCS slowly; that is [WHMCS performance tuning](/services/whmcs-performance-tuning)
- Servers that host customer websites

Not sure whether to move billing out of the cPanel account it lives in today? Bring the server details to the scoping call and we will tell you what the move changes and what it costs.

## What's included

- PHP and ionCube Loader versions matched to WHMCS 8.13 (PHP 8.1+) or 9.x (PHP 8.2+)
- Apache with mod_rewrite and PHP-FPM, or Nginx with hand-written directory restrictions
- MySQL 8 with a dedicated WHMCS database, strict modes removed and buffer pool sized to RAM
- PHP-FPM pool under its own user with OPcache and the required and recommended extensions
- SSH keys only, firewall rules and unattended security updates
- Let's Encrypt SSL with automatic renewal, or Cloudflare origin setup
- Private directories above the web root for attachments, downloads, templates_c and crons
- System cron using the same PHP binary as the web server
- SMTP relay with SPF and DKIM for your sending domain
- Off-server nightly backups with one tested restore

## Business outcomes

- A breach on a customer website cannot reach your billing data or server credentials
- PHP can change for WHMCS without affecting customer sites, and the reverse
- The server is ready for WHMCS 9 when you move off 8.13
- Invoices, reminders and suspensions run on time because cron is set up correctly
- You can restore billing from backup instead of rebuilding it from memory

## Frequently asked questions

### Which PHP version will my WHMCS server run?

The one your WHMCS release supports: PHP 8.1 or later for 8.13, and 8.2 or later for 9.x. We install versions that cover both so you can upgrade WHMCS without rebuilding the server.

### Can WHMCS run on Nginx?

Yes, but WHMCS only validates Apache and describes Nginx support as limited. On Nginx we write the directory restrictions that .htaccess would normally handle, including the /vendor/ deny rule WHMCS documents.

### Should WHMCS run on the same server as my cPanel customers?

We advise against it. WHMCS stores credentials for every server and gateway you use, so keeping it on a separate small VPS limits what a compromised customer account can reach.

### Does the price include installing WHMCS?

No. The $199 starting price covers the server, and installing and configuring WHMCS is a separate service that many clients book at the same time.

### Do you use MariaDB or MySQL?

MySQL 8 by default, because that is what WHMCS recommends. We can use MariaDB if you prefer it, with strict mode disabled either way.

### How do I pay for a server build?

Half when you accept the quote and half when the server is handed over, by card, Apple Pay or Google Pay through Stripe, by PayPal, or in crypto through NOWPayments.
