cPanel Installation¶
This guide covers installing VeloServe and the WHM plugin on a cPanel server.
Step 1: Download VeloServe¶
Download the pre-built binary for your platform from GitHub Releases:
Verify the installation:
Step 2: Clone the Integration Scripts¶
git clone https://github.com/veloserve/veloserve.git /tmp/veloserve-repo
cd /tmp/veloserve-repo/cpanel
Step 3: Install the WHM Plugin¶
This script does the following:
- Copies the WHM plugin (
veloserve.cgi, CSS, JS) to/usr/local/cpanel/whostmgr/docroot/cgi/veloserve/ - Registers with cPanel AppConfig — creates
/var/cpanel/apps/veloserve.confwithacls=all - Creates directories —
/etc/veloserve/,/var/log/veloserve/,/run/veloserve/ - Installs the systemd service —
veloserve.servicewith auto-restart on failure - Installs cPanel hooks — auto-sync config on account/domain/SSL changes
- Registers with WHM Service Manager — VeloServe appears in service management
- Copies the swap script to
/usr/local/veloserve/cpanel/import-apache-and-swap.sh - Creates a default config at
/etc/veloserve/veloserve.toml(if none exists), auto-detecting the installed EA-PHP version
Step 4: Swap Apache for VeloServe¶
See Apache Swap for full details on what this does.
Verifying the Installation¶
Check the Service¶
Access the WHM Plugin¶
- Log in to WHM as root
- Navigate to Plugins > VeloServe
- You should see the VeloServe Dashboard
Test a Website¶
The response should include Server: VeloServe.
Directory Layout¶
After installation, VeloServe files are located at:
| Path | Purpose |
|---|---|
/usr/local/bin/veloserve | Main binary |
/etc/veloserve/veloserve.toml | Configuration file |
/etc/veloserve/vhosts/ | Per-user vhost configs (optional) |
/var/log/veloserve/ | Log files |
/run/veloserve/ | Runtime files (PID, sockets) |
/usr/local/veloserve/cpanel/ | Swap script |
/usr/local/cpanel/whostmgr/docroot/cgi/veloserve/ | WHM plugin files |
/var/cpanel/apps/veloserve.conf | cPanel app registration |
/etc/chkserv.d/veloserve | Health check for tailwatchd |
Uninstalling¶
# Stop the service
systemctl stop veloserve
systemctl disable veloserve
# Revert to Apache
./import-apache-and-swap.sh --revert
# Remove files
rm -f /usr/local/bin/veloserve
rm -rf /etc/veloserve
rm -rf /var/log/veloserve
rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/veloserve
rm -f /var/cpanel/apps/veloserve.conf
rm -f /etc/systemd/system/veloserve.service
systemctl daemon-reload
Next Steps¶
- Apache Swap — understand the swap process in detail
- WHM Plugin — explore the management interface
- cPanel Hooks — how auto-sync works