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

What's all this then?

Quote Reply
What's all this then?
Followed the advice given in "Treat me gently thread" to change all require paths to absolute paths. Now I am able to access the admin page but get the following message when trying to add a catagory:

CGI ERROR
==========================================
Error Message : error in get_defaults. unable to open id file: /primarynet.co.uk/cgi-bin/links/admin/data/categoryid.txt.
Reason: No such file or directory



Also get v. similar message when try to view, or any menu option.



Do I have to change all of these in LINKS.CFG or is it something else?

# 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/Rati




AND anything that uses code for a path, ie $DB and $build?

Pirate



Cheers.
Quote Reply
Re: [slamf] What's all this then? In reply to
Well, as the error suggests, that file doesn't exist Wink Doubly check you uploaded it, and if does, make sure its CHMODEd to 666.

As for the othe questions. Just leave them as they are. Basically they just define where the New/Detailed/Cool pages will be built.

Hope that helps Tongue

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [slamf] What's all this then? In reply to
Double check your paths....they don't look like full paths to me :)
Quote Reply
Re: [RedRum] What's all this then? In reply to
Thanks for quick reply.

Will check paths again.

Can't CHMOD as not UNIX server, although this was not a problem with the bulletin board that's used on the site.

Cheers.Smile
Quote Reply
Re: [slamf] What's all this then? In reply to
Get the following message in almost all options:

CGI ERROR
==========================================
Error Message : error in get_defaults. unable to open id file: /primarynet.co.uk/cgi-bin/links/admin/data/linksid.txt.
Reason: No such file or directory
Script Location : f:\daveford\primarynet.co.uk\cgi-bin\links\admin\admin.cgi
Perl Version : 5.006


Questions: Where is the get_defaults so I can alter it?

Have changed all 'requires' to absolute paths but not sure how to alter these in admin.cgi. Have I changed these correctly if file path is f:/daveford/primarynet.co.uk/cgi-bin/links/file's name?


# Load the database definition file and set the link url.
$in{'db'} ?
require "f:/daveford/primarynet.co.uk/cgi-bin/links/admin/$in{'db'}.def" :
require "f:/daveford/primarynet.co.uk/cgi-bin/links/admin/links.def";

$db_script_link_url = "f:/daveford/primarynet.co.uk/cgi-bin/links/admin?db=$in{'db'}";

Quote Reply
Re: [slamf] What's all this then? In reply to
Erm, error message has backslashes, and your paths appear to have forward ones. Try using double backslashes (to stop the \ being used as an escape charachter). Also, your path seems to be wrong. Your path looks like it should be;

f:\daveford\primarynet.co.uk\cgi-bin\links\admin\
and NOT
/primarynet.co.uk/cgi-bin/links/admin/

Wink May wanna get it put right, as it may stop your errors.

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] What's all this then? In reply to
/daveford/primarynet.co.uk/cgi-bin/links/admin/

....should be correct.
Quote Reply
Re: [RedRum] What's all this then? In reply to
CrazyChanged slashes to require "f:\daveford\primarynet.co.uk\cgi-bin\links\admin\site_html_templates.pl" :but now get new error of Error including libraries: Can't locate f:davefordprimarynet.co.uki-bininksdmininks.cfg at f:\daveford\primarynet.co.uk\cgi-bin\links\admin\admin.cgi line 27.Make sure they exist, permissions are set properly, and paths are set correctly. Will try second suggestion in hope it works. Many thanks for all your patient help.
Quote Reply
Re: [RedRum] What's all this then? In reply to
ShockedNow getting CGI ERROR
==========================================
Error Message : error in get_defaults. unable to open id file: f:\daveford\primarynet.co.uk\cgi-bin\links\admin\
admin/data/linksid.txt.
Reason: No such file or directory
Script Location : f:\daveford\primarynet.co.uk\cgi-bin\links\admin\admin.cgi
Perl Version : 5.006


Almost correct path using f:\\daveford\\primarynet.co.uk\\cgi-bin\\links\\admin\\links.cfg format but how can I solve the end-bit? Getting almost same message for each option.



Cheers.



Have uploaded links.cfg for anybody interested.
Quote Reply
Re: [slamf] What's all this then? In reply to
Well you have two "admin" directories on the end of your db_script_path variable. And seriously, when using Links on my Windows machine, forward slashes have always worked fine. I'm not sure why that's working for you.

--Philip
Links 2.0 moderator
Quote Reply
Re: [slamf] What's all this then? In reply to
You should be using:

/daveford/primarynet.co.uk/cgi-bin/links/admin
Quote Reply
Re: [RedRum] What's all this then? In reply to
SmileLinks seems to work fine so far as all the bits I've tested except the use of quick check - verifying links which gives the message

CGI ERROR
==========================================
Error Message : error in verify_links. unable to open db file: ./data/links.db. Reason: No such file or directory
Script Location : f:\daveford\primarynet.co.uk\cgi-bin\links\admin\nph-verify.cgi
Perl Version : 5.006


Any ideas?



Many thanks again!



Last edited by:

slamf: Feb 26, 2002, 4:13 PM
Quote Reply
Re: [RedRum] What's all this then? In reply to
AngelicOh, any ideas how I can password protect? Have searched forum but with no luck (including faq).



Cheers
Quote Reply
Re: [slamf] What's all this then? In reply to
Don't think there is a way to do it on Win machines (one of the reasons i prefer UNIX, as it supports .htaccess protection Wink).

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] What's all this then? In reply to
I only told you the other day that it isn't related to operating system, it is to do with the webserver. Apache supports htaccess whatever platform you use.
Quote Reply
Re: [RedRum] What's all this then? In reply to
Sly

Thanks, both of you, I'll try Redrum's suggestion of using HTACCESS.

Any suggestions about the error message I'm getting?

CheersWink