On Thu, Jan 05, 2006 at 12:22:58PM -0600, Eric Stanley wrote: > I am writing a web application where I'd like to call a Perl script from > a PHP script. The reason I'm doing this is because I sometimes use the > Perl script stand-alone and would rather not re-code the whole thing in > PHP. What happens is that I get a permission denied message in my Apache > logs. > > I tried a simple script that only prints out a short string and was able > to get it to work as long as it was in the same directory as the PHP > script. However, when I put my more complex script in the same directory > as the PHP script I get the permission denied message. I suspect it has > something to do with the complex script loading modules. Does this complicated script touch any files? My guess is that the web server user doesn't have permissions to read or write some file that is needed. Try changing to the web server user (which is www-data on my systems, but may vary) and run the script from a shell that way and see if it works. -- Jim Crumley |Twin Cities Linux Users Group Mailing List (TCLUG) Ruthless Debian Zealot |http://www.mn-linux.org/ Never laugh at live dragons |