email forwarding to script forcing user directory

schwim

Well-Known Member
Aug 2, 2006
213
0
166
Hi there everyone,

I've moved a site using WHMCS from one cpanel install to another. Although I didn't have a problem on the departing server, I'm finding I have a problem with the new server.

WHMCS wants me to create an email forward to "| php -q /home/username/public_html/whmcs/pipe/pipe.php", however, when I try this, it creates a forward to "| /home/username/php -q /home/username/public_html/whmcs/pipe/pipe.php" instead.

I see the new warning at the bottom about relative directory with a link to wikipedia, but to completely honest, it doesn't do anything to help me figure out how to reformat this command to work in the later cpanel install.

Any help on getting this working would be greatly appreciated.

thanks,
json
 

eth00

Well-Known Member
PartnerNOC
Mar 30, 2003
721
1
168
NC
cPanel Access Level
Root Administrator
Have you tried giving the full path to php?


whereis php

That will get you the path, just replace that with the php -q you have right now.