Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    14

    Default .pl links in whm want to download not execute

    As the title says, in WHM any link I click on the sidebar that is a .pl file easyapache.pl for example comes up with a download file dialog instead of running.

    This is a freebsd box running the lastest stable release.

    Please help.

  2. #2
    Member This forum account has been confirmed by cPanel staff to represent a vendor. syslint's Avatar
    Join Date
    Oct 2006
    Posts
    145

    Default Re: .pl links in whm want to download not execute

    try to do a force upcp ,

    /scripts/upcp --force

  3. #3
    Member
    Join Date
    Mar 2004
    Posts
    14

    Default Re: .pl links in whm want to download not execute

    Tried that, didn't fix it.

  4. #4
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: .pl links in whm want to download not execute

    Please check the following:

    Code:
    ls -lah /usr/bin/perl /usr/local/bin/perl
    If you show something like the following:

    Code:
    # ls -lah /usr/bin/perl /usr/local/bin/perl
    -rwxr-xr-x 2 root root 11K Apr 3 2009 /usr/bin/perl*
    -rwxr-xr-x 2 root root 13K Jun 20 08:06 /usr/local/bin/perl*
    Then move the /usr/bin/perl binary and symlink /usr/local/bin/perl to /usr/bin/perl:

    Code:
    mv /usr/bin/perl /usr/bin/perl.bak
    ln -s /usr/local/bin/perl /usr/bin/perl
    cPanel installs the binary to /usr/local/bin/perl, but a previously existing copy of it in /usr/bin/perl can cause pathing issues for cPanel perl modules. I saw a recent issue for a ticket I handled where that exact same area of WHM (EasyApache (Apache Update)) was trying to download .pl files due to having two perl binaries on the system.

    On that ticket, the following was outputting to /usr/local/cpanel/logs/error_log whenever accessing the link that wasn't working in WHM:

    Can't locate YAML/Syck.pm in @INC (@INC contains: /usr/local/cpanel /var/cpanel/perl/easy /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/local/cpanel/Cpanel/DataStore.pm line 9.
    If you could also put what you see in /usr/local/cpanel/logs/error_log location when accessing the WHM areas that aren't working, that would be handy (to see if it's the same error).
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. Clicking some links in WHM, prompt the browser to download a file.
    By Adam_UOForums in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-30-2011, 04:49 PM
  2. How to disable this links at WHM
    By Maximum in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-18-2008, 11:59 AM
  3. CPanel links in WHM
    By blargman in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-06-2007, 09:53 AM
  4. WHM Links broken
    By gloverkarl in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-24-2005, 01:23 PM
  5. Some WHM Links not working
    By bjdea1 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-07-2004, 08:13 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube