WHMCS performance tuning covers the runtime underneath every page: the PHP version and handler, PHP limits, the web server, server resources and the time the system cron takes to finish. It suits busy installs where admin actions hang, the daily cron overruns, or server load climbs at the same hour each day. Tuning one install on one server starts at $149. Heavy themes and scripts in the browser are handled by speed optimization, and oversized tables or slow queries by database optimization.
Signs the problem is in the runtime
- Even simple pages take a long time before the first byte arrives
- Accepting an order or running a module command ends in a timeout
- Automation Status turns yellow because the cron overlaps its next run or dies with memory or execution time errors
- Load spikes at a predictable time, often when the daily cron or a database backup runs
- System Health shows warnings about PHP memory, error levels, sessions or OPcache
What we review and adjust
PHP
- Version. The 8.13 branch accepts PHP 8.1 to 8.3, while the 9.x branch requires 8.2 at minimum and accepts up to 8.4. We match the newest version your WHMCS release, ionCube Loader and third-party modules all support, and keep the cron on the same binary.
- Handler and pool. PHP-FPM or LiteSpeed's LSAPI with a pool that runs as the account owning WHMCS, sized so busy periods queue briefly instead of failing.
- Limits. memory_limit at WHMCS's recommended 128 MB or above, and max_execution_time long enough for module calls and large reports.
- OPcache. WHMCS strongly discourages it because it can keep serving stale code, so we switch it off for the PHP pool that runs WHMCS rather than tuning it.
- Sessions and errors. A writable session save path, session autostart off, and production error levels that log problems without printing them to customers.
The system cron
- A five-minute schedule run from the command line, as our cron troubleshooting guide explains
- A verbose run to see which tasks take longest, such as UpdateServerUsage, TenantUsageMetrics or SslSync
- Servers in Configuration > System Settings > Servers that no longer answer, which make usage updates wait on network timeouts
- Where it helps, the cron's skip and do arguments to move one heavy task to a quieter hour
- The built-in database backup task, which WHMCS notes is CPU, memory and disk heavy, moved off the busy daily run or replaced by a server-level backup
Web server and host
- Apache with the event MPM, LiteSpeed, or Nginx (which WHMCS supports only on a limited basis), with keep-alive and worker counts that fit the RAM you have
- CloudLinux LVE limits that throttle the WHMCS account, and the nd_pdo_mysql extension WHMCS asks CloudLinux users to enable
- CPU steal, swap use and disk wait on the VPS, which no PHP setting can fix
- Outbound calls to registrars, provisioning panels and gateways, timed through the Module Log, which we switch on only for the test because debug logging grows the database fast
Settings WHMCS does not offer
Earlier versions of this page promised Redis queues and parallel cron workers. WHMCS has no documented setting for either, and bolting them on risks the stale-data problems WHMCS warns about with OPcache. We stick to configuration WHMCS documents and supports, so updates and WHMCS Technical Support keep working for you.
How the job runs
- Baseline: first-byte times for admin and client pages, cron run duration from the Activity Log, and the server's load graph.
- Changes one at a time, with copies of every php.ini, pool and web server file we touch, in a window you approve.
- The same measurements again, written up side by side.
What we need
- Root or sudo SSH, or administrator access to WHM, Plesk or DirectAdmin
- A WHMCS admin login
- A quiet period for PHP and web server restarts
Prices
| Scope | Price |
|---|---|
| PHP, web server and cron tuning for one install on one server | From $149 |
| A separate database server, a load balancer or several installs | Fixed quote |
| A slow custom module or hook that needs code changes | $65/hour or fixed quote |
Fixed-price work is billed half up front and half when it is delivered, and fixes to anything we changed are free for 14 days.
Outside the scope
- Hardware upgrades or hosting fees
- Rewriting slow third-party modules; old code that breaks on newer PHP is legacy module rescue
- Moving WHMCS to a new server
If you already have a slow cron run's output or a page timing, attach it to your project request and we will read it before we speak.