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

nph-build.cgi problems on Cobalt Qube 2

Quote Reply
nph-build.cgi problems on Cobalt Qube 2
The subject line says it all .....I hit build all (or staggered) and I get the Internal Server Error message.

I tried the #$nph trick as suggested for RaQ users, doesn't work.

PLEAAASE HELP

Quote Reply
Re: nph-build.cgi problems on Cobalt Qube 2 In reply to
Try renaming the NPH files to build.cgi, verify.cgi and email.cgi.

Regards,

Eliot Lee
Quote Reply
Re: nph-build.cgi problems on Cobalt Qube 2 In reply to
There are several $nph++'s did you comment them all out?

Paul Wilson.
Installations:
http://www.wiredon.net/gt/
Quote Reply
Re: nph-build.cgi problems on Cobalt Qube 2 In reply to
renamed build.cgi, didn't work (called it directly, instead of using the nph link in the admin screen)

do I still need to rename the others after the above experiment failed ?

Quote Reply
Re: nph-build.cgi problems on Cobalt Qube 2 In reply to
I followed the instructions posted in the FAQ (accuratley I hope)

How many should there be ? I think I did them all.

Quote Reply
Re: nph-build.cgi problems on Cobalt Qube 2 In reply to
I just double checked. yes, they are ALL edited out.

Quote Reply
Re: nph-build.cgi problems on Cobalt Qube 2 In reply to
would someone please help me out here !!!!

Quote Reply
Re: nph-build.cgi problems on Cobalt Qube 2 In reply to
Run it from telnet or read your error log

Paul Wilson.
Installations:
http://www.wiredon.net/gt/
Quote Reply
Re: nph-build.cgi problems on Cobalt Qube 2 In reply to
[Thu Apr 5 21:56:12 2001] [warn] [client 192.xxx.yyy.7] handler "cgi-wrapper" not found for: /home/groups/home/links2/cgi/admin/admin.cgi
[Thu Apr 5 21:56:14 2001] [warn] [client 192.xxx.yyy.7] handler "cgi-wrapper" not found for: /home/groups/home/links2/cgi/admin/admin.cgi
[Thu Apr 5 21:56:14 2001] [warn] [client 192.xxx.yyy.7] handler "cgi-wrapper" not found for: /home/groups/home/links2/cgi/admin/admin.cgi
[Thu Apr 5 21:56:14 2001] [warn] [client 192.xxx.yyy.7] handler "cgi-wrapper" not found for: /home/groups/home/links2/cgi/admin/admin.cgi
[Thu Apr 5 21:56:22 2001] [warn] [client 192.xxx.yyy.7] handler "cgi-wrapper" not found for: /home/groups/home/links2/cgi/admin/nph-build.cgi
[Thu Apr 5 21:56:25 2001] [error] [client 192.xxx.yyy.7] malformed header from script. Bad header=HTTP/1.0 200 OK: /usr/cgiwrap/cgiwrap


Quote Reply
Re: nph-build.cgi problems on Cobalt Qube 2 In reply to
OK in nph-*.cgi ....change.......

BEGIN {
eval {
if ($ENV{'REQUEST_METHOD'}) {
print "HTTP/1.0 200 OK\n";
print "Content-type: text/html\n\n";
}
require 5.004;
require "links.cfg"; # Change this to full path to links.cfg if you have problems.
unshift @INC, $db_lib_path;
require "db_utils.pl";
require "links.def";
};
if ($@) { print "Error Loading System Libraries. Reason: $@"; die $@; }
}


.......to............

BEGIN {
eval {
if ($ENV{'REQUEST_METHOD'}) {
#print "HTTP/1.0 200 OK\n";
print "Content-type: text/html\n\n";
}
require 5.004;
require "links.cfg"; # Change this to full path to links.cfg if you have problems.
unshift @INC, $db_lib_path;
require "db_utils.pl";
require "links.def";
};
if ($@) { print "Error Loading System Libraries. Reason: $@"; die $@; }
}



.....it also looks like you have a cgi-wrapper problem but the fix above should solve your current problem.

Paul Wilson.
Installations:
http://www.wiredon.net/gt/
Quote Reply
Re: nph-build.cgi problems on Cobalt Qube 2 In reply to
thanks, I'll try that and get back to you.

in the mean time, here's more info from a cgiwrapDir/cgiwrapd

================================
Initializing Logging
Redirecting STDERR to STDOUT


Environment Variables:
QUERY_STRING: ''
SCRIPT_NAME: '/cgiwrapDir/cgiwrapd'
PATH_INFO: '/links2/cgi/admin/nph-build.cgi'
PATH_TRANSLATED: '/home/groups/home/links2/cgi/admin/nph-build.cgi'
REMOTE_USER: '<NULL>'
REMOTE_HOST: '<NULL>'
REMOTE_ADDR: '192.xxx.yyy.7'


Trying to extract user from PATH_INFO.
Retrieved User Name: 'links2/cgi'
I think what we have is a site named 'home'

User Data Retrieved:
UserID: 'nobody'
UID: '99'
GID: '110'
Home Dir: '/'

Welcome, group 'home'
The Script Path: '/home/groups/home/links2/cgi/admin/nph-build.cgi'
The administrator's UID: '110'
The file's UID: '110'
CGI Base is '/home/groups/home'
Script Base Directory: '/home/groups/home'
Trying to extract script from PATH_INFO
scrStr ended up as: 'links2/cgi/admin/nph-build.cgi'
Script Relative Path: 'links2/cgi/admin/nph-build.cgi'
Script Absolute Path: '/home/groups/home/links2/cgi/admin/nph-build.cgi'

Fixing Environment Variables.

Environment Variables:
QUERY_STRING: ''
SCRIPT_NAME: '/groups/home/links2/cgi/admin/nph-build.cgi'
PATH_INFO: ''
PATH_TRANSLATED: '/home/groups/home/links2/cgi/admin/nph-build.cgi'
REMOTE_USER: '<NULL>'
REMOTE_HOST: '<NULL>'
REMOTE_ADDR: '192.xxx.yyy.7'


UIDs/GIDs Changed To:
RUID: '110'
EUID: '110'
RGID: '110'
EGID: '110'

Changing current directory to '/home/groups/home/links2/cgi/admin'



Output of script follows:
=====================================================
HTTP/1.0 200 OK
Content-type: text/plain

Error including libraries: In string, @z now must be written as \@z at /home/groups/home/links2/cgi/admin/site_html.pl line 487, near "@z"

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

Quote Reply
Re: nph-build.cgi problems on Cobalt Qube 2 In reply to
unfortunatley, your solution didn't work

thanks for your help so far though

===============
Error including libraries: In string, @z now must be written as \@z at /home/groups/home/links2/cgi/admin/site_html.pl line 487, near "@z"

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

Quote Reply
Re: nph-build.cgi problems on Cobalt Qube 2 In reply to
In Reply To:
Error including libraries: In string, @z now must be written as \@z at /home/groups/home/links2/cgi/admin/site_html.pl line 487, near "@z"
If so you need to escape the @ on line 487.

Paul Wilson.
Installations:
http://www.wiredon.net/gt/
Quote Reply
Re: nph-build.cgi problems on Cobalt Qube 2 In reply to
that's what I thought ..... brb in 2 mins ...

Quote Reply
Re: nph-build.cgi problems on Cobalt Qube 2 In reply to
hang on, there is no @ on line 487 of site_html.pl, nor is there an @ in any part of the lines of code surrounding that line.

Quote Reply
Re: nph-build.cgi problems on Cobalt Qube 2 In reply to
ah .... found it on line 58x .... edited it out and it works.

Thank you very much !