I'm trying to set up email piping on my server and I'm getting the following error back in my email:
/bin/sh: /var/www/vhosts/example.com/httpdocs/mailcontroller.php: /usr/bin/php
: bad interpreter: No such file or directory
I think the mail alias I set up in qmail is working correctly because when it wasn't I didn't get a script error back, just a user not found error.
From the error it sounds like it's not able to find php but I've tested a script from the command line to that path and it works fine (php is running as CGI btw, rather than CLI). I'm guessing that it's making it all the way to mailcontroller.php because I don't have the /usr/bin/php path anywhere else but in that file. Could it be that it's actually running the script but can't get to stdin?
Any help would be greatly appreciated. I'm running PHP Version 4.3.9 on a linux box with Plesk 8.2