Gossamer Forum
Home : Products : Others : Fileman :

File Manager 1.0 Seems to Start but Hangs

Quote Reply
File Manager 1.0 Seems to Start but Hangs
I'm trying to set up File Manager 1.0 for my site ( Apache/1.3.3 (Unix))

I inquired from my ISP re CGIWrap. This is his response:
We dont run cgiwrap, but we do run suexec. This means you should not have 777 file permissions.

I set up the following:

root_dir => "/home/user/htdocs",
logfile => "/home/user/htdocs/cgi.bin/fileman/fileman.log",
password_dir => "/home/user/htdocs/cgi.bin/fileman/pass",
root_url => "http://www.mydomain.com/",
script_url => "http://www.mydomain.com/cgi.bin/fileman/fileman.cgi",

the only other option I changed is:

allowed_space => 1500

and the following permissions:

cgi.bin/fileman/pass 777
cgi.bin/fileman/fileman.cgi 755
cgi.bin/fileman/fileman.log 666

but my htdocs directory is 755

I call the script with http://www.mydomain.com/cgi.bin/fileman/fileman.cgi

but it hangs. It reads 835 kb and hangs, never prints to screen any output other than
the FileManager header bar with
Back File Manager 1.0 Root

Any ideas what is going on here? I am NOT a programmer in any way shape or form!!
I can (most of the time) follow directions. What am I doing wrong?
Is the problem with the permissions on my htdocs directory? If it is, any suggestions other than creating a subdirectory in htdocs and putting all my files there.

thanks for any help. This appears to be a really neat program. Hopefully, I can get it to work!

Elaine Kula
Quote Reply
Re: File Manager 1.0 Seems to Start but Hangs In reply to
How many files are in your directory? Also, you may have a symbolic link that FileMan is trying to follow. Add:

$fullfile = "$directory/$file";
next if -l $fullfile; # ADD

at around line 406.

Cheers,

Alex
Quote Reply
Re: File Manager 1.0 Seems to Start but Hangs In reply to
Hi Alex,

A long overdue response to your comments. I the interim I have been trying to restructure my htdocs directory figuring its size may be the problem but it does not seemed to have helped at all. I am still having the problem of the script hanging only now it does so after reading 714 kb.

I did change two values:
allowed_space => 150000
max_upload => 5000

still no luck.

You wrote:
Add:

$fullfile = "$directory/$file";
next if -l $fullfile; # ADD

at around line 406.

I finally am looking at that part of it but I'm confused. At approx line 406 is:

$fullfile = "$directory/$file";
($filesize, $filedate, $fileperm) = (stat($fullfile))[7,9,2];
$fileperm = &print_permissions ($fileperm) if ($config{'show_perm'});
$filesize = &print_filesize ($filesize) if ($config{'show_size'});
$filedate = &get_date($filedate) if ($config{'show_date'});

if (-d $fullfile ) {
# Let's work out the relative path if it is a directory.
...

Now (an I'm sure this is dumb to you) how much of that do I replace? Sorry to be so out in left field on this but I am not a programmer.

I am assuming I set my variables up properly.

thanks again for your time,

Elaine Kula :]
Quote Reply
Re: File Manager 1.0 Seems to Start but Hangs In reply to
What I would do to test is to create a direcory called test off of your htdocs directory. Then set FileMan up so the test directory is the root directory. If it still has problems, email me ftp info and I'd be happy to take a look.

Cheers,

Alex
Quote Reply
Re: File Manager 1.0 Seems to Start but Hangs In reply to
Thanks for getting back with me Alex. I will do that and let you know what happens.

Elaine :]