The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Post Sub(addon)account

Discussion in 'cPanel Developers' started by blargman, Apr 11, 2009.

  1. blargman

    blargman Well-Known Member

    Joined:
    Sep 11, 2007
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    6
    Is there a script that runs post subaccount creation or post addon domain? I want to run something post creation to add the vhost to nginx.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Yes. You can read more about function hooks in /usr/local/cpanel/hooks/README on your cPanel/WHM server.

    The API2 function called for creating addon domains is: AddonDomain::addaddondomain

    Creation of subdomains is currently handled by API1 (SubDomain="addsubdomain...) so it may not be possible to hook this using function hooks at this time.
     
Loading...

Share This Page