Command line on a managed server.
WHAT TO UNDERSTAND FIRST
The panel manages configuration, and manual edits are overwritten.
WHERE ACCOUNTS LIVE
Under home, one directory per account.
WHERE WEB FILES LIVE
Inside each account, in its public directory.
WHERE LOGS LIVE
In the domain log directory, one file per domain.
WHAT THE USEFUL COMMANDS ARE
Listing accounts Showing an account's details Rebuilding configuration Restarting services through the panel's own tooling
WHY THROUGH ITS TOOLING
Restarting services directly can leave the panel's view inconsistent.
WHAT TO NEVER DO
Upgrade panel-managed packages with the system package manager Edit generated web server configuration directly Change a user's home directory by hand
WHAT TO USE FOR PHP
The panel's own selector, rather than system PHP.
WHY
Each account may run a different version, and the system version is usually not the one serving sites.
HOW TO RUN A SCRIPT AS THE ACCOUNT'S PHP
Use the versioned binary path.
WHY THAT MATTERS
Running as root with the wrong version produces misleading results and root-owned files.
WHAT TO DO BEFORE ANY MAJOR CHANGE
Take a backup through the panel.
WHAT TO CHECK AFTER
That accounts still resolve and load.