Author |
Message |
21/11/2006 09:43:12
|
cheeseus
Newbie
Joined: 15/11/2006 16:42:46
Messages: 4
Offline
|
I seem to be doing something wrong while trying to set up the "download.pl" file. I have to admit, I know nothing about Perl. Could you please help?
1. To begin with, the first line, the path to the Perl Program - how do I write it? Is it !/usr/bin/perl - I have removed the # - isn't it for commenting? The path is correct.
2. # url to script
$cgiurl = "http://www.cheeseus.org/scriptures/cgi-bin/download.pl";
Is it OK that I put the CGI-BIN directory inside another one?
3. Then, the...
# base url to the downloads without trailing "/" (use for scanning)
$base_url = "http://www.cheeseus.org/downloads";
# path to the downloads from the server root! (use for scanning)
$base_dir = ""/web/d2/w/cheeseus/cheeseus.org/downloads";
Can this "Downloads" folder be where I've put it, or should it be INSIDE the CGI-BIN directory?
4. When I type
http://cheeseus.org/scriptures/cgi-bin/download.pl?admin=enter
I get 500 Internal Server Error
I will appreciate your help!
|
|
03/01/2007 11:11:35
|
Carachi
Newbie
Joined: 03/01/2007 11:09:41
Messages: 3
Offline
|
I have the exact problem with erro 500-pages when I try to acess the script/setup.
Anybody care to help?
|
|
05/01/2007 00:38:15
|
phpuser3
Graduate
Joined: 16/11/2004 12:46:44
Messages: 110
Offline
|
the # before !/usr/bin/perl may not be removed, it's part of the perl script
|
|
05/01/2007 13:36:30
|
Carachi
Newbie
Joined: 03/01/2007 11:09:41
Messages: 3
Offline
|
Well, I did not remove it..
And I still have a problem.
|
|
05/01/2007 13:40:47
|
Carachi
Newbie
Joined: 03/01/2007 11:09:41
Messages: 3
Offline
|
My download.pl looks like this:
# url to script
$cgiurl = "http://www.xx.com/cgi-bin/download.pl";
# url to the image files without trailing "/"
$base_gif = "http://www.xx.com/cgi-bin/gif";
@valid=('http://www.xx.com');
# log files
$basedat = "log.txt";
$daylog = "daylog.txt";
$stats = "download_stats.txt";
$base_url = "http://www.xx.com/downloads";
$base_dir = "/home/xx/web/downloads";
What is wrong? I have changed the other pl-files accordingly?
|
|
21/01/2007 21:18:27
|
duralict
Newbie
Joined: 21/01/2007 21:14:37
Messages: 1
Offline
|
The 500 error is a server failure notice - it usually means you have the wrong path set in line 1. Make sure you've got the correct address for your server's Per program! The two most common locations for the Perl program are /usr/bin/per and /usr/local/bin/perl. The script comes with the first one set as a default, so if it's not working try using the second path instead. It just might work.
|
|
|