Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Aug 2006
    Posts
    19

    Default run script after domain is added/account created

    Hi,

    Is it possible to run a script(that I will create) after a domain was added/created via either WHM create account or cPanel Addon domain?

    Is it possible to get the added domain and its IP as variables and pass them to the script that will run?

    Thanks

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Well for the creation of an account, you can use a cPanel Hook:

    http://www.cpanel.net/support/docs/hooks.htm

    Not sure on addon domains and such.

Similar Threads & Tags
Similar threads

  1. Execute Script after a Mail Account or Forwarder is created
    By CoolMike in forum cPanel Developers
    Replies: 0
    Last Post: 07-16-2010, 01:43 AM
  2. Run command each time domain is added
    By someB0dy in forum cPanel Developers
    Replies: 1
    Last Post: 05-24-2010, 03:44 AM
  3. script to run when account created
    By kbuser in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 03-11-2009, 01:47 AM
  4. What script is used to restart/reload apache when new domain is added?
    By ffeingol in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-13-2008, 01:09 PM
  5. Ftp account created with a php script
    By lucasmd in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-23-2006, 04:20 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube