Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Script View Log file

Discussion in 'General Discussion' started by ncconquer, Sep 2, 2005.

  1. ncconquer

    ncconquer Well-Known Member

    Joined:
    Jun 20, 2004
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    156
    I was try install Script to view various log files from WHM: PWSviewlogfiles V3.2free
    ===
    cd /usr/local/cpanel/whostmgr/docroot/cgi
    wget http://www.premierwebsitesolutions.com/scripts/logfiles/PWSviewlogfiles.txt
    mv PWSviewlogfiles.txt PWSviewlogfiles.cgi
    chmod 700 PWSviewlogfiles.cgi
    pico PWSviewlogfiles.cgi
    ---
    in line:
    #!/usr/bin/perl
    changed to: #!/usr/local/bin/perl
    saved
    ---
    cd /usr/local/cpanel/whostmgr/docroot/themes/x/
    pico System_Health
    and add:
    ---
    WHMDEFINE:ACL=all
    <td align=center><center><a href="/cgi/PWSviewlogfiles.cgi" target="mainFrame"><b class=firstletter>V</b>iew Log Files</a></p></center></td>
    ENDWHMDEFINE
    --
    Now, i loged in whm root, and click System Health, It have hyper link: View Log Files, i click it,
    But no one to be show ...
    Please Anyone tell me how to install this ?
     
  2. shashank

    shashank Well-Known Member
    PartnerNOC

    Joined:
    Apr 12, 2003
    Messages:
    159
    Likes Received:
    1
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    Delete the line
    require 'whmlib.pl';
    in the script and it should work.

    Also, the script has to be uploaded in ascii not binary. If uploaded in binary, it won't work.

    Some of my scripts need a bit of updating work but I just got back from being away 3 weeks and have a lot to catch up on first.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice