> I wrote PERL script index.cgi that connects to my DB and do some job.
> Everything is working OK when I run script from command line.
This is normal.
Quote:> But when I try to
> execute that script from my Internet Explorer I can not connect to Informix
> server. Why?
Because the environment is wrong.
Quote:> I am working as user ROOT and user have correct environment (it works on command
> line).
Not relevant. The environment set by the web server is totally different from
anything it inherited. Check the cgi-bin/printenv script, for example. Also, as
Sergey commented, you are probably not running the web server as root -- more likely
as nobody.
Let's put it like this, if your httpd.conf file says that Apache is to run as root,
I strongly recommend going and finding a job cleaning sewers now -- your machine
will not survive an attack from hackers.
When there's a problem with accessing something Informix-related from the web, it is
safe to assume that the problem is environment unless you know you've had the
environment working previously.
Quote:> User ROOT run WEB server.
> My configuration:
> SERVER:
> Digital Unix
> Netscape Enterprise Server
> Informix 7.3x
> Perl Version 5.006
> DBI Version 1.14
> DBD::Informix Version 1.00.PC1
> CLIENT:
> Microsoft Internet Explorer 5.5
--
Guardian of DBD::Informix 1.00.PC1 -- see http://www.cpan.org/
#include <disclaimer.h>