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

Cannot make admin.cgi work

Quote Reply
Cannot make admin.cgi work
I just unzipped and unloaded all of the Links 2.0 files to my server in ASCII mode. I changed the first line on each of the cgi/pl files to #!/usr/local/lib/perl5 as that is where my server's perl is. I did all the CHMODs as directed. I modified the paths in links.cfg to read as follows:

# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/web/guide/benefitsattorney/cgibin/links/admin";
$db_dir_url = "http://benefitsattorney.com/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://benefitsattorney.com/cgi-bin/links";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/web/guide/benefitsattorney/www/links/pages";
$build_root_url = "http://benefitsattorney.com/links/pages

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/links/pages";
$build_root_url = "http://benefitsattorney.com/links/pages";
I modified the lines for the sendmail program as follows:

# 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 = 'ccalhoun@cwlaw.com';

Yet when I try to go to http://benefitsattorney.com/cgi-bin/links/admin/admin.cgi, I get the following error message:

Internal Server Error

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

Please contact the server administrator, Webmaster and inform them of the time the error occurred, and anything you might have done that may have caused the error.

Premature end of script headers: /web/guide/benefitsattorney/cgibin/links/admin/admin.cgi

I've done several other scripts, and never encountered such a problem since I figured out how to do CHMODs. Any ideas on what I am doing wrong?
Quote Reply
Re: Cannot make admin.cgi work In reply to
 
Quote:
$db_script_path = "/web/guide/benefitsattorney/cgibin/links/admin";

Is that the "full" path or a relative path? It should be a full path starting with your root directory.

Also, you have these defined twice, but not identically:

Quote:
# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/web/guide/benefitsattorney/www/links/pages";
$build_root_url = "http://benefitsattorney.com/links/pages

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/links/pages";
$build_root_url = "http://benefitsattorney.com/links/pages";

I hope this helps.
Quote Reply
Re: Cannot make admin.cgi work In reply to
Thanks! I think my problem may have been either (a) defining the PATH and URL of Pages to be built twice (once with the full path, once with the relative path), and/or (b) CHMODing ALL of the files in the CGI and CGI/ADMIN directories, not just the .cgi files, to 755. In any event, after tearing my hair out, kicking the computer several times, developing a much more colorful vocabulary, and finally uninstalling the whole thing and reinstalling it, it's now working fine. You can check out http://benefitsattorney.com/links/index.html for a sneak preview.