Skip to main content

Can't locate Cpanel/AddonDomain/addaddondomain.pm in @INC

Answered

Comments

3 comments

  • cPRex Jurassic Moderator

    Hey there!  You should not need to manually install any additional tools to use the cPanel API.  Here is the call for the command line version to add an addon domain, along with output indicating is successfully performed the operation:

    cpapi2 --user=username AddonDomain addaddondomain dir=/home/username/public_html/addonapitest newdomain=addonapitest.com subdomain=addonapi
    --- 
    cpanelresult: 
      apiversion: 2
      data: 
        - 
        reason: The system successfully parked (aliased) the domain “addonapitest.com” on top of the domain “addonapi.domain.com”.
          result: 1
      event: 
        result: 1
      func: addaddondomain
      module: AddonDomain
      postevent: 
        result: 1
      preevent: 
        result: 1

     

    1
  • aleangelico

    awesome, this works, I really don't know how I complicated matters so much.

    Thank you!

    0
  • cPRex Jurassic Moderator

    I'm glad that's working well now!

    0

Please sign in to leave a comment.