Gossamer Forum
Home : Products : DBMan : Installation :

New Install on a Windows system and I need help.

Quote Reply
New Install on a Windows system and I need help.
The server I am on is a windows system.

I asked them what is the path to the perl file and this was the answer.
The path to Perl is not necessary for windows, other than referencing at top of code as:
#!/usr/bin/perl

The physical location of the file on the windows web server is:
c:\perl\bin\perl.exe

So I changed the path to pearl to #!/usr/bin/perl

I uploaded all the files in ASCII mode.

I also change
# Use file locking (1 = Yes, 0 = No). Should be used, but won't work on Win95.
$db_use_flock = 0;

I point my browser to
http://64.225.70.36/cgi-bin/dbman/db.cgi
and all I get is
The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.

--------------------------------------------------------------------------------

Please try the following:

Open the 64.225.70.36 home page, and then look for links to the information you want.
Click the Refresh button, or try again later.

Click Search to look for information on the Internet.
You can also see a list of related sites.


HTTP 500 - Internal server error
Internet Explorer

When I point my browser to
http://64.225.70.36/cgi-bin/dbman/html.pl
I get
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:





Can anyone help ?

Thanks in advance to all.

Bernard

Bernie
Quote Reply
Re: [valentinetti] New Install on a Windows system and I need help. In reply to
>>
The physical location of the file on the windows web server is:
c:\perl\bin\perl.exe

So I changed the path to pearl to #!/usr/bin/perl
<<

Why?

Your path to perl is #!/perl/bin/perl

Last edited by:

PaulW: Dec 15, 2001, 2:50 AM
Quote Reply
Re: [PaulW] New Install on a Windows system and I need help. In reply to
Thanks for the try; but some thing else must be wrong. I changed the path but I get the same results.

If you have time, you can look at the files at
http://64.225.70.36/cgi-bin/dbman/

64.225.70.36 - /cgi-bin/dbman/

--------------------------------------------------------------------------------

[To Parent Directory]12/14/2001 10:52 PM <dir> auth12/14/2001 10:52 PM 6800 auth.pl12/15/2001 6:30 PM 47840 db.cgi12/14/2001 10:52 PM 47814 db.cgi.bak12/15/2001 6:30 PM 7712 default.cfg12/14/2001 10:52 PM 7711 default.cfg.bak12/14/2001 10:52 PM 2 default.count12/14/2001 10:52 PM 6736 default.db12/14/2001 10:52 PM 667 default.log12/14/2001 10:52 PM 147 default.pass12/14/2001 10:52 PM 44424 html.pl12/14/2001 10:52 PM 20256 README.txt

Thanks,
Bernard

Bernie
Quote Reply
Re: [valentinetti] New Install on a Windows system and I need help. In reply to
This is incorrect:

$db_dir_url = "d:/64.225.70.36/cgi-bin/dbman";

You have half path, half url.
Quote Reply
Re: [PaulW] New Install on a Windows system and I need help. In reply to
Thanks again; but I must still be doing something wrong. I did what you said; but still no results. Please take a look at this.

the cgi file----------------------------------------

# ============================================================
# If you run into problems, set $db_script_path to the full path
# to your directory.
$db_script_path = "d:/64.225.70.36/cgi-bin/dbman/";
# Load the form information and set the config file and userid.
local(%in) = &parse_form;
$in{'db'} ? ($db_setup = $in{'db'}) : ($db_setup = 'default');
$in{'uid'} ? ($db_uid = $in{'uid'}): ($db_uid = '');

Bernie

Last edited by:

LoisC: Dec 17, 2001, 9:49 AM
Quote Reply
Re: [valentinetti] New Install on a Windows system and I need help. In reply to
Check your error log is my best advice or turn on debugging.

I don't see a path to perl in db.cgi
Quote Reply
Re: [PaulW] New Install on a Windows system and I need help. In reply to
I did not think I needed one. I am gosting the site withe interland.com and when I asked them about it, this was the reply I got.


