This guide covers creating and removing a WHM reseller account without linking it to a specific domain. Following these steps, you can manage reseller accounts without impacting your cPanel license limit.

Why You Might Need a WHM Reseller Account Without a Domain

Creating a WHM reseller account without an associated domain is a specialized setup that can be quite useful in certain scenarios. Here are some common reasons why you might need this configuration:

  • Testing or Development Purposes: If you need to test configurations, permissions, or new WHM features, creating a reseller account without a domain allows for a controlled environment that doesn't interfere with live websites.
  • Account Preparation: This setup allows you to create a reseller account for a client before they have a registered domain. The client can configure their account in advance, making onboarding smoother once their domain is ready.
  • Limited Access Resellers: Sometimes, resellers only need access to specific features (such as email or sub-account management) and don't require a domain. This type of account allows you to provide necessary privileges without needing a full website setup.
  • Efficient License Management: Accounts created with this method do not count toward the cPanel license's user limit. This setup is ideal if you need to manage users with reseller privileges while avoiding impact on license quotas.

By following the guide's steps, you can create and manage these domain-less reseller accounts effectively. However, it's important to note that this is a non-standard setup and should only be used in scenarios like those listed above to avoid unnecessary configuration issues.

 

Disclaimer: Always perform these steps in a test environment first and refer to the latest cPanel documentation for updates.

Creating a WHM Reseller Account Without a Domain

To get started, access your server's command line as the root user, either through SSH or by using the "Terminal" in WHM.

  1. Create the Reseller Account

    Run the WHM API's createacct command to set up the reseller account:

    whmapi1 createacct username=$user password=$password reseller_without_domain=1

    This account won't count against your cPanel license limit.

  2. Troubleshoot Login Errors

    If you encounter an error when trying to log in to WHM, such as:

    Could not create Locale handle: Failed to load testreseller's config file! (errno=)

    This error, related to case CPANEL-35056, can be resolved as follows:

      1. Create a /var/cpanel/users/$reselleruser file:
    touch /var/cpanel/users/$reselleruser
      1. Add the following content to the file:
    # cPanel -- If you edit this file directly you must run /usr/local/cpanel/scripts/updateuserdomains afterwards to rebuild the system caches.
    LOCALE=en
      1. Run the command to update user domains:
    /usr/local/cpanel/scripts/updateuserdomains
  3. Legacy Method: Creating a Reseller Without a Domain

    This method provides additional flexibility for advanced users.

    Steps

      1. Create a new user:
    adduser username
      1. Set a password for the user:
    passwd username
      1. Adjust permissions for the user's home directory:
    chmod -v 711 /home/username
      1. Create a reseller entry in /var/cpanel/resellers:
    echo "$RESELLER:all" >> /var/cpanel/resellers
      1. Edit the /var/cpanel/users/username file and remove any DNS= entry:
    sudo vi /var/cpanel/users/username
    1. Configure privileges in WHM:
      1. Login to WHM as root.
      2. Navigate to WHM > Resellers > Edit Reseller Nameservers and Privileges.
      3. Select the new user and set permissions as needed.
  4. Create an Unmanaged DNS Zone (Optional)

    If /var/cpanel/users/system does not exist, create a DNS zone:

    /scripts/adddns --domain $DOMAIN

    Copy the file and remove the DNS= entry:

    cp /var/cpanel/users/system /var/cpanel/users/$RESELLER

    Then, delete the DNS zone:

    /scripts/killdns $DOMAIN

    Finally, update user domains:

    /usr/local/cpanel/scripts/updateuserdomains

Removing a WHM Reseller Account Without a Domain

  1. Connect via SSH

    Log in as the root user.

  2. Remove the Reseller from Config Files

    Open /var/cpanel/users/resellers and remove the username entry.

    Delete the /var/cpanel/users/username file:

    rm /var/cpanel/users/username
  3. Remove User from /var/cpanel/resellers

    Edit /var/cpanel/resellers and remove the user entry.

  4. Delete the System User

    Remove the system user with:

    userdel username

Additional Notes

  • Always verify updates from the latest cPanel documentation.
  • Run tests in a staging environment first to avoid disruptions.
Did this answer help? 0 People found this helpful (0 Votes)