Hi all!
Lately, there has been a heap of posts about setting up DBMan in Windows. Recently, I successfully set up DBMan on my own Personal Web Server and it is really not that difficult.
Compared to setting up DBMan in a UNIX environment, there are only really 3 major differences you need to observe:
1) The shebang (#!/usr/local/bin/perl/) does nothing under Windows. When you install Perl, all *.pl are immediately associated with Perl, so PWS knows exactly where to look. So you don't need to worry about customizing it.
2) The variable $db_script_path in db.cgi MUST be set to the full location of your DBMan directory on your filesystem. (without the last slash)
A quick note on the file path variable, try to avoid using the backslash character as it is an escape character.
eg: $db_script_path = "c:\inetpub\cgi-bin\dbman";
Either escape the backslash first: $db_script_path = "c:\\inetpub\\cgi-bin\\dbman";
Or use forward slashes: $db_script_path = "c:/inetpub/cgi-bin/dbman";
Either method will work fine.
3) For DBMan to work on Windows systems, you need to change the extension on your db.cgi to .pl (make sure you do the same in your default.cfg!)
The following aren't so important, so I don't class them as "major differences"
4) As you probobly know, file locking won't work under Windows, so you should probobly turn it off in default.cfg
5) Also there is no "chmod" in Windows, as long as you haven't set any of the files to "read only" you shouldn't have any problems.
And that's all! Everything else should work as it's supposed to, provided you have the latest version of Perl which you can get at:
http://www.perl.com or
http://www.activestate.com/
Good luck, and happy DBMan-ing!
- Mark
Astro-Boy!!
http://www.zip.com.au/~astroboy/
Lately, there has been a heap of posts about setting up DBMan in Windows. Recently, I successfully set up DBMan on my own Personal Web Server and it is really not that difficult.
Compared to setting up DBMan in a UNIX environment, there are only really 3 major differences you need to observe:
1) The shebang (#!/usr/local/bin/perl/) does nothing under Windows. When you install Perl, all *.pl are immediately associated with Perl, so PWS knows exactly where to look. So you don't need to worry about customizing it.
2) The variable $db_script_path in db.cgi MUST be set to the full location of your DBMan directory on your filesystem. (without the last slash)
A quick note on the file path variable, try to avoid using the backslash character as it is an escape character.
eg: $db_script_path = "c:\inetpub\cgi-bin\dbman";
Either escape the backslash first: $db_script_path = "c:\\inetpub\\cgi-bin\\dbman";
Or use forward slashes: $db_script_path = "c:/inetpub/cgi-bin/dbman";
Either method will work fine.
3) For DBMan to work on Windows systems, you need to change the extension on your db.cgi to .pl (make sure you do the same in your default.cfg!)
The following aren't so important, so I don't class them as "major differences"
4) As you probobly know, file locking won't work under Windows, so you should probobly turn it off in default.cfg
5) Also there is no "chmod" in Windows, as long as you haven't set any of the files to "read only" you shouldn't have any problems.
And that's all! Everything else should work as it's supposed to, provided you have the latest version of Perl which you can get at:
http://www.perl.com or
http://www.activestate.com/
Good luck, and happy DBMan-ing!
- Mark
Astro-Boy!!
http://www.zip.com.au/~astroboy/