The path to Perl is not necessary for windows, other than referencing at top of code as:
#!/usr/bin/perl

The physical location of the file on the windows web server is:
c:\perl\bin\perl.exe




I just put the line, #!/usr/bin/perl
back in the top og the cgi file; but I still can not get it to work ?

Thanks again.
Bernie
Quote Reply
Re: [valentinetti] New Install on a Windows system and I need help. In reply to
You may wish to remove it altogether then or try #!/perl/bin/perl

Either should work.

If not you will need to check your error log or turn on debugging.
Quote Reply
Re: [PaulW] New Install on a Windows system and I need help. In reply to
I just tried what you said. I turned on the debug feature. The server I am hosing on is a windows NT server. Can that be the problem.

Below is the code for the cfg file. Does anything look wrong
# File and URL's
# --------------------------------------------------------
# URL of the directory dbman resides in. No Trailing Slash Please.
$db_dir_url = "d:/64.225.70.36/cgi-bin/dbman";
# URL of dbman.
$db_script_url = $db_dir_url . "/db.cgi";
# Full Path and File name of the database file.
$db_file_name = $db_script_path . "/default.db";
# Full path and file name of the counter file.
$db_id_file_name = $db_script_path . "/default.count";
# Full path and file name of the authorization directory.
$auth_dir = $db_script_path . "/auth";
# Full path and file name of the password file.
$auth_pw_file = $db_script_path . "/default.pass";
# Full path and file name of the log file.
$auth_log_file = $db_script_path . "/default.log";
# Full path and file name of the html routines.
require $db_script_path . "/html.pl";

Thanks again.

Bernie

Last edited by:

LoisC: Dec 17, 2001, 9:51 AM
Quote Reply
Re: [valentinetti] New Install on a Windows system and I need help. In reply to
What does debugging or the error log say?
Quote Reply
Re: [PaulW] New Install on a Windows system and I need help. In reply to
I changed db.cgi to db.pl and now I get this message, (which seems to be better than nothing at all.)


DBMan encountered an internal error.

CGI ERROR
==========================================
Error Message : Debug Information
Script Location : d:\64.225.70.36\cgi-bin\dbman\db.pl
Perl Version : 5.00503
Setup File : default.cfg

Form Variables
-------------------------------------------

