Qute error log checkings
Posted: 26. August 2004 08:00
Hi,
well I live with the errors. I need to study them to know what is going wrong.
Here http://www.psychogenic.com/en/products/Errorlog.php is a nice CGI perl script that does it great!
You need to have Perl running, and something like the tail LINUX command. If you don't have such a DOS command you should install the PPT module from CPAN or just calling Perl/bin/ppm at your DOS or CMD prompt.
The script always shows your last error.log lines. But you can keep on browsing the previous ones just by clicking some links.
To have the script working, you should install it in a folder at your /cgi-bin/ folser (say errorlog/) .
Then, when you call that cgi script...
http://localhost/cgi-bin/errorlog/errorlog.cgi you are going to see the errors well formated and in different lines.
You should change some settings in the script. See the comments at it, but in general...
* you should change the first line (SheBang) with your D:\xampp\perl\bin\perl.exe -w real perl address.
* Also, change the address of your error.log file. See that it should be something like: D:\xampp\apache\logs\error.log . (don't change the ' for ")
* Next, change the place where this script will reside: (as you should call it) /cgi-bin/errorlog/errorlog.cgi (for example).
This cgi script should come in the future distribution. It is very useful, don't you think?
well I live with the errors. I need to study them to know what is going wrong.
Here http://www.psychogenic.com/en/products/Errorlog.php is a nice CGI perl script that does it great!
You need to have Perl running, and something like the tail LINUX command. If you don't have such a DOS command you should install the PPT module from CPAN or just calling Perl/bin/ppm at your DOS or CMD prompt.
The script always shows your last error.log lines. But you can keep on browsing the previous ones just by clicking some links.
To have the script working, you should install it in a folder at your /cgi-bin/ folser (say errorlog/) .
Then, when you call that cgi script...
http://localhost/cgi-bin/errorlog/errorlog.cgi you are going to see the errors well formated and in different lines.
You should change some settings in the script. See the comments at it, but in general...
* you should change the first line (SheBang) with your D:\xampp\perl\bin\perl.exe -w real perl address.
* Also, change the address of your error.log file. See that it should be something like: D:\xampp\apache\logs\error.log . (don't change the ' for ")
* Next, change the place where this script will reside: (as you should call it) /cgi-bin/errorlog/errorlog.cgi (for example).
This cgi script should come in the future distribution. It is very useful, don't you think?