Gossamer Forum
Quote Reply
500 errors
I have read through the recent posts. I have not seen a similar condition to mine yet.

I just installed links on a futurequest server.

Everything went in without any hangups. Then when testing in order as outlined in the instructions. I got to step 4. Search for your new link. I get a 500 error.

I also get a 500 error when ever trying to click. on the one added site.

add,modify,rate it, and search all give me a 500. I am sure that it is something stupid that I am overlooking.

Path to perl is correct and is version 5.00503.

I added the absolute path to links.cfg and that did not help.

Does anyone have any ideas.

Thanks in Advance,


------------------
Dan O
www.associatecash.com
Quote Reply
Re: 500 errors In reply to
Can anyone see where I am going wrong? Here is what I have.Parent

[.]
admin 1 KB 2-27-2000 rwxr-xr-x (755)
add.cgi 5.9 KB 2-27-2000 rwxr-xr-x (755)
jump.cgi 4.7 KB 2-27-2000 rwxr-xr-x (755)
modify.cgi 6.7 KB 2-27-2000 rwxr-xr-x (755)
rate.cgi 4.1 KB 2-27-2000 rwxr-xr-x (755)
search.cgi 11.3 KB 2-27-2000 rwxr-xr-x (755)
subscribe.cgi 4.6 KB 2-27-2000 rwxr-xr-x (755)

37.6 KB in 6 files

Here is what I have in the admin directory.

Parent [.]
backup 1 KB 2-27-2000 rwxr-xr-x (755)
data 1 KB 2-27-2000 rwxr-xr-x (755)
HTML 1 KB 2-27-2000 rwxr-xr-x (755)
LWP 1 KB 2-27-2000 rwxr-xr-x (755)
templates 1 KB 2-27-2000 rwxr-xr-x (755)
.htaccess 1 KB 2-27-2000 rw-r--r-- (644)
admin.cgi 5.7 KB 2-27-2000 rwxr-xr-x (755)
admin_html.pl 69.3 KB 2-27-2000 rwxr-xr-x (755)
category.def 3 KB 2-27-2000 rw-rw-rw- (666)
db.pl 37 KB 2-27-2000 rwxr-xr-x (755)
db_utils.pl 22.8 KB 2-27-2000 rwxr-xr-x (755)
links.cfg 10.1 KB 2-27-2000 rw-rw-rw- (666)
links.def 4.5 KB 2-27-2000 rw-rw-rw- (666)
Mailer.pm 11.6 KB 2-27-2000 rw-rw-rw- (666)
nph-build.cgi 46.7 KB 2-27-2000 rwxr-xr-x (755)
nph-email.cgi 7.3 KB 2-27-2000 rwxr-xr-x (755)
nph-verify.cgi 9.4 KB 2-27-2000 rwxr-xr-x (755)
site_html.pl 36.2 KB 2-27-2000 rwxr-xr-x (755)
site_html_templates.pl 15.9 KB 2-27-2000 rwxr-xr-x (755)
Template.pm 4.4 KB 2-27-2000 rw-rw-rw- (666)
Validator.pm 3.1 KB 2-27-2000 rw-rw-rw- (666)

I just double checked the instructions and it gives the example.
/cgi-bin/links -User cgi like search.cgi,add.cgi,etc


I don't know where to turn.

Dan O
Quote Reply
Re: 500 errors In reply to
Well, there are some problems with permissions of your files:

.pm files should be 644 (rw-r--r--)
.pl files should be 644 (rw-r--r--)
.def files should be 644 (rw-r--r--)
.cfg files should be 644 (rw-r--r--)

data directory should be 777 (rwxrwxrwx)
backup directory should be 777 (rwxrwxrwx)

All Template files should be 666 (rw-rw-rw-).

Please re-read the README file.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: 500 errors In reply to
Thanks for asking if the script was allowed I never did check. I just assumed it was. After asking on the futurequest forum I found it was ok and it works well. So that brings the problem back to human error (ie. me.)

Here is how I set the variables:# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/big/dom/xassociatecash/cgi-bin/links/admin";
$db_dir_url = "http://associatecash.com/cgi-bin/links/admin";

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/big/dom/xassociatecash/www/pages";
$build_root_url = "http://associatecash.com/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";
$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/Ratings";

Here is the url to the index.html page.

http://www.associatecash.com/pages/index.html

It indexed the first link ok. So I thought that maybe the jump.cgi was not working. I ran the script checker on it and it worked ok.

