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

500 internal error!

Quote Reply
500 internal error!
Hi!!
I'm getting 500 internal errors when trying to run admin.cgi!!

The perl path is correct!
The files where uploaded in ascii!

I've tried removing links.cfg to see if it was misconfiguration there no luck!

Is there something that I should be aware of when installing on NT!!

Quote Reply
Re: 500 internal error! In reply to
Check permissions against the FAQ in the resource center. If all checks out, and you still have problems, add the full path to links.cfg in admin.cgi.

--Drew
Quote Reply
Re: 500 internal error! In reply to
It's on NT IIS so there is no permission settings...
will try that full path thing....

Pete


Quote Reply
Re: 500 internal error! In reply to
full path didn't work!!
Is there any guide for installing on NT IIS!!!

thx for helping though...

Pete

Quote Reply
Re: 500 internal error! In reply to
Oh, yeah... that's right about the permissions.

In links.cfg, do you have $db_iis set to 1?

# Use IIS headers? Set this to 1 if your web server needs the full headers (HTTP/1.0 etc.)
$db_iis = 1;

--Drew
Quote Reply
Re: 500 internal error! In reply to
I've tried a dozen things no luck!
However searching for the bug I found my self with a few question:

1.
Structure of dirs!
Readme says:
I recommend creating a directory called links off your cgi-bin. You'll end up with a structure like:
/cgi-bin/links - User cgi like search.cgi, add.cgi, etc.
/cgi-bin/links/admin - All the admin programs.
However later in the read me!!:
$db_script_path = "/alex/links/cgi-bin/admin";

You notice that links and cgi-bin have been switched....
what is the correct structure to use??

2. $db_lib_path This is in admin.cgi:
require "$db_lib_path/db.pl"; # Database Routines.

However I have not set $db_lib_path any where...?

3. Unix or NT..: also in admin.cgi..:
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX /
($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows \

Why are they both there??

Please help!

Or could I get someone to install it for me!?
It's a non-profit site, so I would not be able to pay for it;-(


Quote Reply
Re: 500 internal error! In reply to
1) A bit inconsistent, isn't it? Most people do /home/cgi-bin/links to keep Links seperate from their other scripts. Since you're on Windows, your paths are something like: C:\httpd\cgi-bin\links.

2) That is a reference to $db_script_path. At the bottom of links.cfg there's dozens of them.

3) They are both there because on unix, directories are seperated with "/" while on Windows they are "\". This makes it so it will swap the correct slash into paths.


--Drew
Quote Reply
Re: 500 internal error! In reply to
Just a wild guess; have you turned flock off? I remember that I had problems with Links 2.0 on Windows 95 until I turned this off.

Martin Webster
--
Cebidae's UK Internet Resource
http://www.cebidae.co.uk/
Quote Reply
Re: 500 internal error! In reply to
tried it - did that;-)

Thx for trying, guys!!

But I give up now, gonna look for that unix server now...
These NT boxes sucks BIGTIME!
Not because I couldn't install links 2, but in general;-))

Regards,

pete

Quote Reply
Re: 500 internal error! In reply to
Actually on NT with IIS and using Perl, you use the same type of directory structure as you would on UNIX except that you add the drive letter.

So, for the $db_script_path you would use the following:

Code:

$db_script_path = "C:/InetPub/wwwroot/youraccount/cgi-bin/links";


And also, I betcha your Perl paths in your .cgi scripts are incorrect. I have provided paths for NT 4.0/IIS 4.0 in both the DBMAN Installation Forum and Perl/CGI Forum about a year ago. And also try changing the file extensions to .pl rather than .cgi. Unfortunately, most NT hosting providers do not take the time to properly configure the server to allow .cgi extensions.

Regards,

Eliot Lee

Quote Reply
Re: 500 internal error! In reply to
I took the perl path from the cgi's for my forum, just the standard path without local...

So I guess you owe me;-))

The path I used is like the one you desribed...
But how CaseSensitIve are the links2 scripts because I don't anything about which letters is capitalized in my path, the server is remote...
But I guess since my board power forum runs fine that I have to find a unix server to get this working...

Quote Reply
Re: 500 internal error! In reply to
In Reply To:
So I guess you owe me;-))
I owe you what? Be more specific!

It is NOT a LINKS issue, but a server issue. Drive letters are CaSe SenSItiVE as well as the paths, which are also CaSE SenSITivE in both UNIX and NT.

Regards,

Eliot Lee

Quote Reply
Re: 500 internal error! In reply to
"And also, I betcha your Perl paths in your .cgi scripts are incorrect"

You bet me;-)

well, never mind I'm leaving those damm nt servers behind!
I'm gonna set up a old PC with some OS, the question is which shall it be??
Any preferences??
I need apache,cgi, virtual host (part of apache), ftp, subdomains, nameserver for the domains hosted etc.

I was thinking about some unix system like openbsd or freebsd, but also some linux system sounds good, but is there any easy to install/ set up server system out there, I like them to be free, but if it's an killer system I'm willing to buy....

Quote Reply
Re: 500 internal error! In reply to
\\fs2\primary\xavier\pete\

I got this path from my webmaster, however I'm quite confused that there is no : etc.
the links html is gonna go the above path, and the cgi is in /cgi-bin/links/

please help again Martin;-))

Peter