Jump to content

[SOLVED] having trouble running script from the command line


formasfunction

Recommended Posts

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.