Hi, I am using DBI and DBD::DB2 in a perl script to connect to a db2 database and retrieve some data from a table. It works fine in a shell using a normal user including root and wwwrun. It doesnt' work at all when I call the script as a cgi. I am using apache 1.3.12 which runs as wwwrun. I get an error message
"DBI->connect(dsnt) failed: Total Environment allocation failure! Did you set up your DB2 client environment? at /home/www/cgi-bin/db2.pl line 48" I included the "db2profile" from /home/<db2user>/sqllib into the apache script but this doesn't seem to have any effect. best regards, Thomas
