alteisenriese Posted March 16, 2011 Posted March 16, 2011 Hey, is there anyone who can help me install this script dailystats-3.0.tgz? I have chmodded the files to 755 and also added the include path code to use the perl module just like the instruction on cpanel but i still got 500 error. Please tell me if i did it wrong. Thanks.
Byron Posted March 16, 2011 Posted March 16, 2011 If you'll add this to the script that gets executed, it will create an error.txt file with the errors. BEGIN { use CGI::Carp qw(carpout); use diagnostics; open(LOG, ">errors.txt"); carpout(LOG); close(LOG); }
Byron Posted March 17, 2011 Posted March 17, 2011 The only other log file you can access would be the Error log file at your cpanel. Did you try that code I posted to you? It will give you a better explanation of your errors than your Error log file.
alteisenriese Posted March 17, 2011 Author Posted March 17, 2011 Does that mean i cant use the apache logs? I guess this script using apache log to create statistic reports, so if i cant access it, its not worth trying. And yeah i did try it, but since i dont know anything about perl i cant understand how to fix it. If you dont mind please tell me what to do considering the errors. Here is the error log http://antisocialnetworking.co.cc/stats/da...tats/errors.txt
Guest Geoff Posted March 17, 2011 Posted March 17, 2011 "my" variable $bytes masks earlier declaration in same scope at dslogs.pl line 180 (#1) (W misc) A "my" or "our" variable has been redeclared in the current scope or statement, effectively eliminating all access to the previous instance. This is almost always a typographical error. Note that the earlier variable will still exist until the end of the scope or until all closure referents to it are destroyed. [Thu Mar 17 09:24:07 2011] dslogs.pl: "my" variable $bytes masks earlier declaration in same scope at dslogs.pl line 180. Uncaught exception from user code: [Thu Mar 17 09:24:07 2011] dslogs.pl: [Thu Mar 17 09:24:07 2011] dslogs.pl: dslogs.pl [options] log1, log2, .. [Thu Mar 17 09:24:07 2011] dslogs.pl: [Thu Mar 17 09:24:07 2011] dslogs.pl: where: [Thu Mar 17 09:24:07 2011] dslogs.pl: --domain the domain name of the site (as in mydomain.com) [Thu Mar 17 09:24:07 2011] dslogs.pl: --history the file to store the date cursors for logs [Thu Mar 17 09:24:07 2011] dslogs.pl: --ignore a |-separated list of extensions to ignore (i.e gif|jpg) [Thu Mar 17 09:24:07 2011] dslogs.pl: --index the default index filename [Thu Mar 17 09:24:07 2011] dslogs.pl: --intref if present internal referrers will not be ignored [Thu Mar 17 09:24:07 2011] dslogs.pl: --modified the file to store the list of modified summaries [Thu Mar 17 09:24:07 2011] dslogs.pl: --reports the root of the directory tree for the reports [Thu Mar 17 09:24:07 2011] dslogs.pl: --overwrite overwrite old summaries (do not update incrementally) [Thu Mar 17 09:24:07 2011] dslogs.pl: --zip the program to use for compression [Thu Mar 17 09:24:07 2011] dslogs.pl: --unzip the program to use for decompression at /usr/local/lib/perl5/5.8.8/CGI/Carp.pm line 379 CGI::Carp::realdie('[Thu Mar 17 09:24:07 2011] dslogs.pl: \x{a}[Thu Mar 17 09:24:07 2...') called at /usr/local/lib/perl5/5.8.8/CGI/Carp.pm line 475 CGI::Carp::die('\x{a}dslogs.pl [options] log1, log2, ..\x{a}\x{a}where:\x{a}--domain the...') called at dslogs.pl line 89 Maybe you should try looking at line 180.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now