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

admin.cgi doesnt work

Quote Reply
admin.cgi doesnt work
hi im fairly new to perl so im trying to sort this out myself and im sure all the paths are correct:

# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/home/moonglocouk/public_html/cgi-bin/links/admin";
$db_dir_url = "http://www.moonglo.co.uk/cgi-bin/links/admin";

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home/moonglocouk/public_html/pages";
$build_root_url = "http://www.moonglo.co.uk/pages";

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "/home/moonglocouk/public_html/pages/New";
$build_new_url = "http://www.moonglo.co.uk/pages/New";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "/home/moonglocouk/public_html/pages/Cool";
$build_cool_url = "http://www.moonglo.co.uk/pages/Cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "/home/moonglocouk/public_html/pages/Ratings";
$build_ratings_url = "http://www.moonglo.co.uk/pages/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 = ''; $db_smtp_server = '';

# Email address of the administrator. BE SURE TO SET!
$db_admin_email = 'nightstar@btopenworld.com';
and i doubled checked the permissions, and it was in ascii mode so i dont get why its not coming up
i would be greatful for any help
Quote Reply
Re: [moonglo] admin.cgi doesnt work In reply to
It'll be easier for ppl to help you if you state the error message you receive! If there's no onscreen msg, check your server error_logs!
Quote Reply
Re: [xpert] admin.cgi doesnt work In reply to
hi ok here is the error message when i go to the page

Sorry, the file you requested is temporarily unavailable or it may not exist

and this is in the error log

[Mon Jul 22 09:09:44 2002] [error] (2)No such file or directory: exec of /home/moonglocouk/public_html/cgi-bin/links/admin/admin.cgi failed [Mon Jul 22 09:09:44 2002] [error] [client 213.122.42.111] Premature end of script headers: /home/moonglocouk/public_html/cgi-bin/links/admin/admin.cgi
Quote Reply
Re: [moonglo] admin.cgi doesnt work In reply to
Are you sure your cgi-bin is actually in public_html ?

Anyway check the path to perl in the cgi-scripts and make sure the cgi's are chmodded to 755 and were uploaded in ASCII
Quote Reply
Re: [Paul] admin.cgi doesnt work In reply to
hi got to the admin page but for some reason i cangt get to the main page werre all the links show up as it comes up blank, and also i get this message

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

and this is the environment variable in case you need them

Environment Variables
-------------------------------------------
DOCUMENT_ROOT : /home/moonglocouk/public_html
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : text/xml, application/xml, application/xhtml+xml, text/html;q=0.9, image/png, image/jpeg, image/gif;q=0.2, text/plain;q=0.8, text/css, */*;q=0.1
HTTP_ACCEPT_CHARSET : utf-8, *
HTTP_ACCEPT_ENCODING: gzip, deflate, compress;q=0.9
HTTP_ACCEPT_LANGUAGE: en-gb
HTTP_CONNECTION : keep-alive
HTTP_COOKIE : SITESERVER=ID=fe5a738ce8483e2ed397ce3e1c8190c9; GuestbookAdmin=admin
HTTP_HOST : www.moonglo.co.uk
HTTP_KEEP_ALIVE : 300
HTTP_REFERER : http://www.moonglo.co.uk/cgi-bin/links/admin/admin.cgi?display=navigation
HTTP_USER_AGENT : Mozilla/5.0 (Windows; U; Win98; en-GB; rv:0.9.4) Gecko/20011019 Netscape6/6.2
PATH : /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/local/apache/bin:/usr/local/mysql/bin
QUERY_STRING :
REMOTE_ADDR : 213.122.145.69
REMOTE_PORT : 1779
REQUEST_METHOD : GET
REQUEST_URI : /cgi-bin/links/admin/nph-build.cgi
SCRIPT_FILENAME : /home/moonglocouk/public_html/cgi-bin/links/admin/nph-build.cgi
SCRIPT_NAME : /cgi-bin/links/admin/nph-build.cgi
SERVER_ADDR : 81.21.68.14
SERVER_ADMIN : hostmaster@dc-hosting.net
SERVER_NAME : moonglo.co.uk
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.1
SERVER_SIGNATURE :
SERVER_SOFTWARE : Apache/1.3.26 (Unix) PHP/4.2.1 mod_ssl/2.8.9 OpenSSL/0.9.6
Quote Reply
Re: [moonglo] admin.cgi doesnt work In reply to
Make sure admin/backup exists and its permissions are 0777
Quote Reply
Re: [Paul] admin.cgi doesnt work In reply to
hmm its still not showing
Quote Reply
Re: [moonglo] admin.cgi doesnt work In reply to
What is the error?....please be specific.
Quote Reply
Re: [Paul] admin.cgi doesnt work In reply to
hi sorry to be a pain the error is this when i tried to
build it.
CGI ERROR
==========================================
Error Message : unable to open temp links database: /home/moonglocouk/public_html/cgi-bin/links/admin/data/links.db.bak. Reason: Permission denied
Script Location : /home/moonglocouk/public_html/cgi-bin/links/admin/nph-build.cgi
Perl Version : 5.00503

and aslo when i click on the Home pages on top of the admin panel it doesnt go anywhere
Quote Reply
Re: [moonglo] admin.cgi doesnt work In reply to
Verify the paths you entered in links.cfg...they look incorrect also double check the chmodding of all files/directories accoring to the readme file. The permissions errors are obviously due to wrong permissions.

Last edited by:

Paul: Jul 22, 2002, 8:12 AM
Quote Reply
Re: [Paul] admin.cgi doesnt work In reply to
hmm i just rre chmodded everyhing and nothing has changed.
Quote Reply
Re: [moonglo] admin.cgi doesnt work In reply to
http://gossamer-threads.com/..._username=&mh=50
Quote Reply
Re: [Paul] admin.cgi doesnt work In reply to
hi thanks for your help i got it fixed
Cool