Link to home
Start Free TrialLog in
Avatar of ambientsbs
ambientsbs

asked on

WHM - Bulk Account Creation with cPanel

Hello,

I've been manually creating accounts in my WHM installation by using the functionality that's native to the program (i.e. I click create account, type in a domain, username, password, and select a package) to create an account for that user that has it's own cPanel installation.

I'm wondering if there's a way (either through software, api, or script) to do this in bulk? Any guidance someone can give would be greatly appreciated. If the answer is via script or api, I would appreciate any general direction you could give about how I actually would go about using it. Thanks in advance!
Avatar of David Favor
David Favor
Flag of United States of America image

The answer is yes + WHM/CPanel can be complex to get right.

You can't just write a script to do this by directly calling various command line utilities, because WHM/CPanel compile various config files into system files.

If you directly write files, then next time WHM/CPanel compiles it's config files, your changes will be lost.

Consult your specific version of WHM/CPanel to determine the correct way to accomplish this, as each update may change how this is accomplished.

I avoid WHM/CPanel like the plague + as I recall, last time I was forced to work on these abominations (my opinion), seems like there's a plugin mechanism, where you can create an icon inside WHM to perform macro like operations on a specific domain.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.