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!

EasyApache Not Following disable_easyapache_builds

Discussion in 'EasyApache' started by KD0IGO, Nov 2, 2012.

  1. KD0IGO

    KD0IGO Member

    Joined:
    Jan 13, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    51
    Location:
    St. Charles, MO
    cPanel Access Level:
    DataCenter Provider
    It looks like ever since the release of cPanel 11.32, EasyApache is no longer following the disable_easyapache_builds method to disable EasyApache during initial cPanel/WHM installations.

    I've also performed the steps at EasyApache Hook Scripts under "Triggering a Failure"

    /scripts/preeasyapache
    Code:
    #!/usr/bin/perl
    
    my $file = '/etc/disable_easyapache_builds';
    if (-e $file) {
       print "The admin has disabled me via $file\n";
       exit 1;
    }
    
    and
    Code:
    touch /etc/disable_easyapache_builds
    
    I'm creating these files before I run the WHM/cPanel Installer. However, the installation still uses EasyApache to install Apache/PHP. We use separate scripts to install these and the initial installation of these packages is a huge timesink.

    Am I going about disabling EasyApache initially the wrong way?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,569
    Likes Received:
    45
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    Is your /scripts/preeasyapache script executable?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. KD0IGO

    KD0IGO Member

    Joined:
    Jan 13, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    51
    Location:
    St. Charles, MO
    cPanel Access Level:
    DataCenter Provider
    Yup.

    I create the file with that contents, then I chmod +x the file.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. KD0IGO

    KD0IGO Member

    Joined:
    Jan 13, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    51
    Location:
    St. Charles, MO
    cPanel Access Level:
    DataCenter Provider
    Just updating this thread.

    This is now working as intended. Not sure what's changed, went to run it on another installation of a VM and it worked without a problem. Although, I would recommend adding a command for resetting the terminal colors after the initial EasyApache build errors with exit code 256, and turning all future console text red until another color command if given.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice