Gossamer Forum
Home : Products : Others : Fileman :

Filemanager help

Quote Reply
Filemanager help
I have done everything (I think) as I have read in the help file and in the messages on this forum, but I still cannot get my fileman to run. I keep getting a server error 500.

Here's the section of my fileman.cgi that I needed to change:

#!/usr/bin/perl

%config = (
root_dir => "/web/sites/275/tcarroll/ www.canyonviewpto.f2s.com",
logfile => "/web/sites/275/tcarroll/ www.canyonviewpto.f2s.com/cgi-bin/fileman/fileman.log",
password_dir => "/web/sites/275/tcarroll/ www.canyonviewpto.f2s.com/cgi-bin/fileman/pass",
root_url => "http://www.canyonviewpto.f2s.com",
script_url => "http://www.canyonviewpto.f2s.com/cgi-bin/fileman/fileman.cgi",
icondir_url => 'http://www.canyonviewpto.f2s.com/icons',
use_flock => 1,
allowed_space => 20000,
max_upload => 1000,
show_size => 1,
show_date => 1,
show_perm => 1,
show_icon => 1,
show_pass => 1,
version => '1.0'
);

%icons = (
'gif jpg jpeg bmp' => 'image2.gif',
'txt' => 'quill.gif',
'cgi pl' => 'script.gif',
'zip gz tar' => 'zip.gif',
'htm html shtm shtml' => 'comp.blue.gif',
'wav au mid mod' => 'sound2.gif',
class => 'applet.gif'
folder => 'folder.gif',
parent => 'back.gif',
unknown => 'unknown.gif'
);

I have chmod all the directories as instructed and cannot for the life of me get it to work.

A couple of things I've noticed that are in conflict are as follows:

1 - Why do the first 6 config items have double quotes " at each end, but the last 11 have a single quote ' encompassing it? (I tried changing all to be the same with single and double with no luck)
2 - I use CuteFTP v2.0 to upload the cgi file to the site. When I send it up in ASCII mode it comes up about 1300 bytes shorter than the file on my local hard drive. However, if I upload it in binary mode it matches the same number of bytes. (I tried both way with no luck)

CHMOD values of my site:
www.canyonviewpto.f2s.com - drwxrwxrwx
www.canyonviewpto.f2s.com/cgi-bin - drwxr-xr-x
www.canyonviewpto.f2s.com/cgi-bin/files - drwxr-xr-x
www.canyonviewpto.f2s.com/cgi-bin/files/fileman.cgi - -rwxr-xr-x
www.canyonviewpto.f2s.com/cgi-bin/files/fileman.log - -rwxr-xr-x
www.canyonviewpto.f2s.com/cgi-bin/files/pass - drwxrwxrwx

I've worked with all the possibilities I can think of that could be causing this error, but to no avail it does not work.

I appreciate any help.

Thanks in advance,

Tom

Quote Reply
Re: Filemanager help In reply to
Hello to you...

In your config area... I have a couple questions.

Code:
%config = (
root_dir => "/web/sites/275/tcarroll/ www.canyonviewpto.f2s.com",
logfile => "/web/sites/275/tcarroll/ www.canyonviewpto.f2s.com/cgi-bin/fileman/fileman.log",
password_dir => "/web/sites/275/tcarroll/ www.canyonviewpto.f2s.com/cgi-bin/fileman/pass",
root_url => "http://www.canyonviewpto.f2s.com",
script_url => "http://www.canyonviewpto.f2s.com/cgi-bin/fileman/fileman.cgi",
icondir_url => 'http://www.canyonviewpto.f2s.com/icons',
use_flock => 1,
allowed_space => 20000,
max_upload => 1000,
show_size => 1,
show_date => 1,
show_perm => 1,
show_icon => 1,
show_pass => 1,
version => '1.0'
);
In the red text highlighted above why do you have URL's in the path configs? The problem might stem from them being there. These should be set to the absolute path and not a URL address.

Oh.. one more thing... I would place your password directory in a place that isn't web accesible. Wink

Hope this helps! Smile

Jeremy Kerr
http://www.indianawebsites.com
Quote Reply
Re: Filemanager help In reply to
On Free2Surf server those are the paths as far as I can tell. I know they look like URL's, but they are paths.

The config readme shows the pass directory under the cgi-bin/fileman directory. You're saying I need to put it in a different directory and make it unreadable, unwritable and unexecutabel?


Quote Reply
Re: Filemanager help In reply to
Hello again...

Here is a post that might be able to help you out:

http://www.gossamer-threads.com/...=&vc=1#Post97204

What I was saying about the password directory is that I have found that if you put it in a non-web accesible area such as /web/sites/275/tcarroll/, other fileman users, not saying they would, won't be able to figure out where your password directory is. You can just config the config file to read it there. I had a bad experience with a different cgi program where someone thought that they would be smart and start messing with my password directory because they knew where to look.

Anyways...


Hope this helps! Smile

Jeremy Kerr
http://www.indianawebsites.com