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.

Run command each time domain is added

Discussion in 'cPanel Developers' started by someB0dy, May 24, 2010.

  1. someB0dy

    someB0dy Member

    Joined:
    May 24, 2010
    Messages:
    20
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    I need to run some command each time domain is added (domain/subdomain/addon domain) - the action that usually required after apache config is changed. I am in doubt if /scripts/postwwwacct and /scripts/postupdateuserdomains are the correct? They don't looks to be used.

    http://etwiki.cpanel.net/twiki/bin/view/DevHooks/ScriptHooks

    Thanks!
     
    #1 someB0dy, May 24, 2010
    Last edited: May 24, 2010
  2. someB0dy

    someB0dy Member

    Joined:
    May 24, 2010
    Messages:
    20
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator

    The /scripts/postupdateuserdomains is enough, but it should have executable permissions, got it working with 755 .

    Solved.
     
Loading...

Share This Page