Gossamer Forum
Home : Products : Links 2.0 : Discussions :

help! admin.cgi ERROR!

Quote Reply
help! admin.cgi ERROR!
I followed all the instructions in the readme file.. except that I'm not sure how to edit links.cfg , In my Cpanel ,there's a path to perl set like this: usr/bin/perl , in the readme file it says there change if not #!/usr/local/bin/perl , should I change all the cgi files? I actually tested both.. and look what I got: (admin.cgi)...
I don't really know which to edit next.. as I'm really getting confused.... I'm quite sure I set the permissions right..but I don't know what to do now..

somebody help meFrown

Last edited by:

dumb lina: Jun 12, 2006, 6:47 AM
Quote Reply
Re: [dumb lina] help! admin.cgi ERROR! In reply to
You seem to be using Links 2.0. This forum is for the SQL versions of Links.

To answer your questions:

a) usually (in my expersience) both /usr/bin/perl and /usr/local/bin/perl work

b) ALL of your .cgi files should be chmod to 755 and reference either of those paths to perl.

c) in admin.cgi, you may need to put the full (complete) path to db.pl in the require line near the top of the file. (it currently only references a relative path)

show us what settings you have in links.cfg (attach the file, don't post it in a message)

Philip
------------------
Limecat is not pleased.
Quote Reply
Re: [fuzzy logic] help! admin.cgi ERROR! In reply to
in admin.cgi...change the complete path, you mean..with an http:// ?

Quote:
show us what settings you have in links.cfg (attach the file, don't post it in a message)



I'll attach it..

I uploaded all the folders and files inside the cgi-bin.. without creating a new folder like this one cgi-bin/links/




thanks

Last edited by:

dumb lina: Jun 12, 2006, 6:11 PM
Quote Reply
Re: [dumb lina] help! admin.cgi ERROR! In reply to
No... Paths are where files are stored locally:

'/user/domain_name/'...

So for example, in links.cfg, for '$db_script_path', you want to change

'cgi-bin/admin/links' <-- this is relative

to the full path to that location on your server:

'/user/domain_name/cgi-bin/admin/links' <-- this is absolute

Okay...

So, change all the *_path variables so they have the full path in them. And same for the "require" part in admin.cgi and each of the othe .cgi files.

Philip
------------------
Limecat is not pleased.
Quote Reply
Re: [fuzzy logic] help! admin.cgi ERROR! In reply to
Hi sorry..can you give me an example of the complete path/... the user/domain_name/cgi-bin/...
I'm not familiar with this..

still can't locate db.pl....
Quote Reply
Re: [dumb lina] help! admin.cgi ERROR! In reply to
how will i know the Path? pls.. help!!!Crazy

Code:

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

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "links/pages";
$build_root_url = "http://localhost/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";
Quote Reply
Re: [dumb lina] help! admin.cgi ERROR! In reply to
oh.. thanks.. I figured it out..it's home/mysite/public_html/...