Gossamer Forum
Home : Products : DBMan : Installation :

Trouble getting db.cgi to work

Quote Reply
Trouble getting db.cgi to work
I have uploaded this via Cute and then just did it in the zip and unzipped via telnet to amke sure it was in ascii. I have modified the cfg file to point to the right url and paths but sill keep getting internal server error. I'm on Unix/apache..I modified via telnet so I didn't have to upload at all.
? How do I find the path to perl and the version via telnet..?
Any suggestions would be helpful.
Thank You
Quote Reply
Re: Trouble getting db.cgi to work In reply to
I would unzip the package on your home computer and upload it. I don't know if it makes a difference, but I've never done it your way. It's easy enough in CuteFTP to upload everything in ASCII mode.

To find the path to Perl in a telnet shell, use

which perl

and it will give you the path. I'm not sure how to get the version number.

------------------
JPD





Quote Reply
Re: Trouble getting db.cgi to work In reply to
Thank You
ok I redone it and now I get this
CGI ERROR
==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: Can't locate ./usr/local/etc/httpd/htdocs/cnet/cgi-bin/dbman/html.pl in @INC (@INC contains: . /usr/local/lib/perl5/i386-bsdos/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/i386-bsdos /usr/local/lib/perl5/site_perl .) at default.cfg line 51.

Script Location : /usr/local/etc/httpd/htdocs/cnet/cgi-bin/dbman/db.cgi
Perl Version : 5.00404
Setup File : default.cfg

any ideas..the html.pl is in there
Quote Reply
Re: Trouble getting db.cgi to work In reply to
I just don't know. My expertise is with coding. I don't know the rest of this stuff. Cross your fingers that someone else will be able to give you an idea.

The only thing I would do is upload the html.pl file again. (That's how I do things as a rule. Even if it didn't work before, maybe this time it will. Smile )

You didn't, by any chance, change the $db_script_path variable in the db.cgi script, did you?

------------------
JPD





Quote Reply
Re: Trouble getting db.cgi to work In reply to
Nope Smile but thought about it Smile thnx *crossing fingers* I'll try the reupload
Quote Reply
Re: Trouble getting db.cgi to work In reply to
If the re-upload doesn't work, copy the line that defines

$db_script_url

in the db.cgi script and the line from default.cfg that mentions

html.pl

into your next message. That's gotta be the problem.


------------------
JPD





Quote Reply
Re: Trouble getting db.cgi to work In reply to
I went and deleted the "." in the db.cgi and put the full path to the script dir..then deleted the full paths in front of the "/db.cgi"; etc... I(I found the"." in the db.cgi was looking for a directory ./usr/ which don't exist.) ran the db.cgi again and this is what I got..
CGI ERROR
==========================================
Error Message : fatal error: Undefined subroutine &main::html_login_form called at /usr/local/etc/httpd/htdocs/cnet/cgi-bin/dbman/db.cgi line 117.

Script Location : /usr/local/etc/httpd/htdocs/cnet/cgi-bin/dbman/db.cgi
Environment Variables
-------------------------------------------
DOCUMENT_ROOT : /usr/local/etc/httpd/htdocs/cnet
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
HTTP_ACCEPT_CHARSET : iso-8859-1,*,utf-8
HTTP_ACCEPT_ENCODING: gzip
HTTP_ACCEPT_LANGUAGE: en
HTTP_CONNECTION : Keep-Alive
HTTP_HOST : www.cyberhorse.net
HTTP_PRAGMA : no-cache
HTTP_USER_AGENT : Mozilla/4.51 [en] (Win95; I)
PATH : /sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/usr/contrib/bin:/usr/X11/bin
QUERY_STRING :
REMOTE_ADDR : 209.30.180.59
REMOTE_HOST : 209.30.180.59
REMOTE_PORT : 3995
REQUEST_METHOD : GET
REQUEST_URI : /cgi-bin/dbman/db.cgi
SCRIPT_FILENAME : /usr/local/etc/httpd/htdocs/cnet/cgi-bin/dbman/db.cgi
SCRIPT_NAME : /cgi-bin/dbman/db.cgi
SERVER_ADMIN : webmaster@cyberhorse.com
SERVER_NAME : www.cyberhorse.net
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.0
Now what do I do
Perl Version : 5.00404
Setup File : default.cfg
SERVER_SOFTWARE : Apache/1.2.6 BSafe-SSL/1.1 FrontPage/3.0.4

Quote Reply
Re: Trouble getting db.cgi to work In reply to
I had commented# the html.pl in the upper part and bottom Frown in hopes to track the problem down.. I went in and uncommented them and wala! now I get a demo sign on screen..I didn't change the fields until I was sure I could get it running..no i need to go in a set up the cfg file..Thank You so much hopefully I won't bother you again! we will see *crossing fingers*