formasfunction Posted September 21, 2007 Share Posted September 21, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/70195-solved-having-trouble-running-script-from-the-command-line/ Share on other sites More sharing options...
formasfunction Posted September 21, 2007 Author Share Posted September 21, 2007 I think it must have been a line break issue because I manually retyped the entire script in VIM rather Textmate and it worked. Quote Link to comment https://forums.phpfreaks.com/topic/70195-solved-having-trouble-running-script-from-the-command-line/#findComment-352599 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.