XUpload - Aruba Settings

Message
Author
frenzi85
Posts: 5
Joined: Jul 26, 2007 9:51 am

Aruba Settings

#1 Postby frenzi85 » Jul 26, 2007 10:07 am

hello, my website provider is aruba, and i have this folders in the root

/lasosta.org
+-- cgi-bin
+-- public
+-- mdb-database
+-- …

default permissions in folders:
cgi-bin --> read, execution;
public --> read, write;
mdb-database --> write;

I CAN'T SET OTHER MERMISSIONS IN OTHERS FOLDERS....

1) i put all the content of XUpload in cgi-bin but not upload_form.html
2) put upload_form.html in the root /lasosta.org
3) edit www.lasosta.org/upload_form.html in 2 point the url to:
/cgi-bin/upload_status.cgi?upload_id=
/cgi-bin/upload.cgi?upload_id=
4) edit the www.lasosta.org/cgi-bin/XUploadConfig.pm to

Code: Select all

temp_dir        => '/lasosta.org/public/temp',
target_dir      => '/lasosta.org/public/finished',
templates_dir   => '/lasosta.org/cgi-bin/Templates',
url_post        => 'http://www.lasosta.org/cgi-bin/post.cgi',
redirect_link   => 'http://www.lasosta.org/upload_form.html',
5) create 2 folders in write permission folder
www.lasosta.org/public/temp
www.lasosta.org/public/finished

BUT IT DOESN'T WORKKKKKK :-( help me please

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Jul 26, 2007 1:53 pm

1) Nothing there(you specified this in upload_form.html): http://www.lasosta.org/cgi-bin/UPLOAD1/upload.cgi

2) I don't think '/lasosta.org/public/temp' is correct server path. It's your FTP related path. To find real FULL path use this script:

Code: Select all

#!/usr/bin/perl
use CGI;
use Cwd;
my $dir = cwd;
#my $cgi = CGI->new();
#my @param = $cgi->param();

print"Content-type: text/html\n\n";
print"$dir";

frenzi85
Posts: 5
Joined: Jul 26, 2007 9:51 am

#3 Postby frenzi85 » Jul 27, 2007 2:36 am

problem: i make the file 'a.cgi' in cgi-bin folder with this code inside only:

Code: Select all

#!/usr/bin/perl 
use CGI; 
use Cwd; 
my $dir = cwd; 
#my $cgi = CGI->new(); 
#my @param = $cgi->param(); 

print"Content-type: text/html\n\n"; 
print"$dir";
i go to:
www.lasosta.org/cgi-bin/a.cgi
and it can't finde the page

PS: i'm under windows

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#4 Postby PilgrimX182 » Jul 27, 2007 5:24 am

So just set up you IIS server to run CGI scripts.

frenzi85
Posts: 5
Joined: Jul 26, 2007 9:51 am

#5 Postby frenzi85 » Jul 27, 2007 9:35 am

is it possible that the code that you gave me is only for linux?

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#6 Postby PilgrimX182 » Jul 27, 2007 1:03 pm

This one should really work on IIS.
You get 404 - not found error, not script error.

Code: Select all

#!Perl
use CGI; 
use Cwd; 
my $dir = cwd; 
#my $cgi = CGI->new(); 
#my @param = $cgi->param(); 

print"Content-type: text/html\n\n"; 
print"$dir";

frenzi85
Posts: 5
Joined: Jul 26, 2007 9:51 am

#7 Postby frenzi85 » Jul 28, 2007 2:39 am

finally i have created a file test.pl in cgi-bin and i've put in this code:

Code: Select all

#!/usr/local/bin/perl
use CGI; 
use Cwd; 
my $dir = cwd; 
#my $cgi = CGI->new(); 
#my @param = $cgi->param(); 
print"Content-type: text/html\n\n"; 
print"$dir";
OUTPUT IS THIS

Code: Select all

D:/Inetpub/webs/lasostaorg
PS: creating file test.cgi it doesn't work: page not found

where i should use it in config file?????

frenzi85
Posts: 5
Joined: Jul 26, 2007 9:51 am

#8 Postby frenzi85 » Jul 30, 2007 9:22 am

can you help me????

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#9 Postby PilgrimX182 » Jul 30, 2007 10:35 am

I think your system does not identificate .cgi files, but .pl only as perl files. Try to rename .cgi files to .pl.
You need to update your config paths using 'D:/Inetpub/webs/lasostaorg' path.