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

nph_build.cgi error

Quote Reply
nph_build.cgi error
Hello, i get this error when i try to build pages, i can usually figure out the problem quickly but i can't figure this one out. thanks for you help.

Backing up database . . .
Backing up links, category and email database (File::Copy) ...

CGI ERROR
==========================================
Error Message : Unable to copy links backup. Reason: Bad file descriptor
Script Location : /files1/www/cgi-bin/megaseek/admin/nph-build.cgi
Perl Version : 5.00404

Form Variables
-------------------------------------------

Environment Variables
-------------------------------------------
DOCUMENT_ROOT : /files1/www/htdocs
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
HTTP_ACCEPT_CHARSET : iso-8859-1,*,utf-8
HTTP_ACCEPT_ENCODING: gzip
HTTP_ACCEPT_LANGUAGE: en
HTTP_CONNECTION : Keep-Alive
HTTP_HOST : www1.11net.com
HTTP_REFERER : http://www1.11net.com/cgi-bin/megaseek/admin/admin.cgi?display=navigation
HTTP_USER_AGENT : Mozilla/4.06 [en]C-gatewaynet (Win98; I)
PATH : /usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin
QUERY_STRING :
REMOTE_ADDR : 208.134.79.212
REMOTE_PORT : 1082
REQUEST_METHOD : GET
REQUEST_URI : /cgi-bin/megaseek/admin/nph-build.cgi
SCRIPT_FILENAME : /files1/www/cgi-bin/megaseek/admin/nph-build.cgi
SCRIPT_NAME : /cgi-bin/megaseek/admin/nph-build.cgi
SERVER_ADMIN : webmaster@11net.com
SERVER_NAME : www1.11net.com
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.0
SERVER_SIGNATURE :
Apache/1.3.6 Server at www1.11net.com Port 80


SERVER_SOFTWARE : Apache/1.3.6 (Unix)

Quote Reply
Re: nph_build.cgi error In reply to
What is a bade file descriptor?? i've never heard of that ine before..
Quote Reply
Re: nph_build.cgi error In reply to
Why can't i get anyone to respond to my question???!!!!!!!!!!
Quote Reply
Re: nph_build.cgi error In reply to
First of all...Are you aware that your administrative console is NOT password protected? I was able to access it. Frown

Anyway, have you made any changes to the files? If so, what changes have you made?

Did you make sure that your directory permissions are properly set?

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: nph_build.cgi error In reply to
hey, this is really virtualmd, i chnged my name. anyways, yeah i realize that's it not protected now, but i just wanna get my pages built first! Smile yes i checked all permissions, i chmod 755 nph-build.cgi what else could i be doing wrong? thank you. do you know of any good alternatives to .htpasswd because i can never get it to work. thanks alot Eliot
Quote Reply
Re: nph_build.cgi error In reply to
Did you try installing the password mod that is located in the Resource Center??

Make sure that you have set the permissions for all your directories and files correctly. Refer to the README file and also the FAQ section of the Resource Center.

When I was first installing LINKS, I never came accross "Bad file descriptor" Error. Usually that error means that one of your files is not correctly named with the proper extension or you have not set the permissions of your files properly.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: nph_build.cgi error In reply to
Eliot, i have checked all permissions, and nothing is spelled wrong, so i have no idea what is causing this, i just installed it 2 weeks ago on the same server and had no problems, i will keep trying, and thanks for your help.
Quote Reply
Re: nph_build.cgi error In reply to
Worked For Me:
Links Manager: Building Pages
Building Pages
Pages built on 7-Aug-1999 at 11:08:58
--------------------------------------------------------

Backing up database . . .
Backup exists for today.. Skipping
Done.

Building URL Index . . .
Done.

Updating New and Popular Records . . .
What's New Cutoff: 14 days
Popular Cutoff: 100000 hits
Updating record: 3, marking as popular (100000).
Updating record: 3, marking as new.
Done.

Updating ratings ..
Done.

Loading Category Information . . .
Done.

Gathering Category and Link information . . .
Done

Building Home Pages . . .
Subcategories: 1
Total Links: 1
Opening page: /files1/home/megaseek/public_html/index/index.html
Closing page.
Done

Building What's New Page . . .
New Links for 6-Aug-1999: 1
Total New Links: 1
Done

Building What's Cool Page . . .
Cool Links: 1
Done

Building Top Rated Page . . .
Vote Range: ..
Rate Range: ..
Done

Building Category Pages . . .
Building Category: Search_Engines
Subcategories: 0
Links: 1
Directory: /files1/home/megaseek/public_html/index/Search_Engines
Filename : /files1/home/megaseek/public_html/index/Search_Engines/index.html

Done

Pages Built (0 s)!
Quote Reply
Re: nph_build.cgi error In reply to
Also For You .htpasswd It Need's To Look Like This:

username:password

For Your Password You Need To Go To Your Web Site Hoster And Use There Encryption Form To Encrypt Your Password Good Luck
Quote Reply
Re: nph_build.cgi error In reply to
ok, yeah i got it to work now after i messed around with some stuff, now i have a nother question, how come the pages that are built don't look like everything i specified in site_html.pl? i turned off templates.
Quote Reply
Re: nph_build.cgi error In reply to
FYI: For those that cannot get .htaccess or the password mod to work...You can always change the permission to "444" of the admin.cgi file when you are not using it.

In telnet, Just type in chmod 444 admin.cgi at the command prompt. This will return a server error message if someone trys to access the file. I am using this in addition to .htaccess as a secondary level of security.

In FTP, change the permissions to Owner, Group, and Everyone to Read ONLY. The server will be unable to execute the admin.cgi file because cgi files need write and execute permissions in order to work.

Note: Don't forget to change the permissions back to 755 when you want to execute the file. I know that this is not the best solution, but it may help.

Hope this may help someone.

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited August 07, 1999).]

[This message has been edited by Eliot (edited August 07, 1999).]