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

admin.cgi shows up but nothing works

Quote Reply
admin.cgi shows up but nothing works
I managed to get Links "half" installed. My admin page shows up and I can add a new catagory and links but I cannot build pages or anything else. I get an internal server error message saying "The server encountered an internal error or misconfiguration and was unable to complete your request"

Here is the part of links.cfg that I edited:
********************************************
PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/home/sites/site81/web/cgi-bin/links/admin";
$db_dir_url = "http://www.trickynet.co.uk/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://www.trickynet.co.uk/cgi-bin";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home/sites/site81/web/links";
$build_root_url = "http://www.trickynet.co.uk/links";

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "$build_root_path/New";
$build_new_url = "$build_root_url/New";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "$build_root_path/Cool";
$build_cool_url = "$build_root_url/Cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "$build_root_path/Ratings";
$build_ratings_url = "$build_root_url/Ratings";

# Database Options
# --------------------------------------------------------
# You really need to use flock(). However if your system doesn't support it (Win95),
# then turn this off at your own risk!
$db_use_flock = 1;
# Use Pragma: no-cache to stop browsers from caching output? (0 = cache, 1 = nocache)
$db_nocache = 0;
# Use IIS headers? Set this to 1 if your web server needs the full headers (HTTP/1.0 etc.)
$db_iis = 0;
# Field number of category in category.db
$db_main_category = 1;
# Referers -- which hosts are allowed to add to your database.
@db_referers = ();

# Email Options
# --------------------------------------------------------
# NOTE: Be sure to edit the text of the message. It can be found
# in the templates directory: email-add.txt, email-del.txt and
# email-mod.txt respectively.

# Set only ONE of either $db_mail_path which should go to a
# mail program like sendmail, or $db_smtp_server which will use
# a SMTP server. Do not set both at once!

# PATH of sendmail. # SMTP Server
$db_mail_path = '/usr/lib/sendmail'; $db_smtp_server = '';

# Email address of the administrator. BE SURE TO SET!
$db_admin_email = 'webmaster@trickynet.co.uk';
*******************************************

Can anybody spot anything wrong there. I know I read somewhere (maybe cgi resources) that Links shouldn't be the first script that you install but it is the first script that I have installed, although not properly yet. I was delighted when the admin page came up, but I can't get it to build pages.

Please help.

--
Tricky
www.trickynet.co.uk


[This message has been edited by tricky (edited January 14, 2000).]
Quote Reply
Re: admin.cgi shows up but nothing works In reply to
The problem is NOT with your admin.cgi, but your nph-build.cgi file. Use the following commands to check the syntax of your nph-build.cgi file via telnet:

Code:
cd /cgi-bin/links/admin/

THEN type in the following command line:

Code:
perl -c nph-b*

If the syntax is OK, then your server possibly does not allow nph files to be executed via your web browser. If this is true, try executing your nph-build.cgi via telnet using the following command line:

Code:
perl nph-b*

If you do not have telnet access and you cannot execute nph scripts in your server, then do the following:

1) Rename your nph files to the following:

Code:
build.cgi
email.cgi
verify.cgi

2) Then remove the following codes from each of these files:

Code:
$nph++;

3) Then change the links to these nph files in your admin_html.pl file, so that you can excute them via your admin.cgi file.

BTW: You should also specify your domains in the @db_referers array, like the following:

Code:
@db_referers = ('www.mydomain.com','mydomain.com');

If you don't, then people could copy your add forms and start spamming your database.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------






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