# Problems With WHMCS Pop3 import php pipe Cron Script Failing To Execute

**URL:** <https://forum.virtualmin.com/t/problems-with-whmcs-pop3-import-php-pipe-cron-script-failing-to-execute/42808>\
**Category:** Virtualmin\
**Created:** [June 2, 2012, 3:10pm UTC](https://forum.virtualmin.com/t/problems-with-whmcs-pop3-import-php-pipe-cron-script-failing-to-execute/42808 "2012-06-02T15:10:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![khinton](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/k/ed655f/32.png) [@khinton](https://forum.virtualmin.com/u/khinton)\
**Post date:** [June 2, 2012, 3:10pm UTC](https://forum.virtualmin.com/t/problems-with-whmcs-pop3-import-php-pipe-cron-script-failing-to-execute/42808/1 "2012-06-02T15:10:19Z")

</div>

Hi, folks.  
I’m trying to figure out with this pop3 import script isn’t working via cron, wich seems to eb the least-intrusive way of making it run.  
It checks the specific mail boxes by logging in, and if a new mesage is processed for a given support department, makes the WHMCS system send out an email to the client with a new support ticket.  
The ending output, attached tot he following crontab entry is what Jamie suggested I add to supress receiving over 1 thousand emails ( per five minutes) wich is WHMCS’s suggestion on how long this script should run for.  
\*/5 \* \* \* \* php -q /home/khinton/domains/billing.keithnet.us/public\_html/pipe/poo  
p.php \> /dev/null 2\> &1  
But despite this, the script isn’t owrking.  
I entered the server address as simply localhost in the departments respectively.  
Should I have entered 127.0.0.1 instead?  
Basicly what this boils down to is that I’m not receiving tickets during my testing process of my mail system and WHMCS at this point. A solution to my problem would be most appreciated from anyone.

---

<div class="post-metadata">

**Author:** ![ronald](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/ea666f/32.png) [@ronald](https://forum.virtualmin.com/u/ronald)\
**Post date:** [June 2, 2012, 4:07pm UTC](https://forum.virtualmin.com/t/problems-with-whmcs-pop3-import-php-pipe-cron-script-failing-to-execute/42808/2 "2012-06-02T16:07:46Z")

</div>

It is because the script is being execute by php-cli and that doesn’t know about the iocube loader.  
so your best bet is to use either curl or wget to call the script.  
Personally I use CURL.

curl [http://billing.keithnet.us/pipe/pop.php](http://billing.keithnet.us/pipe/pop.php) or wget [http://billing.keithnet.us/pipe/pop.php](http://billing.keithnet.us/pipe/pop.php) and let the cron run every 5 minutes or so

/dev/null 2\> &1 pnly means you will not see the output…e.g the output is delivered to a black hole 😃

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [April 30, 2020, 5:55am UTC](https://forum.virtualmin.com/t/problems-with-whmcs-pop3-import-php-pipe-cron-script-failing-to-execute/42808/3 "2020-04-30T05:55:10Z")

</div>

Closed on April 30, 2020, 5:55am UTC


