hostlonestar Posted February 24, 2009 Share Posted February 24, 2009 Ok, so I'm having a problem. I can't get my WHMCS to create a support ticket when someone emails the different support department (say...sales department). I copy and paste the cron job from WHMCS configure support departments. Cron line is: | php -q /home/hostlone/public_html/client/whmcs/pipe/pipe.php I get this return: /bin/sh: -c: line 0: syntax error near unexpected token `|' /bin/sh: -c: line 0: `| php -q /home/hostlone/public_html/client/whmcs/pipe/pipe.php' What exactly does this mean? How do I fix it? 0 Quote Link to comment Share on other sites More sharing options...
chaloupe Posted February 25, 2009 Share Posted February 25, 2009 Hi hostlonestar, This is not a cronjobs but a Forwarders command. It needs to be added as a forwarders under Mail *> Forwarders (if using cPanel). As for an example, let say you are running cPanel. You would log in to cPanel, click Forwarders > Add forwarder and create the following using Pipe method: Address to Forward: support @ mywebsite.com (drop down list) Destination: Pipe to a Program: | php -q /home/hostlone/public_html/client/whmcs/pipe/pipe.php Give it a try and let us know! 0 Quote Link to comment Share on other sites More sharing options...
hostlonestar Posted February 25, 2009 Author Share Posted February 25, 2009 ok I tried it. That would make sense why it wasn't working as a cron job lol. I'm still trying to figure out PHP, I'm picking it up, but only just started learning. Its similar to C++ which I'm quite decent at, so hopefully I get it quickly. I will let you know if it works or not. I had to make it executable 0 Quote Link to comment Share on other sites More sharing options...
hostlonestar Posted February 25, 2009 Author Share Posted February 25, 2009 Sent a couple of test emails, still not working. I used both what you said and public_html/client/whmcs/pipe/pipe.php 0 Quote Link to comment Share on other sites More sharing options...
davet Posted March 9, 2009 Share Posted March 9, 2009 Did you ever figure out how to get this working? I have the same problem. 0 Quote Link to comment Share on other sites More sharing options...
RikeMedia Posted March 11, 2009 Share Posted March 11, 2009 Also having the same problem here. 0 Quote Link to comment Share on other sites More sharing options...
chapman Posted March 30, 2009 Share Posted March 30, 2009 I was having this issue. I think the cPanel form is munging some things. For some reason, clearing out any forwarders and recreating them by hand (i.e. not pasting in the line) in cPanel resolved the issue. if using cPanel x3 theme, TYPE in: public_html/your_path_to_whmcs/pipe/pipe.php also make sure the pipe.php file is executable. For me, all this was *exactly* the same, only I was pasting in the pipe line before. Once I cleared it and typed it in, it worked like a charm. Strange I know, but try it. 0 Quote Link to comment 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.