nah, some other weird apache thing is happening I think. It turns out I am able to write to /tmp. Web stuff isn't really my thing so I was hoping to fix this without delving into apache configuration, but that seems to be the source of the problem.
I'm not running it chroot'ed or anything like that. Perl is not throwing any errors because I'm checking on the open to see if it succeeds before writing to the file. I'm thinking that there is some httpd issue preventing it from writing to the file system. I'll hunt down a forum for that maybe.
yeah, I tried changing both the group and owner to apache. no change. the fact that the script can read from the file and the fact that the -w test indicates that the file can be written is what is so confusing to me. when I do the open (FILE '/var/www/cgi-bin/file.txt') the file opens...
This is a problem from a cgi script but I can't see how it can be an apache/cgi problem. I have a cgi script that tries to open a file int eh cgi-bin folder for writing. the -W and -w tests show that the script can write to the file. However when I try to open the file using open(THEFILE...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.