Author |
Message |
13/05/2005 18:13:04
|
Genesis
Newbie
Joined: 13/05/2005 18:03:04
Messages: 2
Offline
|
Hi
New to this board and have a problem.
Followed install instructions and uploaded script and .txt files and chmoded as per instructions.
I am able to log into admin and the scan function works fine.
When I click on a download, the count in log.txt stays at zero, although all the downloads from the scan function appear in the log. The daylog.txt and download_stats.txt are both blank.
Can any please tell me why the script wont write a count to the log but the admin part does.
Here is what I have edited. I have tried renaming script to .cgi but it does the same thing as .pl
# url to script
$cgiurl = "http://www.mysite/cgi-bin/dlcount/download.cgi";
# url to the image files without trailing "/"
$base_gif = "http://www.mysite/images/gif";
# administration password - should not contain '&','=' and "
$admin_pass = "********";
# file locking ($lock=0 for Win32!);
$lock = 1;
# check http referer 0=no 1=yes;
$check = 0;
@valid=('http://www.mysite);
# log files
$basedat = "/home/myuser/public_html/cgi-bin/dlcount/log.txt";
$daylog = "/home/myuser/public_html/cgi-bin/dlcount/daylog.txt";
$stats = "/home/myuser/public_html/cgi-bin/dlcount/download_stats.txt";
# base url to the downloads without trailing "/" (use for scanning)
$base_url = "http://www.mysite/files";
# path to the downloads from the server root! (use for scanning)
$base_dir = "/home/myuser/public_html/files";
$back_img = "http://www.mysite/images/gif"; # url of background image
|
|
14/05/2005 02:34:36
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
Have you set all the file permissions correctly?
Are there any errors being displayed?
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
14/05/2005 13:01:23
|
Genesis
Newbie
Joined: 13/05/2005 18:03:04
Messages: 2
Offline
|
All file permissions are set properly. .cgi(.pl) to 755 and .txt to 666
No errors are displayed.
What is strange is that after doing a scan in admin, the files found are written to the log.txt but when clicking a download from the site, it doesn't write it to the log, although it does download properly.
ie: The count always stays at zero.
|
|
|