Gossamer Forum
Home : Products : DBMan : Installation :

500 Internal Server error

Quote Reply
500 Internal Server error
premature end of script error

I am not an expert. but i have loaded a number of cgi perl scripts before sucessfully.

i have uploaded *many times* with my ftp client set permantly to ascii text. I have set and checked and checked the permissions.

http://www.clan-eve.org/cgi-bin/dbman/db.cgi

I have set my perl path to #!/usr/bin/perl

and my script path to http://www.clan-eve.org/cgi-bin/dbman

i am using a perl code editor to keep from having text formatting issues.

my server is running linux and using
Perl Version: 5.006

for viewing i have placed the following files

http://www.clan-eve.org/to_do/db.cgi

http://www.clan-eve.org/to_do/default.cfg.

thank you for any assistance you can offer me.
Quote Reply
Re: [Mystan] 500 Internal Server error In reply to
Here are a few links with a few suggestions.

http://www.gossamer-threads.com/...t%20error%20;#202600

http://www.gossamer-threads.com/...end+of+script+error+
Quote Reply
Re: [joematt] 500 Internal Server error In reply to
sadly,

by the time posting to this forum, i had run through searches on my problem several times over. so yes.. i have seen them, and attempted to act where that made sense.

even tried the db.cgi file both with and without

print "Content-type: text/html\n\n"; (courtesy of durp)

reloaded and reset chmod times without number. even tried using different ftp clients for transfer in ascii format. (i know, it makes no sense.. but i frustration makes you do odd things)
Quote Reply
Re: [Mystan] 500 Internal Server error In reply to
The only problem I even had was using a sub directory rather than the cgi-bin, so while it has never been supported or otherwise confirmed as a common problem, that is my suggestion.

To be clear; try putting all the files in the cgi-bin, of course change the paths.
Quote Reply
Re: [joematt] 500 Internal Server error In reply to
yes i had that problem with one of the earlier scripts installed for my site.

I did put copies of the two main script files in my html directory in an attempt to get help with them, but i should have renamed them to .txt files to do that.
Quote Reply
Re: [Mystan] 500 Internal Server error In reply to
I'm not sure I was clear enough based on your reply.

I suggest running db.cgi as

http://www.clan-eve.org/cgi-bin/db.cgi

and not

http://www.clan-eve.org/cgi-bin/dbman/db.cgi

If you already tried that, my apologies.

Edit: I was able to open the files you posted, but saw nothing wrong.

Last edited by:

joematt: Jun 13, 2003, 1:32 PM
Quote Reply
Re: [joematt] 500 Internal Server error In reply to
I have tried that too. i just dont know. cant seem to get past the small stuff when i have done more complicated scripts than this one.

do a lot of ppl just give up on this one?

does anyone have any more ideas? I REALLY dont want to have to abandon this script.
Quote Reply
Re: [Mystan] 500 Internal Server error In reply to
FINALLY

i downloaded the script from my host after it failed and had a look.. as a matter of forensic

the line breaks were in what? MAC or maybe windows.. choking my Linux host, i guess.

i thought using a perl editor would protect me from that. anyway.. I converted the line breaks and it worked.. i have tried so many times and failed that i almost couldnt believe my eyes.

thanks for listening

now the real work begins
Quote Reply
Re: [Mystan] 500 Internal Server error In reply to
I had this error 500 too when I moved the DBMAN onto our Intranet server (UNIX). The Admin gave me the hint: Perl scripts have to have the extension *.pl not cgi! It may be only a local problem, but I want to post this hint here for all who struggle with that error. I lost 2 days searching for the problem. Bodo