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

I can't get to add.cgi, modify.cgi, et cetera

Quote Reply
I can't get to add.cgi, modify.cgi, et cetera
I have yet to be able to reach add.cgi, modify.cgi, and subscribe.cgi. I also can not get to or use jump.cgi or search.cgi. So you can't even click on a link and get to the site it's supposed to go to. The href's are to the right place and the permissions are 755. Any ideas?

~Margaret

Quote Reply
Re: I can't get to add.cgi, modify.cgi, et cetera In reply to
I went to the site listed in your profile and snooped around a little. When I found your search.cgi, I got a message that reads "maybe you didn't strip carriage returns." This means you uploaded your files in binary mode. (if you load up links.cfg in your browser you can verify this by all the boxes you'll see.) All files except images should be uploaded in ASCII mode.

--Drew
Quote Reply
Re: I can't get to add.cgi, modify.cgi, et cetera In reply to
I can't offer any help, because I'm having the same problem. admin.cgi works fine, but not the .cgi's
Margaret mentions.

Larry

Quote Reply
Re: I can't get to add.cgi, modify.cgi, et cetera In reply to
Larry,

1) Check your Perl path in each of your .cgi files.
2) Check to make sure that you have the CORRECT absolute path to the links.cfg file in the require line.

Regards,

Eliot Lee
Quote Reply
Re: I can't get to add.cgi, modify.cgi, et cetera In reply to
Would having the admin directory(where links.cfg is) protected with .htaccess and .htpasswd make a difference as to whether the file was readable by the modify.cgi etc programs?

~Margaret

"There is nothing so unequal as the equal treatment of unequals." ~ Thomas Jefferson
Quote Reply
Re: I can't get to add.cgi, modify.cgi, et cetera In reply to
Nope.

Regards,

Eliot Lee
Quote Reply
Re: I can't get to add.cgi, modify.cgi, et cetera In reply to
My site is at http://www.treefort.org/~lscritch/pages/
That's where the links to non-functioning .cgis are.
The admin is at
http://www.treefort.org/~lscritch/cgi-bin/links/admin/admin.cgi
It isn't password-protected.

lscritch@treefort$ whereis perl5
perl5: /usr/local/bin/perl5 /usr/ports/japanese/perl5 /usr/ports/lang/perl5
("perl" points to perl ver. 4)

This is the hash-bang line in all the .cgi files:
#!/usr/local/bin/perl5 -w
(turning on warnings is habit for me, at least until through troubleshooting)

Taking add.cgi as an example, I've changed the default <b>require</b> line from
require "admin/links.cfg";
to
require "/users/home/lscritch/public_html/cgi-bin/links/admin/links.cfg";
re:
lscritch@treefort$ pwd
/users/home/lscritch/public_html/cgi-bin/links/admin
lscritch@treefort$ ls links.cfg
links.cfg



Quote Reply
Re: I can't get to add.cgi...Additional info In reply to
I just found out where the server error logs are. I'm getting "Premature end of script headers."

Larry

Quote Reply
Problem resolved Re: I can't get to add.cgi... In reply to
I had downloaded links2.zip to the Unix box using lynx, then used the unzip command (rather than using
Netscape, my Windows box, and WinZip). Apparently there were extraneous carriage returns or
something.

Larry