title: Exim forward file piping to php - error 127, unable to exec or command does not exist?
body: <p>I'm trying to pipe all emails going to hi@mydomain.com, to a script. I'm using exim, and a .forward file.</p>
  <h2>Here is my forward file, in the 'hi' directory:</h2>
  <h1>Exim filter</h1>
  <h2>pipe &quot;/home/web/servers/mydomain.com/htdocs/scripts/email_receiver.php&quot;</h2>
  <p>I'm getting the following error:</p>
  <p>Child process of address_pipe transport returned 127 (could mean unable to exec or command does not exist) from command: /home/web/servers/mydomain.com/htdocs/scripts/email_receiver.php</p>
  <p>When I log in as 'hi', I have no problem executing that script (currently 777 permissions). The top of the script starts with: #!/usr/bin/php -q.</p>
  <p>Any ideas? I've tried many various versions of that forward file (&quot;pipe&quot; vs. |, removing line 1, quotes/no quotes, adding the absolute path to php) - but I'm consistently getting this error. What could this be? Thanks :)</p>