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

cgi functions won't work

Quote Reply
cgi functions won't work
hi,

I have successfully installed the links directory and have added a few websites from the administration panel.

However most of the functions from the actual web site, outside of the administration panel won't work. For example the 'add a site', 'modify a site' and 'search' links won't work. Also when you click on a link for a site in the directory it won't work. In all cases it gives me an 'HTTP 404 page not found' message.

The 'what's cool', 'what's new' etc links work for web sites which i have already added through the administrative panel.

Can you suggest anything which might help me fix the problem?

thanks

nick
Quote Reply
Re: [nonos3] cgi functions won't work In reply to
Looks as if your paths in links.cfg aren't correctly configured. Check them out once again.
Quote Reply
Re: [nonos3] cgi functions won't work In reply to
Double check your settings for $db_cgi_url in links.cfg


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] cgi functions won't work In reply to
hi,

here are my settings:

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

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home/kafeneio/apopsi-www/links";
$build_root_url = "http://apopsi.com/links";




can you tell if there is anything wrong? i am almost certain that the paths are ok, because I just installed a bulleting board using the same paths and it works.

thanks for your time

nick
Quote Reply
Re: [nonos3] cgi functions won't work In reply to
Try adding /links onto $db_cgi_url
Quote Reply
Re: [nonos3] cgi functions won't work In reply to
Paul is right. It should be:

$db_cgi_url = "http://apopsi.com/cgi-bin/links";
Quote Reply
Re: [Tho.mas] cgi functions won't work In reply to
hallo,

sadly....it didnt work. I even went to the individual scripts, such as add.cgi and wrote down the full path where is says require....

i.e changed

require "admin/links.cfg";

# Change this to full path to links.cfg if you have problems.

to

require "/home/kafeneio/apopsi-www/cgi-bin/links/admin/links.cfg";

but to no avail...

I also did for a search and found a chap who had a similar problem ...this is the answer he got from anthrorules



Quote:
$db_dir_url = "http://T4CMinistries.com/cgi-bin/links/admin";

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

See these CODES!

DELETE THE FOLLOWING:

$db_dir_url = "http://T4CMinistries.com/cgi-bin/links/admin";

You have defined $db_cgi_url TWICE!

Got it???


Regards,

Eliot Lee
http://anthrotech.com/


thing is....I don't get it....


well anyway this is the reply he got from the chap..


Quote:
Thank you sooo much for your help! I fixed it and got it working. I found out the problem. It had been goint to T4CMinistres.com/cgi-bin/add.cgi for all those links.. i had to switch it to T4Cministries.com/cgi-bin/links/add.cgi. Thanks Again For Your Help Eliot :) I'm one happy person lol. Take Care.


seems like all he did was add "links" at the end of the url like you told me to do....well it worked for him.....

does the links.cfg file need any special permissions in order to work, i tried using 755 but that didnt help much

do u have any more ideas? should i just delete everything and start again u think??

thanks again

nick

Quote Reply
Re: [nonos3] cgi functions won't work In reply to
Try running the following script:

#!/usr/bin/perl

print "Content-type: text/html\n\n";
print $ENV{PATH_TRANSLATED};

It will tell you the full path.

Last edited by:

RedRum: Oct 2, 2001, 9:27 AM
Quote Reply
Re: [nonos3] cgi functions won't work In reply to
Hi There. Oddly Enough T4CMinistries.com is my site. I was surprised to find it in this message.. Actually.. I didnt fix the problem. (what i tried to do was change te links in each template so they read http://T4CMinistries.com/cgi-bin/links/add.cgi etc because what each link read prior to that was.. T4CMinistries.com/cgi-bin/add.cgi and that was wrong.. I dont know how to fix my script to work. I was actually just trying to do that. (i had given up and decided i'm gonna try again) so.. let me share my codes and if someone could tell me what i might have done wrong i'd appreciate it alot. Thanks!

$db_script_path = "/t4cmini/public_html/cgi-bin/links/admin";
$db_dir_url = "http://T4CMinistries.com/cgi-bin/links/admin";

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/t4cmini/public_html/link";
$build_root_url = "http://T4CMinistries.com/link";

in addition i'm getting this error
when i try to go to T4CMinistries.com/cgi-bin/add.cgi

now.. i've installed an instant messenger.. chatroom..messageboard..forms..trackers through cgi and never ran into a problem i couldnt solve. please help. I'd appreciate it alot. :)


Error including libraries: Can't locate admin/links.cfg in @INC (@INC contains: /usr/local/lib/perl5/5.00502/sun4-solaris /usr/local/lib/perl5/5.00502 /usr/local/lib/perl5/site_perl/5.005/sun4-solaris /usr/local/lib/perl5/site_perl/5.005 .) at add.cgi line 30.

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



i'm clueless






Last edited by:

Need Help: Oct 7, 2001, 11:47 PM
Quote Reply
Re: [Need Help] cgi functions won't work In reply to
Did you rebuild your pages after fixing your problems? I was able to check your links.cfg and it was ok ... had me going for a second. But, try re-building then you should be ok.

good luck

openoffice + gimp + sketch ... Smile
Quote Reply
Re: [Need Help] cgi functions won't work In reply to
You aren't using full paths in links.cfg or at the top of the cgi files.
Quote Reply
Re: [RedRum] cgi functions won't work In reply to
Hi Redrum. Ok You Were Right. I have everything working now. Just okase that other person that is stuck.. comes back.. here's what i did to fix it.

make sure $db_cgi_url points to your cgi-bin

ie: T4CMinistries.com/cgi-bin

Then upload your .cgi files add.cgi - subscribe.cgi into your cgi-bin in ascII mode

Chmod the files 755

Then Edit each of those cgi files you just uploaded into the cgi-bin. There is a line near the top that says this

require "/t4cmini/public_html/cgi-bin/links/admin/links.cfg";
# Change this to full path to links.cfg if you have
problems.

Now You'll have to fill in the full path to your links.cfg
it only comes with "admin/links.cfg"

So put the full path and you should be set. It should work. (make sure you put a backslash in to start out the path name (view mine above)

Hope that helps you and anyone else having this problem.

God Bless - Take Care

Oh and one thing .. if someone could help me real quick. My computer doesnt show me updates to my .html files for a full day. I'm not sure why? maybe my server?

If i change it to .shtml it works, however.

Is there a way I can change all the texts on this search engine to .shtml without messing everything up? I'd appreciate the help :) Thanks!

-- Brandon
Quote Reply
Re: [Need Help] cgi functions won't work In reply to
It could be your browser -- the cache settings. explorer does this to me at times. clear out the cache and reload the page. Netscape -- hmmm --- I think you can shift-reload or something like that. Unless, your server is serving cached pages ... haven't seen this too much though.

.shmtl ... should be ok, just puts your server through lots of work ... also is handy for doing SSIs although, some servers can be paranoid though.

good luck and sorry my advice was no good.

openoffice + gimp + sketch ... Smile