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.

Additional account creation script

Discussion in 'General Discussion' started by bofla, Aug 28, 2004.

  1. bofla

    bofla Member

    Joined:
    Sep 1, 2002
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I've searched the forum for something similar that I'm going to ask, but no luck.

    Does anyone know how could I add some additional script to account creation process ?
    I wanted to add one more field in DNS system creation. Can this be done manualy, or should I create seperate script to do the job ?

    Thanks for any replies:)
     
  2. SarcNBit

    SarcNBit Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    1,010
    Likes Received:
    3
    Trophy Points:
    38
    cPanel has built-in support for executing a script named /scripts/postwwwacct upon completion of the /scripts/wwwacct (account creation process) script.
     
  3. bofla

    bofla Member

    Joined:
    Sep 1, 2002
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for help, it really helped:)
     
  4. tish

    tish BANNED

    Joined:
    Feb 24, 2004
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    0
    And how may one loacte the location of it please?
     
  5. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    If it already exists it is in /scripts otherwise you need to create in there.
     
  6. tish

    tish BANNED

    Joined:
    Feb 24, 2004
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    0
    Thx DG...

    "postwwwacct " is nonexistent ~~ :-(
     
  7. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    That's because there isn't one there by default. It only exists once one is put there. That's how cpanel makes it easy to have a custom script run after account creation. The wwwacct script checks to see if a postwwwacct script exists. If so, it runs it. If not, it doesn't.

    For examples of postwwwacct scripts, see my sig.
     
Loading...

Share This Page