If you're experiencing issues with a domain or account on your cPanel server, the acctinfo utility can help diagnose the problem. This tool provides detailed information about the account or domain and can detect common issues.

Prerequisites

  • Root or SSH access to the cPanel server
  • Basic understanding of SSH commands

Steps to Use the acctinfo Utility

    1. Create an alias so you can run the script using the acctinfo alias:
alias acctinfo='/usr/local/cpanel/3rdparty/bin/perl <(curl -s https://raw.githubusercontent.com/cPanelInc/tech-acctinfo/master/acctinfo)'
    1. Once the alias is created, run acctinfo on the desired account or domain. Replace $account with the account username and $domain.TLD with the actual domain name:
acctinfo $account acctinfo $domain.TLD

Optional: Add Alias to Bash Profile

To make the acctinfo alias persistent and automatically available each time you log in, add the alias to your Bash profile:

echo "alias acctinfo='/usr/local/cpanel/3rdparty/bin/perl <(curl -s https://raw.githubusercontent.com/cPanelInc/tech-acctinfo/master/acctinfo)'" >> ~/.bash_profile

The acctinfo utility is a powerful tool to diagnose domain and account-related issues on your cPanel server. By setting up an alias, you can quickly run this script to retrieve useful information and resolve issues more efficiently. This script detects many common issues, making it a valuable tool for system administrators.

For more information on troubleshooting cPanel accounts, you can visit the cPanel documentation.

Did this answer help? 0 People found this helpful (0 Votes)