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

To all on Cobalt RaQ Servers

(Page 1 of 2)
> >
Quote Reply
To all on Cobalt RaQ Servers
I had a few problems running nph-build, nph-verify and nph-email. It would run them in the background, but would show me an "Internal Server Error".
I sat down and worked on the problem for about 10 hours and finally found a solution.

If you are getting an "Internal Server Error" on these three, and it takes some time before you see it, (as in after clicking 'Build All' ect..., the error doesnt show up right away, but you can count to more then say 5 before it appears) there are a few lines in these scripts that need changing.

Now I can't say this "Will" work for you, but it did for me. Just posting another solution for Cobalt RaQ servers.


nph-build.cgi
_________________________

In the

sub main {

change:
---------------
$use_html = 0;
---------------

to:
---------------
$use_html = 1;
---------------

In both the

sub build_staggered {
and
sub build_all {

comment the lines:
---------------
$nph++;
---------------

like this:
---------------
# $nph++;
---------------


nph-verify.cgi
_________________________

comment the line:
---------------
print "HTTP/1.0 200 OK\n";
---------------

like this:
---------------
# print "HTTP/1.0 200 OK\n";
---------------


nph-email.cgi
_________________________

In the

sub main {

comment the line:
---------------
$nph++;
---------------

like this:
---------------
# $nph++;
---------------

I hope this helps someone.
Someone keep this around as I may not get back to the forum often enough.

Eric
Quote Reply
Re: To all on Cobalt RaQ Servers In reply to
Yes, that worked for me to!

(Cobalt + Cgi = problems)
Quote Reply
Re: To all on Cobalt RaQ Servers In reply to
All I can say is THANK YOU SO MUCH!!!! It worked perfectly....

Thanks again,
Michael Mellinger
http://www.free-screen-saver.com
http://www.free-desktop-themes.com
Quote Reply
Re: To all on Cobalt RaQ Servers In reply to
Thank you.

It work for me.
Quote Reply
Re: To all on Cobalt RaQ Servers In reply to
u DA BOMB :D

ty man it worked for me 2 =P

Quote Reply
Re: To all on Cobalt RaQ Servers In reply to
Hey, it is not workng for me. The same, HTTP 500 - Internal Server is being given to me!

Quote Reply
Re: To all on Cobalt RaQ Servers In reply to
Ahhh , YES! thankyou very much! it's work perfectly.. : D

Quote Reply
Re: To all on Cobalt RaQ Servers In reply to
It's working for me, so far. And I was going completely nutzo because I KNEW I'd done everything right (ASCII mode, paths right, chmods...), -- trying for 1/2 a day...going nutzo for 1/2 a day (fun, huh? *crazed Mississippi squirrel look*)

--Sanguinarius
Your resident vampire ;P
http://www.sanguinarius.org/
Quote Reply
Re: To all on Cobalt RaQ Servers In reply to
YEAH! IT FINALLY WORKS!!! THANX!!!

The Anime Star Network
Fit for the original Otaku
http://www.anime-star.com
Quote Reply
Re: To all on Cobalt RaQ Servers In reply to
You know how you can just sit there and get the biggest headache ever....
Thanks for taking that 10 hours and struggling thru this problem, used your solution, and it works great for me now.

Cheers :)

Quote Reply
Re: To all on Cobalt RaQ Servers In reply to
Worked great for me, fixed my problem perfectly...now I just have to figure out how to password protect a dir inside the cgi-bin, yet another things Cobalts don't seem to like, thanks a lot tho, saved me a lot of work, keep it up!

Quote Reply
Re: To all on Cobalt RaQ Servers In reply to
READ THE MANY PASSWORD PROECTION THREADS (for the third time)!!!! How many times do I have to tell you??? The info is ALREADY available in the SUPPORT FORUMS!??!?!?!

Regards,

Eliot Lee
Quote Reply
Re: To all on Cobalt RaQ Servers In reply to
AnthroRules,

Do you always have to be so rude? If you're getting frustrated with these people, then maybe it's time for a little break. If you can not post without your holier than thou attitude, I'd like to suggest you don't post at all. You took a break for a while and MAN it was nice. If I see one more "search the forums" post from you I think I'm going to scream.

We are all willing to help others here but you jump right on others posts before we get the chance. Just wait a little while before you post. If you feel like posting something rude, just walk away.

Quote Reply
Re: To all on Cobalt RaQ Servers In reply to
Okay I did that now I have another related problem. It seems as if the .html pages are not being built, it prints out a good look report until....
CGI ERROR
==========================================
Error Message : unable to open home page: /home/site/home/web/gallery/pages/index.html. Reason: No such file or directory
Script Location : /home/sites/home/web/gallery/admin/nph-build.cgi
Perl Version : 5.00503

So any ideas on what the problem could be. I chmoded the pages dir, and a few other normal things. Oh please if your going to type in all caps, and blast someone for trying to get help about a specific problem, please go to your own board and do it all you want. I'm sure none of us people who are looking to help or for help want to see that childish behaviour.

Oh and props to TNT for the knowledge. Great post. Thanks
Quote Reply
Re: To all on Cobalt RaQ Servers In reply to
Is there either a missing or an extra "s" in "sites" in the paths above?

Quote Reply
Re: To all on Cobalt RaQ Servers In reply to
Change the path for pages to be built from /home/site/home/web/gallery/pages...to....

/home/sites/home/web/gallery/pages

...in links.cfg

Paul Wilson. Shocked
(Dont blame me if I'm wrong!)
Quote Reply
Re: To all on Cobalt RaQ Servers In reply to
What if you can't get the cgi to load in the first place? I added the fix but i get the following note when I try acces the admin.cgi

CGIWrap encountered an error while attempting to execute this script:

Error Message: No such file or directory
Error Number: 2

This message usually indicates there is a problem with the script itself.

any ideas? thanks.

Quote Reply
Re: To all on Cobalt RaQ Servers In reply to
OMG, It worked. Thank You Very Much.

Quote Reply
Re: To all on Cobalt RaQ Servers In reply to
Nothing Helps ;-(

Well I read all the postings about links and cobalt ( I have a raq 3 ) , I changed paths fixed the nph files, double checked permissions but I always get the dreadful internal server error when I try to access the admin.cgi . I also started admin.cgi with telnet and then i gives no errors ...

Since there are so much things that you can go wrong I hereby give I give you hereby some paths I'm using. I really hope somebody can help me with this.

regards,

TreMain

Perl version 5.00503.

#!/usr/bin/perl

require "/home/sites/site10/web/cgi-bin/zoek/admin/links.cfg";

$db_script_path = "/home/sites/site10/web/cgi-bin/zoek/admin";
$build_root_path = "/home/sites/site10/web/gids";

also I did:

nph-build.cgi
_________________________

In the

sub main {

change:
---------------
$use_html = 0;
---------------

to:
---------------
$use_html = 1;
---------------

In both the

sub build_staggered {
and
sub build_all {

comment the lines:
---------------
$nph++;
---------------

like this:
---------------
# $nph++;
---------------


nph-verify.cgi
_________________________

comment the line:
---------------
print "HTTP/1.0 200 OK\n";
---------------

like this:
---------------
# print "HTTP/1.0 200 OK\n";
---------------


nph-email.cgi
_________________________

In the

sub main {

comment the line:
---------------
$nph++;
---------------

like this:
---------------
# $nph++;
---------------



Quote Reply
Re: To all on Cobalt RaQ Servers In reply to
Thanks TNT!

It worked really well :-)

The SadGeezers Guide to Cult Science Fiction
http://www.sadgeezer.com
Post deleted by stianhole In reply to

Last edited by:

stianhole: Feb 11, 2002, 2:33 PM
Quote Reply
Re: [TNT] To all on Cobalt RaQ Servers In reply to
You ARE a genius - it worked first time!

if there is anything I can do for you give us a shout



http://www.biomedscience.co.uk
Quote Reply
Re: [grayzone] To all on Cobalt RaQ Servers In reply to
Yea...search the forums more carefully next time before posting as I mentioned in your original thread. Wink
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [TNT] To all on Cobalt RaQ Servers In reply to
Sometimes on shared Cobalt servers you don't even have access to telnet or to the error_log.

It can be rather difficult to debug a script when receiving an "INTERNAL ERROR" window without any other explanations.

I'm not a perl freak, but I found this little code very handy to understand what's going on:

# Debugger begin
# Install this call on top of your CGI Script to redirect
# the error to STDOUT (as STDERR and log lile is not
# available on some Cobalt RAQ servers
#---------------------------------------------------------
BEGIN {
$| = 1;
open (STDERR, ">&STDOUT");
print "Content-type: text/plain\n\n<PRE>";
}
#---------------------------------------------------------

What it does is simply redirect the error to the browser screen instead of sending it to the log.

I hope other newbies as myself will find it useful.

Greetings,

Michel
Quote Reply
Re: [mdegreve] To all on Cobalt RaQ Servers In reply to
Code:
use CGI::Carp qw(:fatalsToBrowser);

OR

use BEGIN blocks w/ eval() and check for errors in @!...

--Philip
Links 2.0 moderator
> >