Hi folks,
I am migrating from another hosting provider and am stuck on a call I am using to send e-mail from my PHP web app. This worked appropriately on the other hosting provider, but can't get it working on Linode.
From the PHP code executed from a form POST I call:
Code:
pclose(popen("/bin/sh /path/to/script.sh", "r"));The script.sh shell script uses curl to call back to a PHP file that does the work of sending an e-mail. I am able to successfully run the following from the command line:
Code:
/bin/sh /path/to/script.sh
Any thoughts on flags to twiddle somewhere? Or better yet, any logs I can look at to see where it is breaking down? Apache error and access logs show nothing.
Also, I broke out the pclose() and popen() calls and echo'd the results of:
Code:
popen: Resource id #15
pclose: 2
Thanks, Josh