Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

Unattended Apache Compilation

Discussion in 'EasyApache' started by acenetryan, Jan 4, 2008.

  1. acenetryan

    acenetryan Well-Known Member

    Aug 21, 2005
    Likes Received:
    Trophy Points:
    I'm writing an all encompassing setup script for our servers. cPanel's new Apache profiles are going to help immensely. I have no problem creating the profile, but I would like to pass it to easyapache via the command line unattended.

    I took a look at /scripts/easyapache, but didn't see any command arguments passed around.

  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Apr 7, 2006
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    root@squash [/usr/local/cpanel]# /scripts/easyapache --help
    Easy::Apache CLI Switches
    Note: Unless otherwise noted these are boolean options.
        --flag=0 is the same as not specifying it
        --flag=1 is the same as specifying it
        this screen
        Report version info of ea3, cpanel, and apache   
        List latest version of Apache, PHP, etc that this installs
        Show default apache module information
        'profile_name' is one of:
          a) absolute path to yaml file to use as profile
          b) name relative to /var/cpanel/easy/apache/profile/custom/ without the .yaml extension
        These would all be the same profile:
        Skip configuration and go straight to the build. 
        It builds 'last saved' profile if none specified with --profile. 
        If there is not last saved profile it used cpanel_default
        Do not check to see that the server's cPanel is the latest available
        Do not run openssl checks. This way if its broken the build will fail laetr in the process.
        Bring up UI to choose available archives and restore them if desired
        List available archives only      
        Attempt to restore this build archive
        !! only use if you are 100% sure the path is an easyapache build archive !!
    [ prefs ]
    [ development and testing ]
        Include detailed debug data in output
        Use test branch
        Do not use raw opts support
        Do not use raw env support
        Turn on stack trace in cplog messages
        Include process profile data in output
        Run under Devel::FastProf in addition to normal --perl-devel-profiler behavior
        This may not work on all systems
  3. handsonhosting

    handsonhosting Well-Known Member

    Feb 17, 2002
    Likes Received:
    Trophy Points:
    Omaha, NE
    cPanel Access Level:
    Root Administrator
    any chance you'll be posting a version of your script in the forums?

    We have a number of servers here that we maintain at various levels - currently most of our new installs are automated, but our upgrades on apache and php and mysql and some other key components are still manually done. I wouldn't say we'd go FULL automation as that just screams horror story, but to not have to click buttons but still monitor the process is something that we do now.
  4. acenetryan

    acenetryan Well-Known Member

    Aug 21, 2005
    Likes Received:
    Trophy Points:
    I'm writing it on company time, so it's ultimately up to our CEO. As long as it's okay with him, though, I'll be posting it here once it's finished.

    On a side note, Conor, may want to check your Sig. Looks like you got a typo in your handsondedicated URL.
    #5 acenetryan, Feb 8, 2008
    Last edited: Feb 8, 2008

Share This Page