Forum Moderators: coopster

Message Too Old, No Replies

Email piping interpreter problem

         

formasfunction

10:49 pm on Sep 20, 2007 (gmt 0)

10+ Year Member



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). Could it be something with the line breaks in my php file? 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.

Any help would be greatly appreciated. I'm running PHP Version 4.3.9 on a linux box with Plesk 8.2

eelixduppy

3:08 am on Sep 29, 2007 (gmt 0)



>> From the error it sounds like it's not able to find php

Not sure about that. Are you having trouble parsing any of your other scripts in the same manner?

formasfunction

7:27 pm on Oct 1, 2007 (gmt 0)

10+ Year Member



You were right, it was reaching PHP. As far as I can tell it was a problem with the line terminators in my file. After manually retyping the script through VIM it started working.