Gossamer Forum
Home : Products : DBMan : Installation :

DBMan on your home win98 pc?

Quote Reply
DBMan on your home win98 pc?
Well, I got DBMAN! But I want to add some (100) records before I put it on the WWW (I only have a 28k8 connection). How could I run cgi scripts (like DBMAN) offline on my Windows 98 home pc? Smile
Quote Reply
Re: DBMan on your home win98 pc? In reply to
You'll need a web server running and Perl installed.

I find the easiest way is to get Xitami (free web server) and Perl.

Download and install Xitami:
http://www.imatix.com/.../index2.htm#download

Then goto http://www.activestate.com/ActivePerl/download.htm
to get Perl. (also free)

Now you'll have a webserver and Perl running.

Next, you'll need to edit your auth.pl file.

change:

my ($server_auth) = $ENV{'REMOTE_USER'} | | $ENV{'AUTH_USER'};

to:

my ($server_auth) = '';

That should do the trick for ya Smile
Quote Reply
Re: DBMan on your home win98 pc? In reply to
Thanx for the info, but now the next step: How does I configure Xitami and Activeperl to run CGI scripts offline?? I don't understand howto do that! My dbman dir at my local harddisk is c:\dbman2 , and I don't know where to set it etc...

I hope anybody helps...
Quote Reply
Re: DBMan on your home win98 pc? In reply to
Download and install the programs. Nothing special needs to be configured. Reboot, then copy your dbman into your c:\xitami\cgi-bin directory (or wherever the cgi-bin gets installed.)

Then with your browser, type in http://computername (replace computer name with the name of your computer, if you don't know the name of your computer, you can find in the network neighborhood properties.)

Then to try http://computername/cgi-bin/dbman/db.cgi

Quote Reply
Re: DBMan on your home win98 pc? In reply to
http://localhost usually works.

I've never run Xitami, so I don't know how much like Apache it is, but if you're running Apache on your webserver and you'd like to replicate the setup on your local machine, I find installing the Win32 port of Apache to be dead handy. You can get it at www.apache.org .

It runs pretty much exactly the same as on Unix, apart from a few minor differences, such as passwords for server-based authentication are not encrypted.

I have Apache/Perl/PHP3/MySQL running on my local machine, and it's saved me a fortune on phone bills! Smile

adam

[This message has been edited by dahamsta (edited May 10, 1999).]
Quote Reply
Re: DBMan on your home win98 pc? In reply to
Well ,thanx for the answers, only one question: I turned File lock off in the cfg file (win 98 huh), but when I trie to Add a record, or view someting with a admin login, the following error appears:

-----

Error: Unauthorized Action

The database program received a command that you are not authorized for.

-----

That's all...

Greetz
Koelkast
Quote Reply
Re: DBMan on your home win98 pc? In reply to
Make sure you change

my ($server_auth) = $ENV{'REMOTE_USER'} | | $ENV{'AUTH_USER'};

to

my ($server_auth) = "";

both places that it appears in the auth.pl file.

Actually, you can just comment out the lines -- put a # in front of them.

You also might need to change

if ($ENV{'REMOTE_USER'} | | $ENV{'AUTH_USER'}) {
$username = $ENV{'REMOTE_USER'} | | $ENV{'AUTH_USER'};
}
else {
($userid =~ /^([A-Za-z0-9]+)\.\d+$/) ? ($username = $1) : return (0,0,0,0,0);
}

to just

($userid =~ /^([A-Za-z0-9]+)\.\d+$/) ? ($username = $1) : return (0,0,0,0,0);



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