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.

EasyApache simple compile

Discussion in 'EasyApache' started by sparek-3, Jan 23, 2015.

  1. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,382
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Is there a way to run EasyApache and have it JUST compile Apache? I don't want it to overwrite any configuration files or anything else. Just compile Apache.

    I use a custom patched version of suPHP as well as some other Apache modules. I need to recompile Apache to update it. But in doing so, it's going to recompile it's version of suPHP and will probably rewrite the configuration files to remove the other Apache modules.

    I realize this wouldn't work for an upgrade from say, Apache 2.2 to Apache 2.4. But from Apache 2.2.27 to Apache 2.2.29 it should work. If the custom modules need to be recompiled, I can do that separately.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,382
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    We have a lot of custom patches that we apply to suPHP that we compile.

    I compile mod_deflate as a DSO module and include it on the Apache Configuration. The same for CloudFlare.

    I also compile mod_security separately.

    Actually if you just had a step by step of what and which patches you apply to the Apache source before compiling, and the compiling parameters used, I could just compile it manually. That would actually be preferable to me.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    To elaborate on my previous post, I am curious if you simply manually make those changes from the command line, or if you utilize script hooks to automatically make those changes during the EasyApache build? If you don't use script hooks, you may find them useful for what you are doing:

    EasyApache - Script Hooks

    Thank you.
     
  5. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,382
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    No, I don't use script hooks for this.

    A lot of the stuff I do predates when cPanel pulled EasyApache together to do all of this. I've always been kind of mind boggled as to why Apache and PHP are smashed together into one EasyApache. It looks to me like EasyApache should be for Apache. And if you want an EasyPHP you can make an EasyPHP.

    I don't use EasyApache to maintain my PHP on the server. I wrote my own system for doing this a long time ago. It allows me to include features with a simple configure command line hook on PHP installs. It also allows me to update PHP as soon as a new version of PHP is released, instead of having to wait for it to go through cPanel's EasyApache QA.

    It would almost seem to me that EasyApache would be better served if it was replaced with a simple script or set of instructions, i.e:

    Code:
    wget http://download.nextag.com/apache/httpd/httpd-2.2.29.tar.gz
    tar -zxf httpd-2.2.29.tar.gz
    cd httpd-2.2.29
    ./configure ...
    make
    make install
    Add steps as necessary for what cPanel considers a "common" Apache compile (I believe there are certain patches that are installed, although I'm not sure of what order). And if certain server admins want to wade into the water of customizing, they can do so. Once you get set on an Apache (or PHP for that matter) configuration, I really don't see why it should be recompiled that often. The only times I see it necessary to recompile is when a new version is released. And by making the steps much more transparent, you wouldn't have to run it through QA.

    The same could be said of Exim, Dovecot, PureFTP, MySQL, etc. I can understand cPanel providing a recommended install, but these services really should be installed at the discretion of the server admin.

    I'm not saying that the EasyApache system is a bad thing, I just wish there were more transparency so that server admins that want more control over how services are set up, can do so.
     
  6. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    509
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi!

    At this point, we're trying not to make many more changes to EasyApache 3. We're full hands on deck on our EasyApache 4 project, which will allow this type of customization you like! If you haven't had a chance, please take a look at our post here and provide feedback on how we can make this process a lot easier for you!

    http://forums.cpanel.net/f133/easyapache4-announcement-447882.html
     
Loading...

Share This Page