Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    54

    Default cPanel API 1/2 - Parked domain hooks

    I'm trying to figure out what hooks are available for adding and deleting parked domains within cPanel.

    I'm familiar with how to determine API calls by "viewing" theme files, I've read the documentation, and I've figured out some other API functions - I'm having trouble with parked domains though.

    Adding and deleting sub/addon domains correctly execute the following hook files, as expected:

    Code:
    /usr/local/cpanel/hooks/subdomain/addsubdomain
    /usr/local/cpanel/hooks/subdomain/delsubdomain
    /usr/local/cpanel/hooks/addondomain/addaddondomain
    /usr/local/cpanel/hooks/addondomain/deladdondomain
    I cannot determine what path/filenames to use for executing a hook file on a parked domain change. I've tried every variant I can think of of "parkeddomain", "parkdomain", "park" ..etc, none are working for me.


    Does anyone know what hook files are executed for parked domain modifications?

    Edit: I found the "add" parked domain hook. I had previously tried it, but must have screwed something up as I did. For anyone that is curious: /usr/local/cpanel/hooks/park/park

    After hunting a bit more (/usr/local/cpanel/Cpanel/Park.pm), it seems that the "delete" parked domain hook should be ./hooks/park/unpark. This does not seem to be working for me though.. Anyone know?

    Edit 2: After I had given up for the night I received a testing email that I had the hooks sending me. DNS or mail server must have been backed up and took a little while. Looks like "unpark" is indeed the last hook I was looking for. I'll leave this here for future reference for anyone curious.
    Last edited by jdhf99; 07-22-2009 at 04:22 AM. Reason: updates dude!

  2. #2
    Member
    Join Date
    Nov 2008
    Posts
    16

    Default Re: cPanel API 1/2 - Parked domain hooks

    I have a question,

    when cpanel delete an account that have sub-domain, addon domain, park
    will it be also calling the hooks?
    /usr/local/cpanel/hooks/subdomain/delsubdomain
    /usr/local/cpanel/hooks/addondomain/deladdondomain
    /usr/local/cpanel/hooks/park/unpark

    and/or if you restore an account that have sub/addon/park domain, will this hooks also be executed?
    /usr/local/cpanel/hooks/subdomain/addsubdomain
    /usr/local/cpanel/hooks/addondomain/addaddondomain
    /usr/local/cpanel/hooks/park/park
    Last edited by pakogah; 04-23-2011 at 02:36 AM. Reason: completing the sentences

Similar Threads & Tags
Similar threads

  1. Replies: 2
    Last Post: 08-04-2011, 08:58 AM
  2. Accidentally parked a domain on top of a parked domain: cannot undo
    By Vliegtuig in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-01-2010, 04:52 PM
  3. Replies: 5
    Last Post: 04-10-2009, 06:32 AM
  4. Converting a domain from a parked domain to an actual cPanel account
    By netvistun in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-27-2009, 03:54 AM
  5. Parked domain colors in list parked domains?
    By superiorhost in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-28-2002, 05:59 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube