Skip to content
Shahid Malla

How to Set Up WHMCS Yourself: Install, Secure, Configure, Test

A do-it-yourself WHMCS setup in the order of work, checked against the WHMCS 9.1 documentation on the day: install routes, the ten security steps, the gate at first login, settings, backups and test orders.

· Published · Updated · 12 min read · 11 steps
How to Set Up WHMCS Yourself: Install, Secure, Configure, Test

To set up WHMCS yourself, work in four stages and do not reorder them: install, secure, configure, test. Check the server against the system requirements, upload the files, create the database and run the installer. Then apply the ten security steps, finish the Getting Started Wizard, set general settings, gateways, products, support, cron and backups, and place test orders.

A WHMCS setup is the sequence that turns a licensed copy of WHMCS into a billing system that can take an order, provision a service and collect a renewal without you touching it. It has four stages, and each one has a gate that blocks the next. The order matters more than any single setting.

Everything below is checked against the WHMCS documentation as I read it on 27 November 2026, when the home page listed 9.1 as the General Availability release. WHMCS Cloud, sold as fully managed, does the install, security and cron for you, so this guide is for self-hosted installs.

Four rising steps for setting up WHMCS yourself: install the files, secure the install, configure the wizard and settings, then place test orders and clear the test data
The four stages of a self-hosted WHMCS setup, in the order the official guide gives. Source: shahidmalla.com.

In words: install by checking requirements, uploading and running the installer; secure before any customer data exists; configure the wizard, settings, gateways, products and cron; then place test orders and clear the test data.

Version detail sits in my WHMCS system requirements guide, cron debugging in my cron guide, restore tests in my backup guide, and moving an install in how to migrate WHMCS.

What do you need before you install WHMCS?

A license, a server that meets the requirements, and an empty MySQL database. A license bought directly from WHMCS lets you download the Full Release from the Members Area; a reseller supplies the files otherwise.

Prices from the WHMCS pricing page, read 27 November 2026, per month and excluding tax. The same page warns that pricing will be adjusted from 1 January 2027 for new orders and renewals.

Self-hosted planActive clients includedPrice per month
Plus250$34.95
Professional500$54.95
Business1,000, tiers to 10,000$84.95
Bar chart of WHMCS self-hosted license prices per month, excluding tax: Plus at $34.95, Professional at $54.95 and Business at $84.95, read on 27 November 2026
Self-hosted license price per month, excluding tax. Source: whmcs.com/pricing, read 27 November 2026.

Fully managed starts at $9.99 for 25 active clients, as my WHMCS pricing guide sets out. An active client is one with at least one active product, service, addon or domain, and when you pass the limit WHMCS notifies you and, unless you opt out, upgrades the license for you.

The System Requirements page asks for Linux with Apache 2.x, PHP 8.2, 8.3 or 8.4, ionCube Loader 15.0.0 or higher, MySQL 5.2 at minimum with 8.x recommended, and 64 MB of PHP memory, 128 MB recommended. Strict mode is not supported, and turning it off needs full root permissions, as does installing ionCube Loader.

Which WHMCS install route fits your server?

The browser installer, the command line or Plesk's extension, plus the option of not installing at all.

Decision flow for installing WHMCS: no maintainer or no ionCube means fully managed, encrypted databases need the command-line installer, Plesk has an extension, otherwise the browser installer
How I pick the install route for a new WHMCS setup. Source: shahidmalla.com.

In words: if nobody will apply updates and read System Health, fully managed fits better. If neither you nor your host can load ionCube Loader 15 or higher, change host or go fully managed. An encrypted database connection needs the command line. On Plesk, use the WHMCS Installer extension, which also does some of the security steps. Otherwise use the browser installer.

Install on the Command Line documents the third route. The script is bin/installer.php, it upgrades by default, so a new install needs the -i flag, and the JSON you pipe in holds an admin array and a configuration array:

echo $(echo $CONF | tr -d "\n") | php -f bin/installer.php -- -i -n -c

The value people get wrong is cc_encryption_hash: 64 characters of a-z, A-Z and 0-9 only, made with openssl rand -base64 128 | tr -d "\n\/+=" | cut -c 1-64.

How do you install WHMCS step by step?

Upload the files, create the database, run the installer, delete the install folder. The Install WHMCS page gives seven steps:

  1. Buy the license and download the Full Release.
  2. Verify the system requirements, including PHP extensions, MySQL and ionCube Loader.
  3. Upload and unzip the whmcs folder. You may rename it, for example to billing, but not to admin.
  4. Create the database and a user with ALTER, CREATE, DROP, INDEX, LOCK TABLES, SELECT, INSERT, UPDATE and DELETE.
  5. Open install/install.php, accept the license agreement, set permissions, enter the license key and create the primary admin. The password must be 12 to 64 characters and no more than 72 bytes, with a letter and a number, so non-Latin characters can fail a password that looks short enough.
  6. Delete the install folder when the Installation Completion page appears.
  7. Check permissions: configuration.php at 400, and attachments, downloads and templates_c writable.

