Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    yev
    yev is offline
    Registered User
    Join Date
    Feb 2009
    Posts
    1

    Question Integrating custom Apache module into Apache build process

    I've written a custom Apache module which I'd like to integrate with cPanel so it's automatically compiled as part of the server rebuild. What is the best approach for this? Do I just write a new cPanel module? My Apache module only has a single configuration option in httpd.conf, so that seems like overkill. But I'm new to cPanel, so I'm wondering what the best practice is. Thanks!

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Sep 2006
    Location
    Virginia Beach, VA
    Posts
    254
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Yev,

    The way to do this without stepping on EA3's toes is to add it as a raw build option:

    http://www.cpanel.net/support/docs/e...tom_flags.html

    This, however, will probably require your module's source code to be in the /home/cpeasyapache (or similar) folder so that apache knows where to find it, assuming you're using a version that can dynamically compile custom modules.

    Now, the *better* way to do this if the above won't work is to create a hook that automatically compiles the module after an ea build:

    http://www.cpanel.net/support/docs/hooks.htm

    If your module is not set up to use apxs -a to add its loaders to httpd.conf automatically upon compilation, you may want to permanently add it to the apache template (/var/cpanel/templates/apacheX/main.local)

    http://www.cpanel.net/support/docs/e...irectives.html

    Hope that helps

  3. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    There was a whole presentation on this at the 2008 cPanel Conference. The slides for this presentation are available at:

    http://www.cpanel.net/conference/08/files/EA3Build.pdf

Similar Threads & Tags
Similar threads

  1. Custom PHP build through Easy Apache turns on magic_quotes_gpc?????
    By ritontor in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-08-2009, 01:53 PM
  2. Build apache with custom patches
    By HEKTO in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-10-2007, 03:18 PM
  3. Eeeek, new apache build process in WHM.. cumbersome
    By t9clkclnr in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 09-13-2007, 03:10 PM
  4. Apache Build just restarts Apache and says "Build Complete"
    By DiscoBurgess in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-11-2007, 11:42 AM
  5. Apache running as single process in process table
    By btrieve in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-22-2003, 11:45 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube