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

Links 2.0 on Unix Server with cgiwrap

Quote Reply
Links 2.0 on Unix Server with cgiwrap
I've installed Links 2.0 on a Unix Server with Perl 5.005 including LWP. The server uses cgiwrap.

I modified the nph-build.cgi script as suggested by Eliot by remarking out the two lines "$nph++;" and eliminating $nph in the list of variables. The build script now executes properly.

I can run the nph-verify.cgi script from the command line using telnet without problems. And I can execute it using an http:// call including cgiwrapd (the debugger output). The output this way shows NO errors.

Everything else seems to work properly -- adding categories, adding links, modifying, building, mailing, etc.

Any suggestions on getting the output of nph-verify.cgi to print to the browser? (I tried modify the admin_html.pl to use a cgiwrapd call with target cgimain, but no luck.)

Thanks for your help!

------------------
Louis J. Bruno
mailto:drlou@installationsplus.com
http://www.installationsplus.com
Quote Reply
Re: Links 2.0 on Unix Server with cgiwrap In reply to
Do the same thing as you did for the nph-build.cgi file with the nph-verify.cgi and the nph-email.cgi file.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








Quote Reply
Re: Links 2.0 on Unix Server with cgiwrap In reply to
Let me try to be clearer. And thanks for your replies and your patience.

If I select Quick Check or Detailed under the heading Verifying Links in the Links 2.0 Administration Panel, the file nph-verify.cgi executes and, from the cgiwrap debugger output, I think that it completes all of its tasks except it doesn't write the output to the browser window. I've posted the debugger output here:
http://www.servenet.com/nph-verify.txt

The server error message says nothing more than that an error occurred -- not very useful.

The nph-verify.cgi script executes without a problem when run from the command line via telnet. All other functions of Links 2.0 now work properly -- at least I think I've tested them all.

Thanks again for your help!

------------------
Louis J. Bruno
mailto:drlou@installationsplus.com
http://www.installationsplus.com
Quote Reply
Re: Links 2.0 on Unix Server with cgiwrap In reply to
Thanks, Eliot, for your quick reply.

Email notification was working, but I remarked out nph++; in nph-email.cgi as you recommended. This, of course, has no effect on the problem. There are no instances of the string "nph" in nph-verify.cgi.

When using the Administration Menu, if I run Quick Check or Detailed under Verifying Links, the process occurs but it concludes with a server error. Running in debugging mode produces no error messages, just the final error.

Your further input will be greatly appreciated!


------------------
Louis J. Bruno
mailto:drlou@installationsplus.com
http://www.installationsplus.com
Quote Reply
Re: Links 2.0 on Unix Server with cgiwrap In reply to
What errors do you receive?

BE MORE SPECIFIC!!!!!!!!!!!!

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








Quote Reply
Re: Links 2.0 on Unix Server with cgiwrap In reply to
Well, since you can execute the nph-verify.cgi from the command line, just create a verify log file, by using the following command:

Code:
perl nph-verify.cgi > verify.log

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








Quote Reply
Re: Links 2.0 on Unix Server with cgiwrap In reply to
I greatly appreciate your many prompt and courteous replies.

The question here isn't how to get a log I can read. I can do that with PERL in a Telnet session, as you suggested, or with the output of the cgiwrapd command from a Windows command line.

The question is how to get the hyperlinks in the Administration Menu to work. I plan to buy Links 2.0 for several of my clients. Teaching them to use the Admin Menu makes sense. Telnet is a no-no (I never give a client passwords to the server). And using the cgiwrapd command is just plain ugly!

Thanks for listening!


------------------
Louis J. Bruno
mailto:drlou@installationsplus.com
http://www.installationsplus.com
Quote Reply
Re: Links 2.0 on Unix Server with cgiwrap In reply to
Welp, if you have changed your file extensions to something without the nph. Then you have to change the links in the admin_html.pl file to get them to work in your browser.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








Quote Reply
Re: Links 2.0 on Unix Server with cgiwrap In reply to
Eliot: Don't waste your time responding to this.

For the one or two folks, who might read this thread and attempt to profit:
As I said several times before, I took Eliot's advice (posted in the Resource Center) and eliminated the $nph variables withing the files. I didn't rename them, so I don't need to change any file that calls them.

When I solve the problem, I'll post the answer here.

------------------
Louis J. Bruno
mailto:drlou@installationsplus.com
http://www.installationsplus.com
Quote Reply
Re: Links 2.0 on Unix Server with cgiwrap In reply to
Have you tried this?:

http://www.gossamer-threads.com/scripts/forum/resources/Forum2/HTML/001309.html

------------------
Visit Ethos Online http://www.ethosonline.com for articles, tutorials, tips, tools, reviews and resources to help you create, promote and maintain a great web site
Quote Reply
Re: Links 2.0 on Unix Server with cgiwrap In reply to
Thanks for the suggestion.

I'd made all the other suggested modifications and they hadn't solved the problem, which was that the script verified the links but failed to write the verification report to the browser.

Remarking out
print "HTTP/1.0 200 OK\n";
in nph-verify.cgi did the trick. (Makes sense, n'est cest pas?)

Thanks again!

------------------
Louis J. Bruno
mailto:drlou@installationsplus.com
http://www.installationsplus.com