ncconquer

Well-Known Member
Jun 20, 2004
80
0
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 ?
 

PWSowner

Well-Known Member
Nov 10, 2001
2,948
4
343
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.