Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    3

    Default On setup new domain insert an XML file and a fodler

    Hi,

    I am looking for some help with cPanel / WHM, I am only trying to do a small edit to cPanel but I do not know where to start.

    OS: CentOS

    The process of the edit I want to make:

    1) WHM - New domain gets added via WHM
    2) The edit / amend creates a directory in the /opt/soft/folder/folder/
    3) Creates a XML file within the folder just created host.xml with code within it.

    How would I go about this, or where would I start. Any direction would be great! As this is the first time developing for cPanel.

    Please note the server is not a production server, it is a testing server with cPanel installed.

    Thank you for any help!

  2. #2
    cPanel Staff cPanelMatt's Avatar
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    409

    Default

    WHM's addaccount function is hookable via a script that can be placed at "/scripts/postwwwacct"

    This will be passed all attributes of the account via ARGV upon creation.

    Please see: cPanel/WHM Script Hooks

    for more information and some sample code.
    Matt Dees
    Integration Developer
    cPanel, Inc.
    cPanel Integration Blog

  3. #3
    Registered User
    Join Date
    Jul 2007
    Posts
    3

    Default

    Perfect! Just what I was looking for!

Similar Threads & Tags
Similar threads

  1. Replies: 5
    Last Post: 02-13-2012, 02:20 AM
  2. DNS Setup/edit domain forwarding via XML/JSON API
    By abrakadabra in forum Feature Requests for cPanel/WHM
    Replies: 2
    Last Post: 09-02-2011, 06:24 AM
  3. Uploading HTML File to a Domain by XML/cPanel API
    By mizanurl in forum New User Questions
    Replies: 0
    Last Post: 11-16-2009, 12:52 PM
  4. XML-API: The nameserver which are setup
    By Bdzzld in forum cPanel Developers
    Replies: 0
    Last Post: 05-29-2009, 06:50 AM
  5. Insert mailboxes from a text file
    By rgripoll in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-03-2004, 06:40 AM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube