Community Forums

Important Notice:

Two sections of this forum are available only to registered customers. In order to receive access to the Customer Forums and ResellerCentral Forums, you must first register on these forums or login to your existing forum account. If you are an existing HostNine customer, be sure to register using the email address on file for your billing profile.

Go Back   HostNine Community Forums > H9 Customer Forums > WHMCS

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 08-31-2008, 06:15 AM
Ahmed Ahmed is offline
Newbie
 
Join Date: Aug 2008
Posts: 2
My Problems with CronJobs and whmcs Automation Tasks

Hi guys,
Can anyone help me please!

I have a RC account in H9 and I want to execute an automation tasks inside my whmcs and for that I have to use one of the two commands:
either: "php -q /home/myUsername/public_html/billing/admin/cron.php"
or: "GET http://www.hostingstations.com/billing/admin/cron.php"

but when I use the first command, NO message I receive, although I provided my email address.

and when I use the second command, I receive this message: "/bin/sh: GET: command not found"

My questions please are:
1- Where is the problem exactly (inside my whmcs or CronJobs Command in my cPanel)?
2- Is there anything else I have to write it in CornJobs Command (such as, /usr/lib/ or /usr/bin/)?
3- what about my "cron.php" file that I want to execute it, Should I write any command inside it (such, #!/usr/lib/ -q) at the top of the "cron.php" file content?


Best Regards
Ahmed Almonajed
Reply With Quote
  #2  
Old 08-31-2008, 10:02 AM
kobra kobra is offline
Web Hosting Master
 
Join Date: Oct 2006
Posts: 595
Default

Instead of the sugested:
Code:
php -q /home/myUsername/public_html/billing/admin/cron.php
Try this as your cron directive:
Code:
curl -o /dev/null http://your_domain.com/billing/admin/cron.php
__________________
Get Your Business Found
Reply With Quote
  #3  
Old 08-31-2008, 10:23 AM
Ahmed Ahmed is offline
Newbie
 
Join Date: Aug 2008
Posts: 2
Default

Hi Kobra,
Thank you for your quick reply

When I used this code:
"curl -o /dev/null http://your_domain.com/billing/admin/cron.php"
I received this message:
Quote:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
So, what does this mean?

Regards
Reply With Quote
  #4  
Old 08-31-2008, 10:40 AM
kobra kobra is offline
Web Hosting Master
 
Join Date: Oct 2006
Posts: 595
Default

As I recall, this is "SUCCESS" - - BUT there were no transactions to process.

Remember what this is doing for WHMCS - it is to be scheduled for once a day to process things like invoicing and the like.

WHMCS uses other routines for account creation and email, etc.

If you are in a testing environment where no accounts are active and would get an erroneous mail/invoice - - you can set this to cron say at 30 min intervals and create a test account and set the next invoice to today and upon cron excecution you should receive an invoice.

Then set cron back to once a day
__________________
Get Your Business Found
Reply With Quote
  #5  
Old 08-31-2008, 02:31 PM
H9NickH H9NickH is offline
Retired Staff
 
Join Date: Jul 2008
Location: Central New York
Posts: 401
Send a message via AIM to H9NickH
Default

Hello,

When you use:
php -q /home/myUsername/public_html/billing/admin/cron.php

Do you receive a message from the WHMCS system with the details of your cron?

The cron system will only email you when there are errors with your cron.
Reply With Quote
  #6  
Old 09-12-2010, 08:01 PM
JohnSc JohnSc is offline
New Member
 
Join Date: May 2009
Location: Easley, South Carolina
Posts: 1
Send a message via Skype™ to JohnSc
Question Automation does not work in WHMCS

About 3 months ago, I started getting error messages from WHMCS cron. All the email says is "No input file specified"

I changed nothing in the cron setup in cPanel, and as far as I know, there should only be one cron set up, however I get this same error after a 1:00AM job that I know about, and then another one shortly after 10:00AM every day. I have to go in and manually do all the billing and reminders etc. as automation is just plain not working.

Will installing the new update fix this? Also how do I get rid of that second cron? I have searched my WHMCS installation and I do not find any file with "cron" in the name.
__________________
John
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
WHMCS Problems peterbra WHMCS 2 12-09-2009 03:38 AM
Node26 + DNS Problems kostas Shared Web Hosting 0 01-02-2009 05:21 PM
Problems with node47 Martyn Reseller Hosting 0 06-19-2008 05:07 PM


All times are GMT -5. The time now is 01:42 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

Host Nine

Our mission began in 2006. Thousands of awesome clients later, we are now one of the most popular hosters in the world.
Most of this is because of our fantastic support. Join us, you'll be glad you did - that's a given.