Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Dec 2004
    Posts
    10

    Default Fantastico Error After WHM, Cpanel, Perl upgrade

    in WHM, clicking on the Fantastico De Luxe WHM Admin link produces:

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


    On examining the logfile, the error appears as:


    Can't locate Template.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/cpanel/whostmgr/docroot/cgi /usr/local/lib/perl5/5.10.0/i686-linux /usr/local/lib/perl5/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i686-linux /usr/local/lib/perl5/site_perl/5.10.0 .) at /usr/local/cpanel/Cpanel/Template.pm line 10.
    BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Template.pm line 10.
    Compilation failed in require at /usr/local/cpanel/Cpanel/DnsUtils.pm line 16.
    BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/DnsUtils.pm line 16.
    Compilation failed in require at /usr/local/cpanel/whostmgr/docroot/cgi/whmlib.pm line 7.
    BEGIN failed--compilation aborted at /usr/local/cpanel/whostmgr/docroot/cgi/whmlib.pm line 7.
    Compilation failed in require at /usr/local/cpanel/whostmgr/docroot/cgi/addon_fantastico.cgi line 8.
    BEGIN failed--compilation aborted at /usr/local/cpanel/whostmgr/docroot/cgi/addon_fantastico.cgi line 8.
    Internal Error: "GET /cgi/addon_fantastico.cgi HTTP/1.1" Premature end of script headers: /usr/local/cpanel/whostmgr/docroot/cgi/addon_fantastico.cgi: Please check /usr/local/cpanel/logs/error_log for the exact error.




    so I read this as, the Fantastico script cannot find or its path doesn't have the perl module cpanel::template in it.



    However, there is a cpanel::Template module file on the server at /usr/local/cpanel/Cpanel/Template.pm


    Whether it is installed or not I don't know. It doesn't show up in the list of installed modules for Perl.



    I did recently upgrade perl to v. 5.10.0 by using the upgrade script in /scripts/ on the server.

    When I upgraded I did not back up the list of perl modules installed; I let the script do what it does.

    Grasping in the dark I tried installing the module using CPAN but could not find it. Tried installing it using the WHM perl module installer, same result.


    I read the forum on netenburg and attempted to follow the instructions for a reinstall of Fantastico, but procedure stops when I can't find F* listed in the WHM AddOn Modules / Manage Plugins.


    Help!

  2. #2
    Member
    Join Date
    Sep 2005
    Posts
    50

    Default

    I'm getting a similar error on a new fantastico install... any ideas here?

    Can't locate YAML/Syck.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/clib/perl5/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i686-linux /usr/local/lib
    BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/DataStore.pm line
    Compilation failed in require at /usr/local/cpanel/Cpanel/ContactInfo.pm line 12
    BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/ContactInfo.pm lin
    Compilation failed in require at /usr/local/cpanel/Whostmgr/AcctInfo.pm line 11.
    BEGIN failed--compilation aborted at /usr/local/cpanel/Whostmgr/AcctInfo.pm line
    Compilation failed in require at /usr/local/cpanel/whostmgr/docroot/cgi/whmlib.p
    BEGIN failed--compilation aborted at /usr/local/cpanel/whostmgr/docroot/cgi/whml
    Compilation failed in require at /usr/local/cpanel/whostmgr/docroot/cgi/addon_fa
    BEGIN failed--compilation aborted at /usr/local/cpanel/whostmgr/docroot/cgi/addo
    Internal Error: "GET /cgi/addon_fantastico.cgi HTTP/1.1" Premature end of script check /usr/local/cpanel/logs/error_log for the exact error.

    Perl version is 5.10.0

  3. #3
    Member
    Join Date
    Sep 2005
    Posts
    50

    Default

    This ended up being a perl issue. /scripts/checkperlmodules fixed it and now it's working correctly. Basically perl was missing several modules, or at the very least was unable to find their configurations. I still had some trouble with YAML, but I was able to install that seperately without a problem.

  4. #4
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,893
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    This thread could have been very useful to you I think.

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

  5. #5
    Member isputra's Avatar
    Join Date
    May 2003
    Location
    Mbelitar
    Posts
    593

    Default

    Quote Originally Posted by aboleth View Post
    This ended up being a perl issue. /scripts/checkperlmodules fixed it and now it's working correctly. Basically perl was missing several modules, or at the very least was unable to find their configurations. I still had some trouble with YAML, but I was able to install that seperately without a problem.
    I'm having the same problem and /scripts/checkperlmodules did not fix it. My perl already 5.8.8 :

    Code:
    root@server [~]# perl -v
    
    This is perl, v5.8.8 built for i386-linux-thread-multi
    Anybody have the fix ?
    It's me ...... It's me ......

Similar Threads & Tags
Similar threads

  1. cpanel - Fantastico WordPress Upgrade
    By rhm94611 in forum New User Questions
    Replies: 4
    Last Post: 04-12-2008, 10:17 PM
  2. cant upgrade whm/cpanel. Perl errors
    By miguelangel in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-09-2008, 01:59 PM
  3. Fantastico Disappears on CPanel upgrade
    By Silverado_HD350 in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 12-12-2005, 04:00 PM
  4. Fantastico Upgrade Error
    By navmonkey in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-13-2005, 09:46 AM
  5. Fantastico error after upgrade
    By erwinfa in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 07-22-2004, 09:53 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube