Gossamer Forum
Home : Products : Links 2.0 : Discussions :

nph-build.cgi errors in telnet browser OK

Quote Reply
nph-build.cgi errors in telnet browser OK
I am having trouble with nph-build in telnet. The script works fine from browser. I just wanted to check it before setting up a cron job and it comes up with the message below saying it can't find the db_util.pl.

As you can see from the pwd and ls below I am running in the directory that db_util is in?

Thanks for any help!!!!


alpha-webs: {16} % pwd

/usr/home/alphawe/usr/local/etc/httpd/htdocs/vineyardinfo/cgi-bin/links/admin
alpha-webs: {17} %

alpha-webs: {17} % perl5 nph-build.cgi

HTTP/1.0 200 OK
Content-type: text/plain

Error including libraries: Can't locate /usr/local/etc/httpd/htdocs/vineyardinfo/cgi-bin/links/admin/db_utils.pl in @INC (@INC contains: /usr/local/lib/perl5/5.00503/i386-bsdos /usr/local/lib/perl5/5.00503 /usr/local/lib/perl5/site_perl/5.005/i386-bsdos /usr/local/lib/perl5/site_perl/5.005 .) at nph-build.cgi line 31.

Make sure they exist, permissions are set properly, and paths are set correctly.alpha-webs: {18} %

alpha-webs: {18} %

alpha-webs: {18} % ll

total 309
-rw-r--r-- 1 alphawe vuser 120 Feb 21 17:38 .htaccess
drwxr-xr-x 2 alphawe vuser 512 Feb 21 14:34 HTML
drwxr-xr-x 3 alphawe vuser 512 Feb 21 14:34 LWP
-rw-r--r-- 1 alphawe vuser 11923 Feb 21 14:36 Mailer.pm
-rw-r--r-- 1 alphawe vuser 4525 Feb 21 14:36 Template.pm
-rw-r--r-- 1 alphawe vuser 3217 Feb 21 14:36 Validator.pm
-rwxr-xr-x 1 alphawe vuser 5881 Feb 21 14:59 admin.cgi
-rw-r--r-- 1 alphawe vuser 71022 Feb 21 14:35 admin_html.pl
drwxr-xr-x 2 alphawe vuser 512 Feb 24 00:20 backup
-rw-r--r-- 1 alphawe vuser 3118 Feb 21 14:35 category.def
drwxr-xr-x 4 alphawe vuser 512 Feb 24 01:33 data
-rw-r--r-- 1 alphawe vuser 37892 Feb 21 14:35 db.pl
-rw-r--r-- 1 alphawe vuser 23351 Feb 21 14:35 db_utils.pl
-rw-r--r-- 1 alphawe vuser 10501 Feb 21 15:00 links.cfg
-rw-r--r-- 1 alphawe vuser 4669 Feb 21 14:36 links.def
-rwxr-xr-x 1 alphawe vuser 47760 Feb 21 14:36 nph-build.cgi
-rwxr-xr-x 1 alphawe vuser 7483 Feb 21 14:36 nph-email.cgi
-rwxr-xr-x 1 alphawe vuser 9716 Feb 21 14:36 nph-verify.cgi
drwxr-xr-x 2 alphawe vuser 1024 Feb 21 14:35 original_templates
-rw-r--r-- 1 alphawe vuser 3650 Feb 22 02:10 rate_success.html
-rw-r--r-- 1 alphawe vuser 37114 Feb 21 21:43 site_html.pl
-rw-r--r-- 1 alphawe vuser 16547 Feb 21 23:51 site_html_templates.pl
drwxr-xr-x 2 alphawe vuser 1024 Feb 23 18:06 templates
drwxr-xr-x 2 alphawe vuser 1024 Feb 21 22:09 webcrawl_templates
alpha-webs: {19} %

alpha-webs: {19} %

alpha-webs: {19} %
Quote Reply
Re: nph-build.cgi errors in telnet browser OK In reply to
This shouldn't really matter...but try replacing $db_lib_path with your complete absolute path to the db_utils.pl file.

Also, when you are switching from web based building to telnet building, you will have to do the following:

1) Delete all your files and folders (directories) in your /links/pages / directory.

2) Use the .db permission change Mod in the FAQ section of the Resource Center.

NOTE: You will not be able to switch between web building and telnet building. You will have to stick with telnet from now on.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: nph-build.cgi errors in telnet browser OK In reply to
Not possible to use both telnet and browser build??? How can that be?

Someone here must have found a work around for that?? Help!
Quote Reply
Re: nph-build.cgi errors in telnet browser OK In reply to
 
Quote:
Not possible to use both telnet and browser build??? How can that be?

The main reason is that when you use the Web Browser to build your pages, the owner of the files reverts to nobody, and you need to have the owner set to your account name in order to build via telnet.

There are some code hacks for the .htaccess file out there in the Web that overrides the nobody account.

Search your web server's web site (like apache.org) for information on hacking the .htaccess file in your ROOT directory to override the nobody account. But this is very dangerous. I tried it once, and it screwed up all my cgi scripts.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: nph-build.cgi errors in telnet browser OK In reply to
So the best thing to do is just leave it on browser till I get it all tweaked and then change it to telnet/cron?

Is this gonna be the same with verify and email too? Can I leave email as browser based so adders get a message that their link will show up "soon" and run verify via cron? Or will they all be TELNET OR Browser?




Pete

[This message has been edited by MVIslander (edited February 24, 2000).]
Quote Reply
Re: nph-build.cgi errors in telnet browser OK In reply to
No...It is not the same...you are not building web pages or directories with the nph-email.cgi or nph-verify.cgi file. Yet you can ONLY execute the nph-email.cgi file via your browser, unless you tweak the script a lot. Nph-verify.cgi CAN be executed by both your web browser and telnet.

Yes...you should work out the kinks with executing the script via telnet before switching over.

Regards,

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