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?
May 9, 1999, 3:34 PM
User (324 posts)
May 9, 1999, 3:34 PM
Post #2 of 7
Views: 2402
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
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
May 10, 1999, 4:18 AM
User (324 posts)
May 10, 1999, 4:18 AM
Post #4 of 7
Views: 2413
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
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
May 10, 1999, 4:51 AM
User (429 posts)
May 10, 1999, 4:51 AM
Post #5 of 7
Views: 2402
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!
adam
[This message has been edited by dahamsta (edited May 10, 1999).]
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!
adam
[This message has been edited by dahamsta (edited May 10, 1999).]
May 10, 1999, 10:54 AM
Novice (6 posts)
May 10, 1999, 10:54 AM
Post #6 of 7
Views: 2404
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
-----
Error: Unauthorized Action
The database program received a command that you are not authorized for.
-----
That's all...
Greetz
Koelkast
May 10, 1999, 12:28 PM
Veteran / Moderator (8669 posts)
May 10, 1999, 12:28 PM
Post #7 of 7
Views: 2415
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
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