If the installer refuses to start, the usual cause is a configuration.php that still points at an existing WHMCS database; back it up and change the details first.

Which security steps come right after the install?

All ten of them, before you add a gateway or a single client. The Enhancing Security page lists them in this order, and several get much harder later.

StepWhy it belongs here
1. Move writable directoriesMoving them later needs a migration, not a switch
2. Lock configuration.phpIt holds the encryption hash
3. Move the crons directoryStops web access to the cron scripts
4. Restrict Admin Area accessOnly practical where staff use fixed IP addresses
5. Rename the admin directoryA later rename voids callback URLs that name the old folder
6. Enable SSLThe System URL should be https from day one
7. Restrict database privilegesDrop ALTER, CREATE, DROP and INDEX after install
8. Block the vendor directoryThe shipped .htaccess covers Apache, not NGINX
9. Send a frame-ancestors CSP headerDefends the Client Area against clickjacking
10. Harden the serverDepends on your panel, so never copy-paste

Two details catch people out. Secure Writeable Directories says to add the new paths as Local Storage under Storage Settings, then click Switch only if you really moved the folders; if you created empty ones, click Migrate, which copies the files across. For the admin folder, add $customadminpath = "yourname"; at the bottom of configuration.php and rename the folder to match, then copy the new admin files in after every update.

I copy configuration.php off the server before I touch anything else. It is the one file no database backup can replace.

What happens at the first admin login?

The Getting Started Wizard opens, and on a brand new install you cannot get past it without a WHMCS Marketplace account. The Getting Started Wizard page is explicit: until you complete the wizard once, the MarketConnect step cannot be skipped or dismissed. Upgraded installs, installs with a Marketplace account already linked, and admins without the full administrator role are exempt.

The wizard then covers languages and analytics consent, company details and a logo, payments with PayPal Payments, Stripe, Bank Transfers or Mail In Payment, domain sales through Enom, your first cPanel, Plesk or DirectAdmin server, and MarketConnect products. Your role needs the Configure General Settings, Manage Pay Methods, Configure Payment Gateways and Configure Servers permissions.

Which settings should you change before anyone can order?

Work through the tabs at Configuration > System Settings > General Settings: company name, logo, System URL with https:// and friendly URLs on General; default language and date format on Localization; invoice numbering, immutability and late fees on Invoices; nameservers on Domains; captcha, ban length and cron HTTP access on Security; Display Errors off on Other.

Mail is the tab I see break launches most often. The Mail page lists SMTP, MailGun, Microsoft, SendGrid and SparkPost as alternatives to the default PHP Mail, and states something worth knowing first: when you click Save, WHMCS sends a test email and will not save the change unless it succeeds. A wrong SMTP password leaves you with a setting that refuses to stick. Publish your SPF and DKIM records at the same time, or invoices land in spam.

How do you connect gateways, servers, products and support?

In that order, because a product needs a server and an invoice needs a gateway. Activate the gateway at Configuration > Apps & Integrations; if you take no cards yet, activate Bank Transfer or Mail In Payment so invoices still have a method, and see my Stripe guide for card payments. Add the server under Servers and test the connection before you build products on it, as in the cPanel integration guide. Then create a product group and its products, and a department under Support Departments, with email piping or importing so replies become ticket updates.

How do you turn on the cron job and the automation rules?

Add crons/cron.php to the server's cron to run every five minutes. Copy the exact command from Configuration > System Settings > Automation Settings, where the first badge shows it, rather than typing the path. The System Cron page gives this example:

*/5 * * * * php -q /home/username/crons/cron.php

Two official pages disagree on timing. Install WHMCS lists the cron near the end of its Next Steps; the Getting Started Wizard page tells self-hosted users to configure it before the first login. I follow the wizard, so automation is already running the first time anyone opens Automation Status.

These are the Automation Settings that decide how billing behaves:

SettingDefault or rangeWhat it decides
Time of Day9:00am server timeThe hour every daily task runs in
Invoice Generation14 days before dueHow early renewal invoices appear
Suspend and Termination DaysOff until enabledWhen unpaid services stop, and leave the server
Process Days Before DueDays, your choiceThe first card capture attempt
Retry Every Week ForWeeks, 0 disablesRetries a declined card weekly, not daily
CC Expiry Notices DateDay of month, 1 advisedExpiry reminders; expired cards go on the 1st
Enable Auto CancellationOff, with Days OverdueCancels old unpaid invoices, but never partly paid ones

