Mailing List Archive

Gadfly DBase and CGI
Hi All,

I am trying to use the KWP database within a cgi script. This is on a dec
unix machine running apache.

Has anyone ever done this? I keep getting an error in the script every time
I go to create a new connection to an existing database. What permissions
must I have (755)?

Thanks guys

David
Gadfly DBase and CGI [ In reply to ]
David Miron wrote:

> Hi All,
>
> I am trying to use the KWP database within a cgi script. This is on a dec
> unix machine running apache.
>
> Has anyone ever done this?

Yes, Gadfly, CGI, DEC and Apache too...
What is the error ? (you can have look at
the appache server errors, somewhere
like /usr/local/etc/httpd/logs ).
Can you read plain html files from a distant machine
with this server ?

Marcvs [.alias Is it an Apache, a Python-cgi or a Gadfly error ?]
Gadfly DBase and CGI [ In reply to ]
>
> Has anyone ever done this? I keep getting an error in the script
every time
> I go to create a new connection to an existing database. What
permissions
> must I have (755)?

Usually, you should be running the database in client/server
mode, but there are exceptions, and in the exceptional cases
you should add some "mutual exclusion" trick not provided by gadfly
per se to make sure two cgi scripts never attempt to modify the
same database at once.

In any case the user that opens the database (the one that starts
the server or [exceptionally] the cgi user) should have the ability
to modify the database files and the database directory, if the
database will be modified.

Good luck! -- Aaron Watters http://www.chordate.com

===

Never attribute to malice what can be explained by incompetence.
--folklore


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.