Gossamer Forum
Home : Products : Others : Fileman :

Where is the manage.cgi file???

Quote Reply
Where is the manage.cgi file???
Hi there,

Maybe i am crazy, but i can't figure out how the singe-user fileman script works. There is a manage.cgi script in the live demo, but it's not included in the zip-file of fileman!

I have tried to access the script fileman.cgi but it won't work, i have no permission to execute it. Not in a cgi-bin dir and not in the www dir. This is the url of the script:

http://www.wowbtb.com/fileman/fileman.cgi

Please tell me what i should do!

------------------
C.Nieuwdorp
Quote Reply
Re: Where is the manage.cgi file??? In reply to
You hit the nail on the head, you don't have permission to execute it on the server. To get yourself started, put it in your cgi-bin, you can move it somewhere else later if you can get it running.

Now you have to chmod the file to 755. If you don't know what chmod means, read your ftp programs docs.

adam
Quote Reply
Re: Where is the manage.cgi file??? In reply to
Yeah i know what you mean, but i have allready tried to put it into my cgi-bin directory. I have set the file permission to 755. Well look and see what happent:

http://www.wowbtb.com/cgi-bin/fileman.cgi

------------------
C.Nieuwdorp
Quote Reply
Re: Where is the manage.cgi file??? In reply to
Now you have an internal server error, due due the script not being set up correctly. Did you adjust all the configuration settings like it says in the readme? It's not just plug and play like! Smile

Okey-dokey, let's see if we can get you up and running. First, make a copy of fileman.cgi and name the copy as fileman.txt. Now place fileman.txt in your regular webspace and post a link here to it. Also, access the script a couple of times, go to your error log and post the errors it's generating here too.

We'll see what we can do from there.

adam
Quote Reply
Re: Where is the manage.cgi file??? In reply to
Hi,

Thanks for your time!
I know, cgi-scripts are not plug-and-play...hehe...
The script is now in the fileman dir:

http://www.wowbtb.com/cgi-bin/fileman/fileman.cgi

You can find the .txt version here:

http://www.wowbtb.com/fileman.txt

Here the error logs:
----------------------

[Sat May 8 06:50:04 1999] access to /usr/local/etc/httpd/cgi-bin/fileman/fileman.cgi failed for dc2-modem1932.dial.xs4all.nl, reason: Premature end of script headers
Can't locate vars.pm in @INC (@INC contains: /usr/local/lib/perl5/i386-bsdos/5.00403 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/i386-bsdos /usr/local/lib/perl5/site_perl .) at /usr/local/etc/httpd/cgi-bin/fileman/fileman.cgi line 36.
BEGIN failed--compilation aborted at /usr/local/etc/httpd/cgi-bin/fileman/fileman.cgi line 36.
[Sat May 8 06:52:56 1999] access to /usr/local/etc/httpd/cgi-bin/fileman/fileman.cgi failed for dc2-modem1932.dial.xs4all.nl, reason: Premature end of script headers
Can't locate vars.pm in @INC (@INC contains: /usr/local/lib/perl5/i386-bsdos/5.00403 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/i386-bsdos /usr/local/lib/perl5/site_perl .) at /usr/local/etc/httpd/cgi-bin/fileman/fileman.cgi line 36.
BEGIN failed--compilation aborted at /usr/local/etc/httpd/cgi-bin/fileman/fileman.cgi line 36.
[Sat May 8 06:52:59 1999] access to /usr/local/etc/httpd/cgi-bin/fileman/fileman.cgi failed for dc2-modem1932.dial.xs4all.nl, reason: Premature end of script headers
Can't locate vars.pm in @INC (@INC contains: /usr/local/lib/perl5/i386-bsdos/5.00403 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/i386-bsdos /usr/local/lib/perl5/site_perl .) at /usr/local/etc/httpd/cgi-bin/fileman/fileman.cgi line 36.
BEGIN failed--compilation aborted at /usr/local/etc/httpd/cgi-bin/fileman/fileman.cgi line 36.
[Sat May 8 06:53:02 1999] access to /usr/local/etc/httpd/cgi-bin/fileman/fileman.cgi failed for dc2-modem1932.dial.xs4all.nl, reason: Premature end of script headers

My server is running under apache.



------------------
C.Nieuwdorp
Quote Reply
Re: Where is the manage.cgi file??? In reply to
Ok, I don't claim to be an expert in Perl, but the error messages seem to say that you're Perl installation is missing a library (or is it module?) file -- "Can't locate vars.pm".

I'm not sure what to say to you. It seems to be pointing to the right version of Perl, and your setup *looks* ok. Can anyone else offer any help?

If no-one responds here, I would advise asking in the Perl/CGI forum, this board tends to be quite quiet.

Sorry I couldn't be more help.

adam
Quote Reply
Re: Where is the manage.cgi file??? In reply to
Well, anyway, thanks for your time.
I don't know why, but i have also trouble with a upload script. But all the other scripts on my webserver are working fine. By the way, i have this account at www.bhcom.com . Well, we will see...

------------------
C.Nieuwdorp
Quote Reply
Re: Where is the manage.cgi file??? In reply to
Hi,

Take out the: use vars command. It's only neccessary if running under use strict.

Cheers,

Alex
Quote Reply
Re: Where is the manage.cgi file??? In reply to
Hi Alex,

Just tried out to remove the use vars line, but now it seems to me that the CGI.pm file is missing. What should i do now? Here the error message in my server log:

Can't locate CGI.pm in @INC (@INC contains: /usr/local/lib/perl5/i386-bsdos/5.00403 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/i386-bsdos /usr/local/lib/perl5/site_perl .) at /usr/local/etc/httpd/cgi-bin/fileman/fileman.cgi line 37.
BEGIN failed--compilation aborted at /usr/local/etc/httpd/cgi-bin/fileman/fileman.cgi line 37.
[Tue May 11 14:27:24 1999] access to /usr/local/etc/httpd/cgi-bin/fileman/fileman.cgi failed for wowbtb.demon.nl, reason: Premature end of script headers



------------------
C.Nieuwdorp