Message Board

Installing Honey Pots

Older Posts ]   [ Newer Posts ]
 Install problems
Author: H.Davies   (21 Nov 04 5:25pm)
I installed the script in cgi-bin [www.exit23.com/cgi-bin/christian.cgi] and get a 404. The cgi is outside of the public_html. Its running on FreeBSD 4.8-STABLE.

I SSH in chmod +x christian.cgi and run perl.

Error message:
Use of uninitialized value in concatenation (.) or string at christian.cgi line 314.
Use of uninitialized value in concatenation (.) or string at christian.cgi line 314.
can't open : No such file or directory at christian.cgi line 314.

Any help would be greatly appreciated. The 404 has got me stumped. My other perl scripts work just fine.

howie@exit23.com
 
 Re: Install problems
Author: M.Prince   (21 Nov 04 6:02pm)
That's strange. What platform/web server are you running?

Both problems are likely related (the 404 and the errors in the Perl execution). If you're getting the 404 error I would suspect that the path is incorrect somehow. Could it be that "www.exit23.com/cgi-bin" is pointing to a different directory than the one where christian.cgi is installed? The Perl errors are all probably created because the script can't find itself. The script reads its ENV variables to get its own location to run a checksum against the file. This:

can't open : No such file or directory at christian.cgi line 314.

Makes me think that something about your installation is reporting a different location for the script than where it's actually located. Let me think about what could be going wrong and let you know if I come up with anything. If you have the ability, you may want to set up a new script directory and see if the script works when installed there.
 
 Re: Install problems
Author: M.Crane   (18 Jan 05 9:23am)
Adding into an old thread, as I am seeing the exact same problem in almost the same environment.

FreeBSD 4.8 with perl 5.8.5 in /usr/local/bin (softlink in /usr/bin) and using CommuniGate Pro to serve the cgi (tested and working with a really simple "hello world" script).

I've done a little playing with the perl script (I know enough perl to get by) in an effort to help, and it appears that $_[0] isn't being populated at all (perl -W giving "Use of uninitialized value in print at civilianprofound.cgi line 314." if I add "print $_[0];" above "open(FILE, "< $_[0]")")
 
 Re: Install problems
Author: M.Crane   (18 Jan 05 10:59am)
(I'm doing it again... answering my own posts...)

As far as running the CGI from the shell goes, the problem with $_[0] is because $ENV("SCRIPT_FILENAME") doesn't get populated. Set $SCRIPT_FILENAME from the shell and the CGI runs (sorta).

I still can't get it to run hosted by CGP, but again I suspect this is the same $ENV("SCRIPT_FILENAME") not getting populated problem, so I'll bash my head against it for a bit longer...



do not follow this link

Privacy Policy | Terms of Use | About Project Honey Pot | FAQ | Cloudflare Site Protection | Contact Us

Copyright © 2004–25, Unspam Technologies, Inc. All rights reserved.

contact | wiki | email