Gossamer Forum
Home : Products : DBMan : Installation :

Installation Problems

Quote Reply
Installation Problems
Accessing the default database should be available at
http://www.pixelworld.com/cgi-bin/db.cgi

I've followed the readme instructions for installing dbman, but get an error when trying to access the cgi.
The browser displays:
Server Error
This server has encountered an internal error which prevents it from fulfilling your request. The most likely cause is
a misconfiguration. Please ask the administrator to look for messages in the server's error log.

Real helpful.. ehh?

Anyway, checking the error in the server log file reveals:
[20/Jan/1999:19:50:45] failure: for host cs1-03.eph.ptd.net trying to GET /cgi-bin/db.cgi, send-cgi reports: can't exec /home/WWW/ns-home/pixelworld.com/cgi-bin/db.cgi

Now.. looking at that long path (/home/WWW/ns-home/pixelworld.com/cgi-bin/db.cgi) it seems correct.

I have the privs for all the files set to what was in the readme file, i have even tried turning db.cgi to rwxr-xr-x

In db.cgi i have tried setting the perl location to what my other cgi's use, which is:
#! /usr/local/bin/perl
and have also tried
#!/usr/local/bin/perl5.00404
(which exists) in case the other perl was not the correct version. Why my ISP has two versions set up, i'll never know.

I have even tried setting the db_script_path to
$db_script_path = "./pixelworld.com/cgi-bin";

In the default.cfg file I have my url set to:
$db_dir_url="http://www.pixelworld.com/cgi-bin";

All the db files are in my cgi-bin directory. I tried them in their own directory but still got the same error above, with the appropriate different directory.

Anyone see where the problem might be?
I have to admit I'm a bit of a novice at all this cgi stuff.. and unix.
Quote Reply
Re: Installation Problems In reply to
I got an "Object Not Found" when I went to your site. My guess is to look at permissions again and to make sure everything was uploaded in ASCII mode, not binary.

The "rwxr-xr-x" permission for db.cgi is correct.



------------------
JPD
Quote Reply
Re: Installation Problems In reply to
OOps, while waiting for a reply I got bored and trashed everything and reinstalled.

The script is actually at
http://www.pixelworld.com/cgi-bin/db/db.cgi

All the errors are still the same as the previous posting.

I did make sure everything was uploaded as ascii.
Quote Reply
Re: Installation Problems In reply to
Did you fix it?

I had no problems viewing and adding a new record...

cheers
-JO
Quote Reply
Re: Installation Problems In reply to
Yes, I finally got it to work by going into each file and stripping all the returns and just leaving line feeds. Smile
Quote Reply
Re: Installation Problems In reply to
For future reference, those unhelpful 500 server errors 99% of the time mean either:

1. You've got windows linefeeds and you need to upload your scripts in ASCII mode.
2. The path to perl is wrong, make sure it goes to perl 5.

Hope this helps!

Alex