Environment Variables
-------------------------------------------
ALLUSERSPROFILE : C:\Documents and Settings\All Users
COMMONPROGRAMFILES : C:\Program Files\Common Files
COMPUTERNAME : IPSWJW0011ATL2
COMSPEC : C:\WINNT\system32\cmd.exe
CONTENT_LENGTH : 0
GATEWAY_INTERFACE : CGI/1.1
HTTPS : off
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/msword, */*
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_CONNECTION : Keep-Alive
HTTP_HOST : 64.225.70.36
HTTP_REFERER : http://64.225.70.36/cgi-bin/dbman/
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90)
INSTANCE_ID : 864
LOCAL_ADDR : 64.225.70.36
NUMBER_OF_PROCESSORS: 4
OS : Windows_NT
OS2LIBPATH : C:\WINNT\system32\os2\dll;
PATH : C:\ibin;C:\Perl\bin;C:\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32\wbem;C:\Program Files\Mts;C:\PATROL\bin;C:\PATROL\utils
PATHEXT : .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PATH_INFO : /cgi-bin/dbman/db.pl
PATH_TRANSLATED : d:\64.225.70.36\cgi-bin\dbman\db.pl
PATROL_ADMIN : patrol
PATROL_HOME : C:\PATROL\
PATROL_TEMP : C:\PATROL\tmp
PROCESSOR_ARCHITECTURE: x86
PROCESSOR_IDENTIFIER: x86 Family 6 Model 7 Stepping 3, GenuineIntel
PROCESSOR_LEVEL : 6
PROCESSOR_REVISION : 0703
PROGRAMFILES : C:\Program Files
REMOTE_ADDR : 165.247.57.88
REMOTE_HOST : 165.247.57.88
REQUEST_METHOD : GET
SCRIPT_NAME : /cgi-bin/dbman/db.pl
SERVER_NAME : 64.225.70.36
SERVER_PORT : 80
SERVER_PORT_SECURE : 0
SERVER_PROTOCOL : HTTP/1.1
SERVER_SOFTWARE : Microsoft-IIS/5.0
SYSTEMDRIVE : C:
SYSTEMROOT : C:\WINNT
TEMP : C:\WINNT\TEMP
TMP : C:\WINNT\TEMP
USERPROFILE : C:\Documents and Settings\ilservices
WINDIR : C:\WINNT





Can I leave the extention .pl ?
Thanks


Bernie
Quote Reply
Re: [PaulW] New Install on a Windows system and I need help. In reply to
Can I keep the name db.pl instead of db.cgi ???????????
Bernie

Last edited by:

valentinetti: Dec 16, 2001, 6:43 PM
Quote Reply
Re: [valentinetti] New Install on a Windows system and I need help. In reply to
You can use db.pl rather than db.cgi.

Please do not include a copy of your files in your posts.
What people generally do is to make a text copy of their files and post the url so they can be viewed.

I'm going to edit your posts above to remove the parts not needed for your question.


Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] New Install on a Windows system and I need help. In reply to
Sorry about that. Can sntone take a look at http://64.225.70.36/cgi-bin/dbman/db.pl

and give me a hint on what the error is and how to fix it ?

Thanks
Bernie
Quote Reply
Re: [valentinetti] New Install on a Windows system and I need help. In reply to
Hello Bernie ~ Try changing the following line in your cfg file and see if we can at least get the URL calling right. We'll go from there. Wink

# URL of the directory dbman resides in. No Trailing Slash Please.
$db_dir_url = "d:/64.225.70.36/cgi-bin/dbman";



CHANGE TO:

# URL of the directory dbman resides in. No Trailing Slash Please.
$db_dir_url = "http://64.225.70.36/cgi-bin/dbman";

Quote Reply
Re: [Karen] New Install on a Windows system and I need help. In reply to
In the cgf file I CHANGE the line below TO:

# URL of the directory dbman resides in. No Trailing Slash Please.
$db_dir_url =
http://64.225.70.36/cgi-bin/dbman;

Still no luck in getting it to work.


I aslo created 2 other version of db.pl so now I have db.pl, db2.pl and db3.pl.

Only one line of code if different between all three and db3.pl seems to be the closest to being corect but I still need help. Here is the differances.

# If you run into problems, set $db_script_path to the full path # to your directory.
in db.pl the next line reads
$db_script_path =
http://64.225.70.36/cgi-bin/dbman/;
in db2.pl the next line reads
$db_script_path = ".";
in db3.pl the next line reads
$db_script_path = "d:/64.225.70.36/cgi-bin/dbman/";


db3.pl looks the most promising

Thanks again for the help.
Bernie
Quote Reply
Re: [valentinetti] New Install on a Windows system and I need help. In reply to
Look again at $db_script_path - it isn't formatted properly. You are missing " "
Quote Reply
Re: New Install on a Windows system and I need help. In reply to
Bernard, you said you were running it on a windows system and the path to the perl interp. was c:\perl\bin\perl.exe? well as a start the absolute path that may help you on the right track is #!c:/perl/bin/perl.exe OR you can replace it with #!perl.exe in the "db.cgi" file.

If this doesnt do much for you, i might be able to help more if you email me, my email addy is on my profile page. But as with anything i dont always hold any guarantees. I actually got mine working on a Win2K server so as i said i might be able to lend some help/pointers
Quote Reply
Re: [PBarr] New Install on a Windows system and I need help. In reply to
I just use:

#!/perl/bin/perl