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

"Build all" errorr

Quote Reply
"Build all" errorr
can anyone help?

Buid All

Error:
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please, i need a solution
Thanks.
Quote Reply
Re: "Build all" errorr In reply to
Turn on db_debug variable...Set it to 1 in your links.cfg file, then print the complete error message you receive.

Common problems associated with building indices via the Build All Option:

1) Directory and file permissions not set properly:

Data Files: (*.db, *.txt)

666 (rw-rw-rw-)

Directories:

a) /links/pages/ (and also the new, cool, and ratings directories)
b) /cgi-bin/links/backup
c) /cgi-bin/links/data/hits
d) /cgi-bin/links/data/ratings

ALL NEED to be 777 (rwxrwxrwx)

2) Cgi files (including nph files) are not set to the proper permission, WHICH should be:

755 (rwxr-xr-x)

3 Paths to links.cfg file and library files are not set-up properly in the cgi scripts. Check them again.

Hope this helps.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
http://www.anthrotech.com
Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
----------------------





Quote Reply
Re: "Build all" errorr In reply to
I cant find the db_debug variable in links.cfg.
Please help me
I have been revised the permissions and the path variables.
Thanks.
Quote Reply
Re: "Build all" errorr In reply to
I tried to look and find it for you but I couldn't find it either. In any case, I was able to fix my very same errors by fiddling with the permission of the file it would name in the error. List the whole error here if you still can't get it to work.
Quote Reply
Re: "Build all" errorr In reply to
You can also check for the syntax of the file using the following command lines in telnet:

1) connect to cgi-bin/links/admin/ directory:

Code:
cd cgi-bin/links/admin/

2) check syntax:

Code:
perl -c nph-build.cgi

BTW...The de_bug variable I was actually referring to is the following code line in admin.cgi:

Code:
# &cgierr("No Errors");

