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 Automation failures

Discussion in 'cPanel Developers' started by aingeal, Apr 26, 2011.

  1. aingeal

    aingeal Member
    PartnerNOC

    Joined:
    Dec 12, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ann Arbor, Michigan
    I am following the blog post on "cPanel Auto Provisioning through Kickstart" and I am running into a problem. The problem arises when I add any EasyApache.yaml file into the install process.

    As in the post all I am doing is wget -O the file from a location for install:

    Code:
    messenger “Downloading EA3 Profile”
    wget -O /etc/cp_easyapache_profile.yaml http://url/path/EasyApache.yaml
    If I include the EA yaml, then http does not work, and I receive the following error:

    Code:
    [root@server /]# /etc/init.d/httpd start
    Starting httpd: grep: /etc/httpd/conf/httpd.conf: No such file or directory
    /bin/bash: /usr/sbin/httpd: No such file or directory
                                                               [FAILED]
    [root@server /]# service httpd start
    Starting httpd: grep: /etc/httpd/conf/httpd.conf: No such file or directory
    /bin/bash: /usr/sbin/httpd: No such file or directory
                                                               [FAILED]
    If I try to access EasyApache:

    Code:
    Can't locate Curses/UI.pm in @INC (@INC contains: /scripts/../lib /var/cpanel/easy/apache/custom_opt_mods /usr/local/cpanel /var/cpanel/perl/easy /scripts /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl . /usr/local/cpanel/perl) at /var/cpanel/perl/easy/Cpanel/Easy/Apache/UI/CLI/Config.pm line 5.
    BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy/Apache/UI/CLI/Config.pm line 5.
    Compilation failed in require at /var/cpanel/perl/easy/Cpanel/Easy/Apache/UI/CLI.pm line 406.
    
    Last lines of the /var/log/cpanel-install-thread0.log are:

    Code:
    ssystem [BEGIN]: ln -s /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd
    ln: creating symbolic link `/etc/rc.d/init.d/httpd' to `/usr/local/apache/bin/apachectl': File exists
    ssystem [END]: ln -s /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd
    ssystem [BEGIN]: ln -s /usr/local/apache/bin/apachectl /etc/init.d/httpd
    ln: creating symbolic link `/etc/init.d/httpd' to `/usr/local/apache/bin/apachectl': File exists
    ssystem [END]: ln -s /usr/local/apache/bin/apachectl /etc/init.d/httpd
    ssystem [BEGIN]: mv /etc/httpd /etc/httpd.old
    ssystem [END]: mv /etc/httpd /etc/httpd.old
    ssystem [BEGIN]: ln -s /usr/local/apache /etc/httpd
    ssystem [END]: ln -s /usr/local/apache /etc/httpd
    If I do not include the EA yaml everything completes as you would expect. However I then have to go in and rebuild Apache/PHP to the required versions.

    I'm not sure why its not working with the yaml section of the install script as the yaml is a copy of what gets used if I run easyapache on the server directly after doing a fresh install of just cPanel without any wget'ing of files.This is just a straight up installation of cPanel to uses Apache 2.2 and PHP 5.3.6. No extra plugins or anything else is being installed yet, that comes later if I can ever get past this point.

    Anyone have any ideas why the inclusion of a EA yaml would cause the install to fail?
     

Share This Page