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

I know this is a simple fix... why can't I get it?

Quote Reply
I know this is a simple fix... why can't I get it?
My admin.cgi error text is:
Error including libraries: Can't locate /my/secret/cgi-bin/path/haha/links.cfg at admin.cgi line 27.

Make sure they exist, permissions are set properly, and paths are set correctly.

----------------------------------------------
OK, My permissions are correct, the default path didn't work so I typed in the full path like the script recommended. (yes I changed the words above for security, but I do know my path is correct). I even checked to make sure the files were named correctly! I know it's something simple and I can't get it... anyone want to slap me in the face with the answer?

-Tim


Quote Reply
Re: I know this is a simple fix... why can't I get it? In reply to
Change the require line in admin.cgi to your FULL ABSOLUTE path to links.cfg



Paul Wilson.
new - http://www.wiredon.net
Quote Reply
Re: I know this is a simple fix... why can't I get it? In reply to
OK.. Here's exactly what I have:

require "$db_lib_path/home/tortoise/www/cgi-bin/links/admin/links.cfg";

That works, but now there's the same error for the next line require "$db_lib_path/db.pl";
The error message already includes the full path even though it's not written in admin.cgi like that. If I do write it with the full path of:

require "$db_lib_path/home/tortoise/www/cgi-bin/links/admin/db.pl";

instead of:

"$db_lib_path/db.pl";

the error message will show a duplicate root path. I checked my permissions too... I have a headache now, and I should be working! ;o)


Quote Reply
Re: I know this is a simple fix... why can't I get it? In reply to
Use:

require "$db_lib_path/links.cfg";

require "$db_lib_path/db.pl";

......then make sure $db_script_path in links.cfg =

$db_script_path = "/home/tortoise/www/cgi-bin/links/admin";





Paul Wilson.
new - http://www.wiredon.net
Quote Reply
Re: I know this is a simple fix... why can't I get it? In reply to
Since you are on a WINDOWS SERVER, you need to include the drive letter along with the path...(If you are indeed on a Windows server)...

It should look like:

Code:

$db_script_path = "C:/home/tortoise/www/cgi-bin/links/admin/";


Although this is not a typical WINDOWS path for web accounts...

It really should look like:

Code:

$db_script_path = "C:/Inetpub/wwwroot/account/cgi-bin/links/admin/";


I would consult your hosting company's documentation about setting up custom CGI scripts.

Regards,

Eliot Lee
Quote Reply
More fun... 404 not found in admin frames. In reply to
I've searched through the forums and found many replies, but none have seemed to help my new situation: admin.cgi comes up with 404 'page cannot be found'.

Links.cfg=
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/home/tortoise/www/cgi-bin/links/admin";
$db_dir_url = "http://www.petreptile.net/cgi-bin/links/admin";

Admin.cgi=
require 5.001; # Make sure we have at least perl 5.001.
require "$db_lib_path/home/tortoise/www/cgi-bin/links/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.

I'm guessing the error is that 'admin_htm.pl' is not being found? I checked 'admin_html.pl' and it is loaded ASCII with correct permissions. Any new tips? The last ones were great and got me this far... Thanks, I appreciate it!

P.S. I just viewed the source of my admin page with the 404 error and I found this:

<frame src="http://www.petreptile.net/cgi-bin/links/admin/admin/admin.cgi?display=top" frameborder="NO" NORESIZE scrolling="NO" name="head">
<frameset cols="155,*">
<frame src="http://www.petreptile.net/cgi-bin/links/admin/admin/admin.cgi?display=navigation" name="nav">
<frame src="http://www.petreptile.net/cgi-bin/links/admin/admin/admin.cgi?display=body" name="cgimain" scrolling="AUTO">

I can't quite figure out how the extra "/admin" got in there before the admin.cgi
Quote Reply
Re: More fun... 404 not found in admin frames. In reply to
No...it is because your *_path (like $db_script_path variables are not correct, if you are indeed on a Windows server...Please read my previous reply and try the codes that I suggested...and also talk to your hosting company to make sure that you have the correct paths.

Regards,

Eliot Lee
Quote Reply
Re: More fun... 404 not found in admin frames. In reply to
Thanks for the quick response. I added to my message just after you replied. I found something interesting in the source of the 404 admin frames:

<frame src="http://www.petreptile.net/cgi-bin/links/admin/admin/admin.cgi?display=top" frameborder="NO" NORESIZE scrolling="NO" name="head">
<frameset cols="155,*">
<frame src="http://www.petreptile.net/cgi-bin/links/admin/admin/admin.cgi?display=navigation" name="nav">
<frame src="http://www.petreptile.net/cgi-bin/links/admin/admin/admin.cgi?display=body" name="cgimain" scrolling="AUTO">

Any ideas where I got the extra '/admin' in the URL?

Quote Reply
Re: More fun... 404 not found in admin frames. In reply to
We need the rest of the defined variables in links.cfg file to help you more. Probably a case of duplication of admin somewhere in the links.cfg file...


Andy

http://www.ace-installer.com
webmaster@Ace-installer.com
Quote Reply
Re: More fun... 404 not found in admin frames. In reply to
It HAS to do with one the following being incorrect:

# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/alex/links/cgi-bin/admin";
$db_dir_url = "http://localhost/links/cgi-bin/admin";

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

...unless you also edited the Extra Paths at the bottom of links.cfg

Paul Wilson.
http://www.wiredon.net
Quote Reply
Re: [Paul] More fun... 404 not found in admin frames. In reply to
I have installed, and after conquering a few problems, I now have the admin.cgi page showing in my browser.

HOWEVER... Inside the frames I am given errors: Not Found

The requested URL /cgi-bin/admin/admin.cgi was not found on this server.



Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.



I check the url and it provides what should be the correct url (http://www.import-tech.net/...min.cgi?display=body)

Please help!