By uncommenting or unremming this line (deleting the pound sign #)...you will get a complete error report if there are errors.

Also, in nph-build.cgi, you should be able to see the errors as the script is executed. Copy the error codes when you click on Build All.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
http://www.anthrotech.com
Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
----------------------





Quote Reply
Re: "Build all" errorr In reply to
Hello to all
The errors in the installation don't seem problems of configuration of the script. Problems of the server? The detailed errors appear in all options except in the build options, where the following thing appears: "Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request. "

I don't have telnet access at the moment. Impossible check the syntax by telnet access.
I have installed the script in hypermart.net and it works ok.
Address: http://prueba.axarnet.com/portal/admin/admin.cgi
Address2: http://capuio.hypermart.net/cgi-bin/portal/admin/admin.cgi


Thanks for all
Quote Reply
Re: "Build all" errorr In reply to
hi
I tried to change the nph cgis lines explained In Topic:

"To all on Cobalt RaQ Servers"
http://www.gossamer-threads.com/scripts/forum/resources/Forum2/HTML/001309.html

and the internal error message finito.

but...

Links Manager: Building Pages
Building Pages
Pages built on 20-Jan-2000 at 18:48:07
--------------------------------------------------------

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

CGI ERROR
==========================================
Error Message : Unable to copy links backup. Reason: Permission denied
Script Location : /home/sites/site71/web/cgi-bin/portal/admin/nph-build.cgi
Perl Version : 5.00404

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

Environment Variables
-------------------------------------------
DOCUMENT_ROOT : /home/sites/site71/web
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : application/vnd.ms-excel, application/msword, application/x-comet, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: es
HTTP_CONNECTION : Keep-Alive
HTTP_HOST : prueba.axarnet.net
HTTP_REFERER : http://prueba.axarnet.net/cgi-bin/portal/admin/admin.cgi?display=navigation
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
PATH : /sbin:/usr/sbin:/bin:/usr/bin
PATH_INFO : /cgi-bin/portal/admin/nph-build.cgi
PATH_TRANSLATED : /home/sites/site71/web/cgi-bin/portal/admin/nph-build.cgi
QUERY_STRING :
REDIRECT_SCRIPT_URI : http://prueba.axarnet.net/cgi-bin/portal/admin/nph-build.cgi
REDIRECT_SCRIPT_URL : /cgi-bin/portal/admin/nph-build.cgi
REDIRECT_STATUS : 200
REDIRECT_UNIQUE_ID : OIdKVs-rBbcAAC3wJu8
REDIRECT_URL : /cgi-bin/portal/admin/nph-build.cgi
REMOTE_ADDR : 62.36.168.9
REMOTE_PORT : 2440
REQUEST_METHOD : GET
REQUEST_URI : /cgi-bin/portal/admin/nph-build.cgi
SCRIPT_FILENAME : /usr/cgiwrap/cgiwrap
SCRIPT_NAME : /cgi-bin/portal/admin/nph-build.cgi
SCRIPT_URI : http://prueba.axarnet.net/cgi-bin/portal/admin/nph-build.cgi
SCRIPT_URL : /cgi-bin/portal/admin/nph-build.cgi
SERVER_ADMIN : admin
SERVER_NAME : prueba.axarnet.net
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.1
SERVER_SIGNATURE :
SERVER_SOFTWARE : Apache/1.3.3 Cobalt (Unix) (Red Hat/Linux) PHP/3.0.7
UNIQUE_ID : OIdKVs-rBbcAAC3wJu8



Quote Reply
Re: "Build all" errorr In reply to
ok ok
this is the new error message:

CGI ERROR
==========================================
Error Message : unable to open temp links database: /home/sites/prueba.axarnet.net/web/cgi-bin/portal/admin/data/links.db.bak. Reason: Permission denied
Script Location : /home/sites/site71/web/cgi-bin/portal/admin/nph-build.cgi
Perl Version : 5.00404
Quote Reply
Re: "Build all" errorr In reply to
ok ok
its correct set the permissions to 777 in data directory??

no errors por fin!!!!
Quote Reply
Re: "Build all" errorr In reply to
Aleeeeluuuuyaaaaaaaaaaa!!!

yes?

o no?

Quote Reply
Re: "Build all" errorr In reply to
I changed the permission for links.db and it worked for me. Smile I changed mine to: rw-rw-rw
Try that.
Quote Reply
Re: "Build all" errorr In reply to
The /data/ directory should be 777 (rwxrwxrwx).

The database files in that directory should ALL BE 666 (rw-rw-rw-).

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
http://www.anthrotech.com
Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
----------------------





Quote Reply
Re: "Build all" errorr In reply to
ESTUPENDOOOOOO
Yuhu, yahoo, hu hu
Thanks for Eliot & MS & My (Pipolin Smile
Quote Reply
Re: "Build all" errorr In reply to
You're welcome...

Glad it is working now!

Now, the only suggestion I have is that when other users come across similar problems that you LINK THIS THREAD, so that people will know what to do!

Smile

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
http://www.anthrotech.com
Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
----------------------





Quote Reply
Re: "Build all" errorr In reply to
I have been following this tread becuase I am having a similar problem, but just when I got to the good part, the solution was not there!

I am getting:
CGI ERROR
==========================================
Error Message : Unable to copy links backup. Reason: Permission denied
Script Location : /home/travel/cgi-bin/links/admin/nph-build.cgi
Perl Version : 5.00503

*I have nhp-build.cgi set to 755 and the admin directory set to 777.
db.pl is set to 755

Also, I need to pw protect the admin directory, but my ISP has told me this is not possible , as it is not within public_html. Is there any other way, or do I need to move everything to a higher level folder?

Thanks!!!
Quote Reply
Re: "Build all" errorr In reply to
And you need to have the backup directory set to 777! (like I mentioned twice in this Thread and probably a dozen times in other Threads and Forums.)

Smile

BTW: Your *.pl files (including db.pl and db_utils.pl) should be 644 (rw-r--r--).

In terms of password protection, there is the Admin Mod 2.0 located in the Modification Forum, which is a forum you should check out for code hacks and modification ideas!

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. Smile
----------------------









[This message has been edited by Eliot (edited January 26, 2000).]