Gossamer Forum
Home : Products : DBMan : Installation :

Newbie at CGI, Internal Server Error! HELP!!

Quote Reply
Newbie at CGI, Internal Server Error! HELP!!
Hey guys,

I am having considerable difficulty in editing the db.cgi file and the default.cfg file! I'm not quite sure what I have to put where and how to type it in! The readme file says to type the path of the directory where perl is installed but the script itself asks for the directory where DB script resides. Am I just reading the code wrong? Also, when it asks for my URL where the script is going to reside does that just mean the URL to where my index.html file is stored or is there more information required here? I'm just getting an internal server error! I've read a lot of the posts that deal with this error but I am so green when it comes to cgi that most of the explanations don't make much sense. Sorry guys, I guess I have to learn somewhere, right?!?! I need some help here!

Digital Twitch

Quote Reply
Re: Newbie at CGI, Internal Server Error! HELP!! In reply to
Path to perl is defined in the very first line on some files. It appears something like this:
#!/usr/local/bin/perl

There is only one or two instances - first line in the file - where you need to check/set your path to perl.

In the default.cfg file, there are some paths which need to be defined - these are each mentioned in the Readme.txt file.

# URL of the directory dbman resides in. No Trailing Slash Please.
$db_dir_url = "http://www.yourdomain.com/cgi-bin/dbman";




Quote Reply
Re: Newbie at CGI, Internal Server Error! HELP!! In reply to
For the perl path line, is this what you are talking about?

# If you run into problems, set $db_script_path to the full path
# to your directory.
$db_script_path = "/usr/local/bin/perl";

That is what I have been able to find.

I think I edited the .cfg file correctly. This is what it looks like.

# URL of the directory dbman resides in. No Trailing Slash Please.
$db_dir_url = "http://server2043.virtualave.net/digitaltwitch/public_html/cgi-bin/dbman";

I am still recieving that occursed error! I have set my permissions and what not. How do I set the debugging mode on? Maybe that will shed some light onto my situation.

Thanks a lot,

Philip

Quote Reply
Re: Newbie at CGI, Internal Server Error! HELP!! In reply to
PLEASE, I COULD REALLY USE THE HELP HERE GUYS!!

I have a lot of trouble when it comes to programming! I just want this thing to work! I know you probably hate this, but could you spell it out with billboards the size of California?

Thanks,

Philip

Quote Reply
Re: Newbie at CGI, Internal Server Error! HELP!! In reply to
Hi Philip, I did spell it out :-)

The perl path is the very first line, the line you've quoted is about line 37 in db.cgi. Check the very first line in the file for the path to perl.

Line 37 should remain as follows (very, very seldom do you need to change anything at all in db.cgi - you simply check the path to perl)

# If you run into problems, set $db_script_path to the full path
# to your directory.
$db_script_path = ".";


Quote Reply
Re: Newbie at CGI, Internal Server Error! HELP!! In reply to
I see said the blind man! I have corrected my editing mistake but I am still recieving the same error! Man, this seems to be the thorn in the side of Dbman! Not really sure where to go from here.

Thanks,

Philip

Quote Reply
Re: Newbie at CGI, Internal Server Error! HELP!! In reply to
Philip, can you save your default.cfg file as a text file (default.cfg.txt) and upload it to an area of your server where it can be viewed via the web? Provide the url and I'll take a look at the file.

Quote Reply
Re: Newbie at CGI, Internal Server Error! HELP!! In reply to
Philip, I've been able to track down the problem. You have the wrong file path listed in your config file.

You have:
$db_dir_url = "http://server2043.virtualave.net/digitaltwitch/public_html/cgi-bin/dbman";

Your path should be:
$db_dir_url = "http://server2043.virtualave.net/digitaltwitch/cgi-bin/dbman";

You won't need to upload the file - this should resolve the problem you are having.

Quote Reply
Re: Newbie at CGI, Internal Server Error! HELP!! In reply to
Here it is! Thanks for going out of your way I appreciate it!

Philip
http://server2043.virtualave.net/digitaltwitch/default.txt

P.S. I tried that, and I still recieve the error.