Pick the Time of Day hour deliberately: invoicing, payment capture, suspensions, terminations and the database backup all happen inside it. Enable Unsuspension does not reverse a manual suspension given a custom reason, which is why a paid invoice sometimes leaves a service down.

How do you set up backups and a test copy?

Turn on an automated backup at Configuration > System Settings > Database Backups. The Database Backups page offers SFTP/FTP, which does not support FTPS; cPanel Backups, which needs a WHM API token with the basic-system-info and cpanel-api permissions; and Daily Email Backups, which may fail on large databases. The SFTP/FTP and email options hold the database alone, so templates, hooks and modules are not in them. cPanel Backups asks cPanel for a full account backup, which does cover files, but WHMCS will not detect completion, move the file or notify you.

Set up a test copy at the same time. Set Up a Test Environment gives one free development license per active license bought directly, and up to three on a Business license. The copy must be private and return a Forbidden error or a login prompt, and Live Chat is the one addon that does not carry over. Set Disable Email Sending to ON, update the System URL, and put gateways in test mode. The documentation also suggests adding characters to the encryption hash in the copy's configuration.php, so WHMCS cannot decrypt card data and charge anyone by accident.

How do you test WHMCS before taking real orders?

Push a test order through every stage, then clear the data. My checklist before a new install goes live:

  1. Order from the public order form as a new client, gateway in test mode.
  2. Confirm the service shows Active, the account exists and the welcome email arrives.
  3. Check Billing > Gateway Log for the payment, and the Activity Log for provisioning.
  4. Open a ticket by email, reply from the admin side, close it.
  5. Move the next due date back, let the cron run, check the renewal invoice.
  6. Suspend, unsuspend and terminate it, reading the Module Debug Log if a step fails.
  7. Clear every System Health warning that applies to you.
  8. Remove the test data. The test environment page publishes the client tables to TRUNCATE.

Step 8 is the one most do-it-yourself setups skip, which is how a billing system goes live carrying test clients and test invoices.

When is a do-it-yourself WHMCS setup the wrong choice?

When nobody will own it after launch day. A self-hosted install needs version updates, PHP upgrades in the right order, and someone who reads System Health and the cron report. WHMCS 9.1 adds unattended automatic updates, which helps, but somebody still has to notice when one fails.

Shared hosting without root can block ionCube Loader and the strict mode change, and you find out when the installer fails. A server that is not Linux and Apache sits outside what WHMCS validates: NGINX gets limited support, Windows none. My WHMCS alternatives guide covers the case where the answer is a different product.

What else do people ask about setting up WHMCS?

What do you do after installing WHMCS?

Apply the ten security steps, then finish the Getting Started Wizard, then general settings, gateways, products, support departments, email piping, the cron and test orders. That is the order the Install WHMCS page gives, with one change: the cron goes on first.

Do you need a license to install WHMCS?

Yes. The installer asks for the key before it creates the primary admin account, and you cannot finish without one. Self-hosted plans started at $34.95 per month on 27 November 2026.

Why does WHMCS ask for a Marketplace account before letting you in?

Because on a new install the MarketConnect step of the Getting Started Wizard cannot be skipped or dismissed. You log in with a Marketplace account or create one, and accept the MarketConnect terms, before the Admin Area opens. Upgraded installs are not affected.

Can you install WHMCS on shared hosting?

Sometimes. Loading ionCube Loader and disabling MySQL strict mode both need root, and plenty of shared plans allow neither. Ask the host in writing before you buy the license.

Can you rename the WHMCS admin folder?

Yes, and it is security step 5. Add $customadminpath = "yourname"; at the bottom of configuration.php and rename the folder to match, using letters, numbers, hyphens and underscores only. Do it immediately: the documentation warns that a later change invalidates any callback URLs that reference the old admin directory.

Is there a free WHMCS license for a test site?

Yes, if you bought directly from WHMCS: one per active license, and up to three on a Business license. The test install has to be private, and every addon except Live Chat is available on it.

The setup is documented well enough to do yourself, which is why I no longer sell it. Where I come in is afterwards: a WHMCS security audit of what you built, or custom module development for the parts WHMCS does not ship, after a free scoping call.

Last reviewed 27 November 2026. Disclosure: I sell WHMCS and web development work, so I am not neutral. I am CTO at ElySpace, a freelance developer for Marmaids LLC, and founder of WHMCSPilot and MagizAI. Menu paths, settings, commands and version dates come from the WHMCS 9.1 documentation and the WHMCS pricing page as I read them on 27 November 2026.

Share this article

Shahid Malla

Written by

Shahid Malla

Freelance WHMCS developer and web designer with 13+ years of client work. CTO at ElySpace, freelance developer for Marmaids LLC, and founder of WHMCSPilot and MagizAI.

Got a project like this?

Tell me what you need and I will send a written quote within one business day.