I'm having problems running cgi scripts because my perl scripts are
generating errors and these error messagres are getting sent to the web
server before any http headers are sent. This of course causes the scripts
to fail. The errors are associated with the locale settings on the
system. The perl documentation provides a few work arounds. One is to put
set some environment variables that will turn off thess error messages,
and all will be well. I've tried it on the command line, and the errors
do disappear when the vars are set.
So with this in mind, I tried to set the environment variables of the web server
by putting them in the .profile of the httpd user. The web server runs
under this id. But this has no effect on the environment of the web
server. I have a shell script that prints the server environment
variables to the browser window, and it looks as though this .profile is
not run at all. How do I modify the environment variables of the web server. Is
this dependant on the webserver (Netscape Enterprise server) or the
operating system (aix 4.3)?