I haven't done anything on a windows machine since I started doing serious sys-admin and development work (all *nix). So I may be asking something easy - but I haven't found the answer by searching.
I've got Windows Server 2008 running Apache 2.2. I can run the "printenv.pl" perl script that came in the cgi-bin dir along with the Apache install just fine...
However, with a script that does the following:
#!c:\perl\bin\perl.exe
print "Content-Type: text/plain; charset=iso-8859-1\n\n";
print `type C:\\Some\\Dir\\file.txt`;
My apache log just says:
[Tue Jun 22 13:13:55 2010] [error] [client 68.230.22.34] Access is denied.\r
I can run the same perl script from the dos prompt - so I know it works for my user. I can see in Task Manager that httpd.exe is running with user SYSTEM, so I made sure file.txt was readable to SYSTEM. I even made it readable to Everyone at one point - but I still get the "access is denied" error.
Thanks...