ncuneo has asked for the wisdom of the Perl Monks concerning the following question:
I have a linux box hosting up a PHP page, from which I am calling a Perl script to do some stuff. I was curious as to what user does the Perl script get ran with? My Linux box is running Apache, so I wasn't sure if it was the Apache user which is calling the Perl script. I tried doing `echo $USER` and `whoami` and returning to the PHP script but neither seem to return any useful information.
The reason for this is I'm using GPG to encrypt something and it doesn't seem to want to work when I call it from the PHP page but runs fine when I run it from the command line.
Thanks, Nick
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PHP calling Perl Question
by ikegami (Patriarch) on May 17, 2011 at 22:10 UTC | |
by ncuneo (Initiate) on May 17, 2011 at 22:44 UTC |