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.

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:
    6
    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:
    18
    cPanel Access Level:
    Root Administrator
  3. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    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.
     
Loading...

Share This Page