I have double ckd the permissions. I did not 755 any of the .pl files but it did not say to. Should I try this first?

I know I can I know I can I know I can.

Thanks for all help.

Dan O

Quote Reply
Re: 500 errors In reply to
And does your hosting company allow LINKS or custom cgi scripts to run on their servers?

Also, have you changed permissions of all your cgi scripts to 755 (rwxr-xr-x)?

Also, make sure the permissions of your files and directories are the same as specified in the README file.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums


[This message has been edited by AnthroRules (edited February 27, 2000).]
Quote Reply
Re: 500 errors In reply to
Eliot thanks again,

I think I had these set correctly in the begining. But I reset them.Parent [.]
backup 1 KB 2-27-2000 rwxrwxrwx (777)
data 1 KB 2-27-2000 rwxrwxrwx (777)
HTML 1 KB 2-27-2000 rwxr-xr-x (755)
LWP 1 KB 2-27-2000 rwxr-xr-x (755)
templates 1 KB 2-27-2000 rwxr-xr-x (755)
.htaccess 1 KB 2-27-2000 rw-r--r-- (644)
admin.cgi 5.7 KB 2-27-2000 rwxr-xr-x (755)
admin_html.pl 69.3 KB 2-27-2000 rw-r--r-- (644)
category.def 3 KB 2-27-2000 rw-r--r-- (644)
db.pl 37 KB 2-27-2000 rw-r--r-- (644)
db_utils.pl 22.8 KB 2-27-2000 rw-r--r-- (644)
links.cfg 10.1 KB 2-27-2000 rw-r--r-- (644)
links.def 4.5 KB 2-27-2000 rw-r--r-- (644)
Mailer.pm 11.6 KB 2-27-2000 rw-r--r-- (644)
nph-build.cgi 46.7 KB 2-27-2000 rwxr-xr-x (755)
nph-email.cgi 7.3 KB 2-27-2000 rwxr-xr-x (755)
nph-verify.cgi 9.4 KB 2-27-2000 rwxr-xr-x (755)
site_html.pl 36.2 KB 2-27-2000 rw-r--r-- (644)
site_html_templates.pl 15.9 KB 2-27-2000 rw-r--r-- (644)
Template.pm 4.4 KB 2-27-2000 rw-rw-rw- (666)
Validator.pm 3.1 KB 2-27-2000 rw-rw-rw- (666)

Eliot I am also glad that you gave me the permissions to .pm,.pl,.def,.fg because they are not offered in the read me.

However it still does not work. I am starting to get fustrated. Ugggh!

I just don't know what else to do.

Thank you for your help.
Dan O

Quote Reply
Re: 500 errors In reply to
What is the Perl Path that you are using in your .cgi files?

Also, you may have to use the complete ABSOLUTE path to your links.cfg file in ALL of your .cgi files.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: 500 errors In reply to
I am using the default path to perl.
#!usr/local/bin/perl
My server is set up for either or.
#!usr/bin/perl
I left it set to the default to save editing. Well I might as well try changing to the other path to perl and change to the absolute path at the same time.

I will return with the results.

Dan O
Quote Reply
Re: 500 errors In reply to
Well, at this point I have two suggestions:

1) Contact one of the LINKS Installers in the Resource Center to help you.

2) Contact your hosting company for more information on installing custom cgi scripts.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: 500 errors In reply to
Eliot thanks for all of your help. I submitted a support request to my host about an 1 1/2 hours ago. Still no response. I am almost done changing the path to perl and changing to absolute path to links.cfg .

Keeping my fingers crossed.

Thanks again,

Dan O
Quote Reply
Re: 500 errors In reply to
You're welcome.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: 500 errors In reply to
Well I changed every script. Still no go. So I deleted the hole bloody thing and re-installed with having changed each links.cfg to the full path.

I set all the chmods per instructions and I still have the exact same problem. So what ever mistake that I made the first time I just repeated. Uggggghhh!

And my host finally contacted me and they offer no support on 3rd party scripts. So I guess that I am off to the resource center.

Dan O
Quote Reply
Re: 500 errors In reply to
Eliot,
Thanks again for all of your help. The problem was that I had my links directory chmod at 777. Changed it to 755 and it works just fine.

So simple yet such a hassle. I new it would be something stupid that I did wrong. Oh well. Live and learn.

Dan O
Quote Reply
Re: 500 errors In reply to
Glad you figured it out...

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums