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 Internal Server Error

Discussion in 'EasyApache' started by wledbetter, Apr 15, 2009.

  1. wledbetter

    wledbetter Registered

    Joined:
    Feb 15, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    I couldnt find anything on this using the search, so I'm posting this new Thread.

    I'm a tech at hosting company that provides dedicated servers. We've come across a large number of newer cPanel servers in which Easy Apache gives Internal Server Error when you try to open the utility.

    "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."

    By following the breadcrumbs(i.e. the error message) and checking the error_log, I find that the problem is:

    Acme::Spork version v0.0.8 required--this is only version v0.0.7 at /var/cpanel
    /perl/easy/Cpanel/Easy/Utils/BackGround.pm line 14.
    BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy/Utils/Bac
    kGround.pm line 14.
    Compilation failed in require at (eval 28) line 3.
    ...propagated at /usr/lib/perl5/5.8.8/base.pm line 85.
    at (eval 26) 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 1
    5.
    Compilation failed in require at (eval 16) 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/easyapac
    he.pl line 67.


    Thankfully the fix I've found is rather painless:

    root@host [~]# cpan

    cpan> install Acme::Spork

    Then, once its done spewing output:

    cpan> reload cpan

    cpan> quit

    Easy Apache will start working immediately. Just thought I'd share this, and maybe find out if this is the correct fix, or if its just a bandaid.

    Hopefully this helps!
     
  2. geobaby

    geobaby Member
    PartnerNOC

    Joined:
    Mar 21, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Download and install latest Acme::Spork module in the server (now v0.0.8), it should fix the error.
     
  3. gfmorris

    gfmorris Member

    Joined:
    Jun 6, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Huntsville, AL, USA
    Many thanks for this one ... worked like a champ. :)

    GFM
     
  4. wledbetter

    wledbetter Registered

    Joined:
    Feb 15, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    I've since learned that /scripts/checkperlmodules will fix it too.
     
  5. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    It looks like you are running perl 5.8.3 which is a bit on the old side. Please open a ticket at https://tickets.cpanel.net/submit/ and request to have your perl updated.
     
  6. WizCraker

    WizCraker Member

    Joined:
    Dec 19, 2003
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    I tried do the cpan route and I get:

    Can't locate object method "new" via package "IO::Uncompress::Gunzip" at /usr/lib/perl5/site_perl/5.8.3/Compress/Zlib.pm line 140.

    Using /script/checkperlmodules just makes it go through a testing mirror that fails every time.
     
  7. WizCraker

    WizCraker Member

    Joined:
    Dec 19, 2003
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    I ended up having to download the package manually then update it through cpan to install.
     
Loading...

Share This Page