Gossamer Forum
Home : Products : DBMan : Installation :

can't run the script - help!

Quote Reply
can't run the script - help!
hi every 1
w i was just download the script
2 weeks ago and i cant let it work.
i have expreience in cgi and internet.
i took all files and put them in my cgi directory.
i configured the db.cgi and the config file.
then, i went to my browser and i wrote the url:
http://www.myserver.com/cgi-bin/dbman/db.cgi
is that what should i do?
is the database home page is the db.cgi??no html file??
i will appriciate if you will help me.
thanks...
elad

you can answer my email account





Quote Reply
Re: can't run the script - help! In reply to
You have the correct URL. The html file is built "on the fly" by the db.cgi script, using structures in the html.pl file.

What do you mean you "can't get it to work." What does it do? Do you get an Internal Server Error? File Not Found? CGI Error?

I prefer to answer on the forum rather than by private email so that others can benefit from our discussion.

------------------
JPD





Quote Reply
Re: can't run the script - help! In reply to
hi...
thanks for answering.
i got internal server error.
elad
Quote Reply
Re: can't run the script - help! In reply to
Internal Server Errors are usually caused by one or more of the following things--

you uploaded one or more files in binary mode instead of ASCII mode. Delete all of the files and upload them again, making absolutely certain that every file is uploaded in ASCII mode. (Even if you're sure you uploaded in ASCII mode the first time, it's a good idea to do it again. I've been really sure and then found out I was wrong.)

you set your permissions incorrectly. Since you're going to be deleting the files and uploading them again, you'll be setting the permissions again. I think there is a small typo in the readme file, regarding the permissions for db.cgi. They should be
(755) -rwxr-xr-x

your path to Perl is incorrect. If you've done both of the above, and you still get the error, check to be sure the first line of db.cgi points to perl on your system.

You mentioned that you had configured db.cgi. What did you change? You shouldn't change the line

$db_script_path = ".";

unless you absolutely have to. Try everything else first.

------------------
JPD





Quote Reply
Re: can't run the script - help! In reply to
 
Did you turn off flock()? Flock won't work on Win95. In default.cfg, change $db_use_flock to 0.

Cheers,
adam
Quote Reply
Re: can't run the script - help! In reply to
hi...
i turn the flock to 0 and it's not working.
the trouble is that it doesnt seem he recognize the script because i get's
internal server error.
elad
Quote Reply
Re: can't run the script - help! In reply to
Can you have a look at your error log and post any messages relating to the 500 errors? Also, upload a copy of your default.cfg file to the web and post a link to it, so we can have a look at it.

Cheers,
adam
Quote Reply
Re: can't run the script - help! In reply to
hi...
i looked at the log report - nothing special
you can goto :

www.amit.org.il/default.cfg
or

thanks...
Quote Reply
Re: can't run the script - help! In reply to
I'd still like to know exactly what changes you made to db.cgi. There could be a problem there.

I've just run into a new snag on my own server that I'm working out. Seems that since they got a new server, scripts won't run from a subdirectory of the cgi-bin. If I put the scripts directly in the cgi-bin, they work fine. Otherwise I get either an internal server error or a "file not found." Try placing your scripts directly in the cgi-bin. (Don't forget to change the first line of default.cfg to reflect the change.)


------------------
JPD





Quote Reply
Re: can't run the script - help! In reply to
hi...
sorry for not telling you : im trying to run
script on my web server which installed on win95 !
in the readne i saw that it's working fine.
elad
Quote Reply
Re: can't run the script - help! In reply to
hi...
well...i put the files under cgi-bin without
any subdirectory and again...internal server
error...it's very strange - i have lot of
perl script which works fine on win95.
anyway i put db.cgi and the config file
under my root server so you can look:

http://199.203.104.8/db.cgi
http://199.203.104.8/default.cfg

thanks
elad
Quote Reply
Re: can't run the script - help! In reply to
I wasn't able to access your db.cgi file, but I think I have an idea of what might be wrong.

Try changing the name of db.cgi to db.pl.

You'll also need to change

$db_script_url = $db_dir_url . "/db.cgi";

to

$db_script_url = $db_dir_url . "/db.pl";

in the default.cfg file.

Win95 often requires the file to have a .pl suffix.


------------------
JPD





Quote Reply
Re: can't run the script - help! In reply to
hi...
we are thinking the same...
i did it this morning (israel time)
before you told me...
well...
i got "documents contains no data"
i put the file in my second server:
www.amit.org.il/db.pl
www.amit.org.il/default.cfg
but dont confuzed - my win95 server is:
http://199.203.104.8
Quote Reply
Re: can't run the script - help! In reply to
I'm really hoping that someone with more knowledge of this comes along and offers some advice to you and to the other person who's having trouble with getting it going on an NT server. I just don't know about these issues, but I didn't want you to think you were being ignored. Smile

I think I've told you everything I know that might help. Sorry.


------------------
JPD





Quote Reply
Re: can't run the script - help! In reply to
hi...
thank you very much anway...
elad