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
- Create an alias so you can run the script using the
acctinfo
alias:
- Create an alias so you can run the script using the
alias acctinfo='/usr/local/cpanel/3rdparty/bin/perl <(curl -s https://raw.githubusercontent.com/cPanelInc/tech-acctinfo/master/acctinfo)'
- 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:
- Once the alias is created, run
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.