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

Need help with paths

Quote Reply
Need help with paths
Ok,

I have used links for over a year, but it was hosted at hypermart, and now I want to move it to my own Windows 98 operated server. Actually, the only thing I am keeping from my old install is the db files. I want a CLEAN start, as I have added, deleted, modified, and buggified my old script.

To do this, I installed perl version 5.6 into my D:/webserv/ff/ directory. I then installed the script as noted in the readme. I set all permissions using an ftp client, and uploaded in ascii. I am also creating my own templates for the script at the same time. I edited the paths in the confing file, as well as adding full paths to the cgi files. My problem is that I have never used cgi/perl based programs on a win32 system, and don't know how to set the path to perl, and the paths in the config/cgi files correctly.

Could someone help me here?

Here is my directory structure.

D:/webserve
D:/webserve/ff (perl is here)
D:/webserve/ff/cgi-bin
D:/webserve/ff/Build (where pages will be built)
D:/webserve/ff/cgi-bin/Links
D:/webserve/ff/cgi-bin/Links/admin (includes data, hits, templates, etc.)

Below is my links.cfg config file:





# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "D:/webserv/ff/cgi-bin/Links/admin";
$db_dir_url = "http://collin.serveftp.com/cgi-bin/links/admin";

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "D:/webserv/ff/Build";
$build_root_url = "http://collin.serveftp.com/Build";

# 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";





Here is my current path to perl:

#!D:/webserve/ff/perl


Thanks,

Collin
Quote Reply
Re: [Roscus] Need help with paths In reply to
You need to use the full path to the perl binary. If you did a default install into /ff/perl then it would be:

#!D:/webserve/ff/perl/bin/perl

or

#!/webserve/ff/perl/bin/perl
Quote Reply
Re: [RedRum] Need help with paths In reply to
Did that still not working. When I try to call add.cgi from my site, it brings up the download dialog box. It is supposed to be displaying the add form.
Same situation with the modify script.

Any ideas?
Quote Reply
Re: [Roscus] Need help with paths In reply to
Open the download...it contains an error message.
Quote Reply
Re: [RedRum] Need help with paths In reply to
When I open it it just shows me the actual file in my text editor. No Error. You saw something? Let me guess, a permission error?
Quote Reply
Re: [Roscus] Need help with paths In reply to
If it shows the code as plain text it means your server isn't setup to execute cgi/perl scripts.

Check your server configuration.
Quote Reply
Re: [RedRum] Need help with paths In reply to
ok, The server I'm using says it supports cgi scripts, maybe not. Thank you for your speedy help.

I may be back for more.

Collin
Quote Reply
Re: [Roscus] Need help with paths In reply to
I re-read the notes on my server program and found that it does NOT support cgi. so I just installed Apache for win32 systems. I'll mess with it for a while and see if I can get it to work.
Quote Reply
Re: [Roscus] Need help with paths In reply to
ok, I installed Apache, and now I get an actual error when I try to access it. What do you think would cause this error?

something in the script, or the actual server configuration?

Collin