At 22.33 +0100 2000-01-06, Nancy Lin wrote:

> [Thu Jan  6 13:22:25 2000] [error] CGI open of tmpfile: Permission denied

Maybe You have a private temporary directory (/root/tmp or whatever):

The temporary directory CGI.pm uses is selected as: ( from CGI(3) )

     The temporary directory is selected using the following algorithm:

          1. if the current user (e.g. "nobody") has a directory named
          "tmp" in its home directory, use that (Unix systems only).

          2. if the environment variable TMPDIR exists, use the location
          indicated.

          3. Otherwise try the locations /usr/tmp, /var/tmp, C:\temp,
          /tmp, /temp, ::Temporary Items, and \WWW_ROOT.


If You start apache as root and preloads CGI.pm then my experience is that
the apache kids (running as nobody) tries to use /root/tmp if it exists and
(most likely) fail.

Try to rename any private tmp directory and see if that helps.

/Georg

____________________________________________________________
Georg Borgström, Linkoping University, Ekonomiavdelningen
581 83 Linköping, SWEDEN, Email: [EMAIL PROTECTED]
Phone: +46 13 28 4073, Fax: +46 13 28 2823

Reply via email to