Gossamer Forum
Home : Products : Links 2.0 : Installation -- Windows :

Win2000 Server Install

Quote Reply
Win2000 Server Install
First, I've read almost every post on installing Links on NT and have had no luck. Maybe what I'm overlooking is very simple and someone here can help me get on my way....:)

Here's where I'm at:

I've installed ActivePerl 5.6... and from my little test of 'pert test.pl' at the command line....all looks well. From what I've read if the perl install is not working then nothing will, so if there are other tests that I should do to ensure that perl is in fact working, please do not hesitate to let me know.

Based on the readme, I've chosen not to follow his recommendation of his directory structure. I've kept the default structure which is "c:\links\cgi-bin\admin" etc etc.
I've edited the links.cfg file using the just mentioned path structure. I have IIS configured and my home directory is: "c:\links". Permission seem to be working fine. Everything looks good all for not being able to see a flipping thing when I goto: http://204.83.38.20/cgi-bin/admin/admin.cgi. :(

Am I supposed to change everything from .cgi to .pl?
I used the ip: 204.83.38.20 in links.cfg, is that bad?
Is there anything special I need to do in IIS? like a cgi association?
I've changed the require ' '; line in admin.cgi to explicitely point to links.cfg, still no luck, do I have to do this in every script?
When I was able to get a page displayed based on the above URL, I received this error: "Error including libraries: Can't locate c:inksi-bindmin/db.pl at c:\links\cgi-bin\admin\admin.cgi line 28.

Make sure they exist, permissions are set properly, and paths are set correctly.
"
Whats that? If I went into admin.cgi and changed one of the slashes from / to \ I'd get a different error, leading me to believe that there was a problem in this file. Where to start? no clue!


Any help would be greatly appreciated.... Thanks in advance

Jon

Quote Reply
Re: Win2000 Server Install In reply to
That error means you haven't supplied the full correct path to db.pl in admin.cgi or $db_lib_path is incoorect in links.cfg

Also check that you have $db_iis = 0; set to 1.

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Win2000 Server Install In reply to
Unless I'm missing something, everything looks good in the admin.cgi and links.cfg.

here's a copy of admin.cgi:

require 5.001; # Make sure we have at least perl 5.001.
require "c:\links\cgi-bin\admin\links.cfg"; # Change this to full

path to links.cfg if you have problems.
require "$db_lib_path/db.pl"; # Database Routines.
require "$db_lib_path/db_utils.pl"; # Database Support utilities.
require "$db_lib_path/admin_html.pl"; # Admin HTML routines.

and here's links.cfg

$db_lib_path = $db_script_path;

Also I do have the iis setting to 1

thanks for the help, any other ideas?


Quote Reply
Re: Win2000 Server Install In reply to
Well $db_script_path must be incorrect then.

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Win2000 Server Install In reply to
So, did you see anything wrong with any of the paths that I posted? If not any ideas where start troubleshooting this?

Here's the top chunk of my links.cfg...maybe there's something here:



# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "c:\links\cgi-bin\admin";
$db_dir_url = "http://204.83.38.20/links/cgi-bin/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://204.83.38.20/links/cgi-bin";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "c:\links\pages";
$build_root_url = "http://204.83.38.20/links/pages";

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "$build_root_path/New";
$build_new_url = "$build_root_url/New";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "$build_root_path/Cool";
$build_cool_url = "$build_root_url/Cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "$build_root_path/Ratings";
$build_ratings_url = "$build_root_url/Ratings";

This url is live: http://204.83.38.20/cgi-bin/admin/admin.cgi

Feel free to pay it a visit...shed some light in my dark world :)




Quote Reply
Re: Win2000 Server Install In reply to
As I suspected.....incorrect.....

c:\path\to\directory should be.....

c:/path/to/directory

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Win2000 Server Install In reply to
Brutal, I thought that /'s did not work in windows, obviously this must be a perl thing, thanks!

New problem now, frames show up and a whole bunch of "pages cannot be displayed" errors.......



Quote Reply
Re: Win2000 Server Install In reply to
Nope it's an Apache thing.....read the comment lines in httpd.conf.

Have you changed EVERY instance of c:\path to c:/path, including inside the cgi scripts?

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Win2000 Server Install In reply to
Whoa, lost me, httpd.conf is a unix file, I'm on win 2000 server, no such file, as far as I know. However I the only place where I put a \ was in the links.cfg, and those a changed back to /

Quote Reply
Re: Win2000 Server Install In reply to
Shoot, I just read another post and realized I had my db_url messed up. Looks like everything is working for now. Thanks Paul for all your help. Looks like I have to password protect my admin directory, just so that I'm on the right page. I do that in IIS, right?

Quote Reply
Re: Win2000 Server Install In reply to
Sorry my fault I asumed you used Apache - I forgot you used IIS, but even so, httpd.conf isn't just a Unix file - it comes with Apache for both the unix/Windows versions.

I haven't used IIS so I can't help you with password protection I'm afraid but Anthrorules or some other kind sole will help you out.....



Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Win2000 Server Install In reply to
jpoint I'd like to know how you came out with the password of the admin dir and IIS. I'm wondering if there is any way to password that directory if you don't have direct access to the server.



ChessMess
Quote Reply
Re: Win2000 Server Install In reply to
Any use?

http://www.flicks.com/authentix_isp/

Took me 2 mins to find with a quick search for "password admin"

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/