I can't get my add.cgi to work after a new installation.
http://www.categories.ca/....cgi?ID=8759&d=1 for example.
It just returns an internal server error.
>>Premature end of script headers:
/home/categori/public_html/cgi-bin/add.cgi
The other cgi files seem to work (user.cgi etc). Path to perl is correct, file has unix line breaks. I am running Perl 5.6.1.
The permissions seem correct also.
Any ideas?
# ==================================================================
# Links SQL - enhanced directory management system
#
# Website : http://gossamer-threads.com/
# Support : http://gossamer-threads.com/scripts/support/
# CVS Info : 087,071,084,088,082
# Revision : $Id: add.cgi,v 1.48 2001/12/30 19:33:05 alex Exp $
#
# Copyright (c) 2001 Gossamer Threads Inc. All Rights Reserved.
# Redistribution in part or in whole strictly prohibited. Please
# see LICENSE file for full details.
# ==================================================================
use strict;
use lib '/home/categori/public_html/cgi-bin/admin';
use Links qw/$CFG/;
use Links::User::Add;
local $SIG{__DIE__} = \&Links::fatal;
Links::init('/home/categori/public_html/cgi-bin/admin');
Links::init_user();
if (GT::Plugins->dispatch ($CFG->{admin_root_path} . '/Plugins', 'check_request', \&Links::check_request)) {
GT::Plugins->dispatch ($CFG->{admin_root_path} . '/Plugins', 'handle_add', \&Links::User::Add::handle);
}
http://www.iuni.com/...tware/web/index.html
Links Plugins
http://www.categories.ca/....cgi?ID=8759&d=1 for example.
It just returns an internal server error.
>>Premature end of script headers:
/home/categori/public_html/cgi-bin/add.cgi
The other cgi files seem to work (user.cgi etc). Path to perl is correct, file has unix line breaks. I am running Perl 5.6.1.
The permissions seem correct also.
Any ideas?

Quote:
#!/usr/local/bin/perl # ==================================================================
# Links SQL - enhanced directory management system
#
# Website : http://gossamer-threads.com/
# Support : http://gossamer-threads.com/scripts/support/
# CVS Info : 087,071,084,088,082
# Revision : $Id: add.cgi,v 1.48 2001/12/30 19:33:05 alex Exp $
#
# Copyright (c) 2001 Gossamer Threads Inc. All Rights Reserved.
# Redistribution in part or in whole strictly prohibited. Please
# see LICENSE file for full details.
# ==================================================================
use strict;
use lib '/home/categori/public_html/cgi-bin/admin';
use Links qw/$CFG/;
use Links::User::Add;
local $SIG{__DIE__} = \&Links::fatal;
Links::init('/home/categori/public_html/cgi-bin/admin');
Links::init_user();
if (GT::Plugins->dispatch ($CFG->{admin_root_path} . '/Plugins', 'check_request', \&Links::check_request)) {
GT::Plugins->dispatch ($CFG->{admin_root_path} . '/Plugins', 'handle_add', \&Links::User::Add::handle);
}
http://www.iuni.com/...tware/web/index.html
Links Plugins