Results 1 to 5 of 5

Thread: what Hook/Script whatever is called in case cpanel updates the httpd.conf

  1. #1
    Mrg
    Mrg is offline
    Registered Member
    Join Date
    Feb 2012
    Posts
    10
    cPanel/WHM Access Level

    Root Administrator

    Default what Hook/Script whatever is called in case cpanel updates the httpd.conf

    Hello,

    what Hook/Script whatever is called in case cpanel updates the httpd.conf?

    explain:
    We need to run a script after a user adds a domain, delete a subdomain and so on.
    So we need to run a script after every time cpanel changes httpd.conf.
    /scripts/postupdateuserdomains hook dows not work. seems not to call after domain/subdomain creation/delete

    Thanks
    Martin

  2. #2
    Registered Member
    Join Date
    Jul 2011
    Location
    Palmerston North, New Zealand
    Posts
    41
    cPanel/WHM Access Level

    Root Administrator

    Default Re: what Hook/Script whatever is called in case cpanel updates the httpd.co

    Try taking a look here, maybe this could help EasyApache Hook Scripts

  3. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,289
    cPanel/WHM Access Level

    Root Administrator

    Default Re: what Hook/Script whatever is called in case cpanel updates the httpd.co

    Typically I recommend hooking the API 1/API 2 functions that handle the creation of an addon domain, removal of an addon domain, creation of a parked domain, removal of a parked domain, creation of a subdomain, removal of a subdomain and hook account creation and account termination to cover most aspects of domains. In 11.31 and later, with Standard Hooks, you can also hook account modification (for when someone changes the domain associated with an account).

  4. #4
    Mrg
    Mrg is offline
    Registered Member
    Join Date
    Feb 2012
    Posts
    10
    cPanel/WHM Access Level

    Root Administrator

    Default Re: what Hook/Script whatever is called in case cpanel updates the httpd.co

    Thanks for answer.

    EasyApache Hook Scripts is not for us, because they where called only if apache wars rebuild and so on.

    How can we hook the API?
    And is there an overview what functions modify the httpd.conf (because not to forget one and our httpd.conf is changed without call the hook)

    In case of change the httpd.conf the apache must be restart. what script does this? Because may we can input our script there.

    Thanks so far.

  5. #5
    Registered Member
    Join Date
    Jul 2011
    Location
    Palmerston North, New Zealand
    Posts
    41
    cPanel/WHM Access Level

    Root Administrator

    Default Re: what Hook/Script whatever is called in case cpanel updates the httpd.co

    Why exactly do you need to hook every time httpd.conf is modified? Because there are pre-includes for httpd.conf that can be modified permanently even when EasyApache updates and modifies httpd.conf the pre includes will be unmodified.
    cPanel 11.32 doesn't seem to be in the RELEASE tier yet so Standard Hooks wont be available until you update to 11.31/32

    Here are some links that might be useful:
    How httpd.conf Is Processed
    Include Editor
    Regards
    Stefan Andres Charsley
    WebFront.co.nz

Similar Threads

  1. cPanel Updates and httpd.conf
    By spirus60 in forum General Discussion
    Replies: 9
    Last Post: 06-10-2014, 05:48 PM
  2. Any updates on modify acct hook?
    By Svintoo in forum cPanel Developers
    Replies: 4
    Last Post: 02-25-2011, 01:13 PM
  3. Preserve amends to /etc/httpd/conf/httpd.conf ?
    By robocrop in forum General Discussion
    Replies: 1
    Last Post: 08-14-2010, 02:08 AM
  4. when script generate httpd.conf, one old subdomain come out
    By natong in forum General Discussion
    Replies: 3
    Last Post: 01-17-2010, 09:43 PM
  5. help regarding shell script deal with httpd.conf
    By s_2_s in forum General Discussion
    Replies: 26
    Last Post: 03-01-2006, 07:40 PM
bargain