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.

.pl links in whm want to download not execute

Discussion in 'General Discussion' started by cpeden, Nov 4, 2010.

  1. cpeden

    cpeden Member

    Joined:
    Mar 11, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    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. syslint

    syslint Well-Known Member

    Joined:
    Oct 9, 2006
    Messages:
    249
    Likes Received:
    6
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    try to do a force upcp ,

    /scripts/upcp --force
     
  3. cpeden

    cpeden Member

    Joined:
    Mar 11, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Tried that, didn't fix it.
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    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:

    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).
     
Loading...

Share This Page