
DBI/DBD connection works in shell, not httpd
Quote:
> If I run the script in a shell as root, works great.
> If I run it as another user I get the same error in the shell as I do in the
> error_log.
> The FAQ in DBI.pm suggests configuring the web server to pass env. variable
> to the CGI scripts.
> The newbie would need some help with this.
> mysql in at /usr/local/mysql
Since you have proclaimed yourself a newbie, a pinch of advice. First, your
question is essentially about a Web server, which is off-topic in this news
group. A better group would have been comp.infosystems.www.servers.unix.
Second, you should provide complete information in your question. Asking for
"..help with this." Is not quite as specific as asking, "How do I configure
my [specify product, version, operating system, and your mother's maiden
name if you think it might be helpful].
Guessing that you run an Apache server, you set Env. Variables for the Web
server with the SetEnv directive.
Try this link:
http://httpd.apache.org/docs/env.html
cp