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.

Complete New Server Cannot Run EasyApache

Discussion in 'EasyApache' started by Doctor, Feb 12, 2008.

  1. Doctor

    Doctor Well-Known Member

    Joined:
    Apr 26, 2003
    Messages:
    180
    Likes Received:
    0
    Trophy Points:
    16
    I have just installed cPanel on a new server.

    WHM 11.15.0 cPanel 11.18.0-R20595
    CENTOS Enterprise 4.5 i686 on virtuozzo - WHM X v3.1.0

    I logged in to WHM for the first time and completed all the mandatory initial setup. With those done, I immediately clicked 'Apache Update' but I get this error below:

    Code:
    -----------------------------------------------
    Internal Server Error
    
          Premature end of script headers: /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl: Please check /usr/local/cpanel/logs/error_log for the exact error.
          
    cpsrvd/11.17.1 Server
    -----------------------------------------------
    
    Then, I logged in to SSH and type /scripts/easyapache and I get this error:
    
    # /scripts/easyapache
    Can't locate YAML/Syck.pm in @INC (@INC contains: /usr/local/cpanel /var/cpanel/perl/easy /scripts /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/local/cpanel/Cpanel/DataStore.pm line 11.
    BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/DataStore.pm line 11.
    Compilation failed in require at /var/cpanel/perl/easy/Cpanel/Easy/Utils.pm line 14.
    BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy/Utils.pm line 14.
    Compilation failed in require at (eval 13) line 3.
            ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85.
     at /var/cpanel/perl/easy/Cpanel/Easy.pm line 16
    BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy.pm line 16.
    Compilation failed in require at (eval 1) line 3.
            ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85.
    BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy/Apache.pm line 8.
    Compilation failed in require at /scripts/easyapache line 15.
    -----------------------------------------------------
    I have never experienced this error before with my previous servers. How do I fix this? Kindly include step-by-step instructions in your reply. Thank you in advance.
     
    #1 Doctor, Feb 12, 2008
    Last edited by a moderator: Feb 13, 2008
  2. owine

    owine Active Member

    Joined:
    Jan 10, 2007
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Try running /scripts/checkperlmodules which will make sure you have the required Perl modules for cPanel and then running EasyApache again.
     
  3. Doctor

    Doctor Well-Known Member

    Joined:
    Apr 26, 2003
    Messages:
    180
    Likes Received:
    0
    Trophy Points:
    16
    I ran /scripts/checkperlmodules, as well as /scripts/checkperlmodules --full, but the same errors still come up when I try to run EasyApache. Thanks anyway, Owine!

    The point is, this should not have been a problem in the first place. Is there any cPanel support tech reading this? Any help would be appreciated.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,453
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    This is not the official means of support. If you're looking for cPanels help you need to put in a ticket.


    Meantime, you could try this post to sort of all or most of that problem.

    http://forums.cpanel.net/showthread.php?t=66166
     
  5. lanmonkey

    lanmonkey Member

    Joined:
    Jun 7, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    I am getting EXACLTY the same.

    Got my new server online today, tried to update apache... get the same as you.

    I;m also getting the same when I click "cPHulk Brute Force Protection" in security center.

    I could have really done without this, Anyone got any ideas whats causing this?

    BTW I;m using:

    WHM 11.15.0 cPanel 11.18.1-R20683
    CENTOS Enterprise 5 i686 on standard - WHM X v3.1.0
     
    #5 lanmonkey, Feb 16, 2008
    Last edited: Feb 16, 2008
  6. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    What does

    /scripts/perlinstaller YAML::Syck

    show?
     
  7. internethosting

    internethosting Well-Known Member

    Joined:
    Aug 18, 2003
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    6
    Same Here . . .

    Internal Server Error

    Premature end of script headers: /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl: Please check /usr/local/cpanel/logs/error_log for the exact error.

    The server is just an hour old, so here is my entire error_log file.

    Tried all the commands talked about above. :-/


    Code:
    Can't locate File/Copy/Recursive.pm in @INC (@INC contains: /usr/local/cpanel /var/cpanel/perl/easy /scripts /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /var/cpanel/perl/easy/Cpanel/Easy/Utils/HttpdConf.pm line 15.
    BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy/Utils/HttpdConf.pm line 15.
    Compilation failed in require at (eval 36) line 3.
            ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85.
     at (eval 34) line 3
     at /var/cpanel/perl/easy/Cpanel/Easy.pm line 16
    BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy.pm line 16.
    Compilation failed in require at (eval 12) line 3.
            ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85.
    BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy/Apache.pm line 8.
    Compilation failed in require at /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl line 47.
    Internal Error: "GET /cgi/easyapache.pl?skip-cpanelsync=1 HTTP/1.1" Premature end of script headers: /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl: Please check /usr/local/cpanel/logs/error_log for the exact error.
     
    #7 internethosting, Feb 18, 2008
    Last edited by a moderator: Feb 18, 2008
  8. internethosting

    internethosting Well-Known Member

    Joined:
    Aug 18, 2003
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    6
    fixed! just needed to read the error :)
     
  9. its_joe

    its_joe Well-Known Member

    Joined:
    Feb 15, 2007
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    0
    How did you fixed the issue, please give us the steps that need to follows to fix the issue.

    its_joe
     
  10. kostyukdv

    kostyukdv Member

    Joined:
    Jul 21, 2006
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    same errors at the new server after install centos 4.7 x86_64 cPanel 11.24.4-S33345 - WHM 11.24.2 - X 3.9

    Code:
    # /scripts/easyapache 
    Can't locate URI.pm in @INC (@INC contains: /scripts /usr/lib/perl5/5.8.8/x86_64-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at (eval 5) line 3.
    Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/HTTP/Request.pm line 3.
    Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/LWP/UserAgent.pm line 10.
    BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/LWP/UserAgent.pm line 10.
    Compilation failed in require at /scripts/cPScript/CPAN/Digest/MD5/File.pm line 8.
    BEGIN failed--compilation aborted at /scripts/cPScript/CPAN/Digest/MD5/File.pm line 8.
    Compilation failed in require at /scripts/cpanel_easy_sanity_check line 15.
    BEGIN failed--compilation aborted at /scripts/cpanel_easy_sanity_check line 15.
    Can't locate Cpanel/Easy/Apache.pm in @INC (@INC contains: /usr/local/cpanel /var/cpanel/perl/easy /usr/lib/perl5/5.8.8/x86_64-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at /scripts/easyapache line 23.
    
     
  11. kostyukdv

    kostyukdv Member

    Joined:
    Jul 21, 2006
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    by default server have perl version 5.8.9 may be this is the problem ?
     
  12. Arun

    Arun Active Member

    Joined:
    Jan 28, 2006
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    We had a similar error when installing Fantastico in a new server yesterday. It showed a Perl module issue (Can't locate Template.pm) in the error logs. The perl version was 5.8.9 and we had to downgrade to 5.8.8 to resolve the issue. Is there some compatibility issue with current version of cPanel and Perl v 5.8.9?
     
  13. WhmSonic

    WhmSonic Well-Known Member

    Joined:
    Mar 19, 2007
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    Perl v5.8.5 issues YAML/Syck.pm
    Please upgrade your perl version, it should be v5.8.8 see the step one below.

    Perl 5.8.9 issues YAML/Syck.pm
    Downgrade your perl version to v5.8.8 or follow the steps.

    Step 1)
    cd /root
    wget http://layer1.cpanel.net/perl588installer.tar.gz
    tar -zxf perl588installer.tar.gz
    cd perl588installer
    ./install

    Step 2)
    rm -fr /usr/local/lib/perl5/site_perl/5.8.9/i686*

    cp -fr /usr/lib/perl5/site_perl/5.8.8/i686* /usr/local/lib/perl5/site_perl/5.8.9/
     
    #13 WhmSonic, Feb 13, 2009
    Last edited: Feb 13, 2009
  14. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    711
    Likes Received:
    3
    Trophy Points:
    18
    Code:
    Can't locate Whatever/Module.pm in @INC 
    99.9% of the time all you have to do is install the missing module:

    Code:
    cpan Whatever::Module
    moving modules by deleting one version and copying them over to another is a very very very bad idea. Any compiled code is likely to break unless the 2 version's are identically compiled, and even that is no gaurantee

    To safely and properly upgrade perl:
    1. take a manifest of modules installed (perldoc ExtUtils::Installed)
    2. update perl
    3. re-install all the modules in your manifest
     
  15. KLEVO

    KLEVO Member

    Joined:
    Nov 15, 2004
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ukraine,Zaporozhia
    I found on CPAN site, thats it is one more YAML::Syck :
    It is JSON::Syck
     
  16. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    711
    Likes Received:
    3
    Trophy Points:
    18
    JSON::Syck and YAML::Syck are not the same thing (YAML and JSON are 2 different data structure representations)

    If the error you are getting is

    then you need YAML::Syck

    All you need to do to install it is:

    Code:
    /scripts/perlinstaller YAML::Syck
    or even

    Code:
    cpan YAML::Syck
     
  17. ovisopa

    ovisopa Member

    Joined:
    Apr 12, 2007
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    I updated my cpanel a week ago, the process has run smothly on both of my servers, and now I have tried to see something in the easyApache Update page and I'm getting the same error.

    My cpanel version is cPanel 11.24.4

    The exact error is:

    Internal Server Error
    Premature end of script headers: /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl: Please check / usr / local / cpanel / logs / error_log for the exact error.

    I checked the log and got this error :

    Compilation failed in require at (eval 30) line 3.
    ...propagated at /usr/lib/perl5/5.8.8/base.pm line 85.
    at (eval 28) line 3
    at /var/cpanel/perl/easy/Cpanel/Easy.pm line 15
    BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy.pm line 15.
    Compilation failed in require at (eval 18) line 3.
    ...propagated at /usr/lib/perl5/5.8.8/base.pm line 85.
    BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy/Apache.pm line 8.
    Compilation failed in require at /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl line 67.
    Premature end of script headers: /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl: Please check <b> /&nbsp; usr /&nbsp; local /&nbsp; cpanel /&nbsp;$

    Any sugestions on how to fix the problem ? I checked both servers and I can see the same error AFTER UPGRADING TO 11.24

    Thank you.
     
  18. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I recommend you let our technical analysts take a look at this for you. They will be able to determine what is causing this and resolve the isssue so you can once again use EasyApache. You can contact our technical analysts at: http://tickets.cPanel.net/submit
     
  19. ovisopa

    ovisopa Member

    Joined:
    Apr 12, 2007
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    thank you for the quick reply, I'm writing now a ticket.
     
  20. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    711
    Likes Received:
    3
    Trophy Points:
    18
    The part trimmed off with '...' is probably the pertinent bit :)

    From what is there I'm assuming the problem can be had by running

    perl -I/usr/local/cpanel -I/var/cpanel/perl/easy -e 'use Cpanel::CPAN::base::ball qw(Cpanel::Easy::Utils);'

    Is there any output when you run that?
     
Loading...

Share This Page