Gossamer Forum
Home : Products : Gossamer Links : Discussions :

error 500 on new links install

Quote Reply
error 500 on new links install
Hello,
I'm trying to install links on a new server. Its running apache 2.0 / perl5.8.0. I can run other scripts with no problems but when i go to install links sql i get the 500 error.

I looked in the error.logs and it shows:

[Wed Dec 29 16:00:44 2004] [error] [client 151.198.236.21] Can't open perl script "!": No such file or directory
[Wed Dec 29 16:00:44 2004] [error] [client 151.198.236.21] Premature end of script headers: install.cgi


I also have my httd.conf file set up like so

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

<Directory "/home/website/public_html/cgi-bin">
AllowOverride None
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>
Quote Reply
Re: [carminejg3] error 500 on new links install In reply to
What does the top of install.cgi look like? (first 1-2 lines).

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] error 500 on new links install In reply to
Hi Andy,

It looks like.

#!/usr/bin/perl
# ==================================================================
# Links SQL - enhanced directory management system
#
# Website : http://gossamer-threads.com/
# Support : http://gossamer-threads.com/scripts/support/
# CVS Info : 087,064,087,091,083
# Revision : $Id: install.cgi,v 1.128 2004/05/05 17:51:45 jagerman 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.
# ==================================================================
# Automated install script. Please replace the first line with
# #!/path/to/perl
# if the install doesn't work for you.
{
#--BEGIN Libs
BEGIN {
$INC{"GT/AutoLoader.pm"} = "GT/AutoLoader.pm";
# ==================================================================
# Gossamer Threads Module Library - http://gossamer-threads.com/
#
# GT::AutoLoader
# Author: Jason Rhinelander
# $Id: AutoLoader.pm,v 1.12 2004/03/11 23:30:45 jagerman Exp $
#
# Copyright (c) 2004 Gossamer Threads Inc. All Rights Reserved.
# ==================================================================
package GT::AutoLoader;
use vars qw($AUTOLOAD %LOG %PACKAGES);
use strict qw/vars subs/; # no strict 'refs' - we need several soft references here.
sub import {

(((REST DOWN HERE))))

I tried putting this at the top under #!/usr/bin/perl


#!/usr/bin/perl
$|=1;
use CGI::Carp qw(fatalsToBrowser)


but that didn't seem to work either. Any ideas?
Quote Reply
Re: [carminejg3] error 500 on new links install In reply to
ok any I just added the -w switch to install.cgi and it worked!!!

I wonder why this is? And now do i have to add it to all the links files.
Quote Reply
Re: [carminejg3] error 500 on new links install In reply to
Mmm... /use/bin/perl is definatly your path to perl?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] error 500 on new links install In reply to
lol. Well I'm going to run the instaqll and see what happens
Quote Reply
Re: [carminejg3] error 500 on new links install In reply to
That's probably because your install.cgi had windows line feeds (\r\n) in it rather than just \n.

Adrian