Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Dec 2002
    Posts
    240

    Default EasyApache Hooks

    Is there anywhere with more documentation about the hooks? I used a pdf document from one of the conferences to get these:

    /scripts/preeasyapache
    /scripts/posteasyapache
    /scripts/before_apache_make
    /scripts/after_apache_make_install
    /scripts/before_httpd_restart_tests
    /scripts/after_restart_tests


    Are there ones for the PHP portion of it? What I want to do is have cPanel build it's PHP for system and Apache then also build another SAPI for something else. I'm just not sure if any of those hooks is where it should be done or if there is ones specific to the PHP building portion.

  2. #2
    cPanel Staff
    Join Date
    Mar 2004
    Posts
    704

    Default

    [ -- CLI -- ]

    /scripts/easyapache --help=hooks
    /scripts/easyapache --help=hooks-advanced

    [ -- WHM -- ]

    https://YOUR.SERVER.HERE:2087/cgi/ea....pl?help=hooks
    https://YOUR.SERVER.HERE:2087/cgi/ea...hooks-advanced

    Those can be found by follwoing this trail:
    WHM -> Software -> EasyApache (Apache Update)

    on that screen in the yellow box click on
    "How can I get custom modules into the EasyApache build?"

    And there is a link in that list called "Hook Scripts"

    HTH

  3. #3
    Member
    Join Date
    Dec 2002
    Posts
    240

    Default

    What you gave was pretty helpful although all the hooks seemed to be linked up with Apache even though EasyApache does more than just Apache. I'm using the hook scripts to build other SAPI's so building straight after PHP SAPI's for cPanel's end are done. I'm using /scripts/before_httpd_restart_test right now as it appears to be right after the builds.

    It might be useful though to clear up what all is going on. So break down what is going on before and after each of the hooks. So /scripts/before_httpd_restart_test before it PHP's are building and after it httpd restart tests.
    Last edited by VeZoZ; 01-16-2010 at 07:20 PM.

Similar Threads & Tags
Similar threads

  1. DNS Hooks
    By tier2 in forum cPanel Developers
    Replies: 2
    Last Post: 01-01-2011, 10:03 AM
  2. cPanel Hooks
    By mynameanu in forum cPanel Developers
    Replies: 5
    Last Post: 09-26-2010, 07:04 AM
  3. How to use hooks?
    By blargman in forum cPanel Developers
    Replies: 5
    Last Post: 11-18-2009, 10:20 AM
  4. hooks for subdomains
    By apogee in forum cPanel Developers
    Replies: 0
    Last Post: 10-01-2009, 06:35 AM
  5. WHM Hooks help
    By Snoopy in forum New User Questions
    Replies: 2
    Last Post: 11-05-2007, 12:15 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube