Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    2

    Default Addon domain addition

    Hi,

    Is there any way to add addon domains with a script? I need to add a bunch of domains and it will take too much time to add them in cpanel, please advise.

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    2

    Default

    Ok, I found AddonDomain.pm in /usr/local/cpanel/Cpanel, but how it supposed to get used?

    I tried:

    perl
    use lib '/usr/local/cpanel';
    use Cpanel;
    use Cpanel::AddonDomain;
    ($res, $reas) = Cpanel::AddonDomain::api2_addaddondomain ({newdomain => 'aaa.com',subdomain=>'bbb',disallowdot=>'1',dir=>'public_html/aaa'});

    print $reas;

    and got:

    Undefined subroutine &main::modloader called at /usr/local/cpanel/Cpanel.pm line 240.

    So what to do next? I have greped /usr/local/cpanel for modloader and found nothing

Similar Threads & Tags
Similar threads

  1. Replies: 5
    Last Post: 01-28-2012, 03:42 AM
  2. Which Parked Domain or Addon Domain will display domain typed?
    By devGOD in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-07-2011, 07:22 AM
  3. Replies: 1
    Last Post: 04-05-2011, 12:38 PM
  4. Replies: 1
    Last Post: 01-09-2010, 02:33 AM
  5. Creation of addon domain leads to subdomain addition
    By allisonf in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-10-2008, 08:39 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube