Results 1 to 11 of 11
Thread: Free trial: cron job error
-
04-21-2011, 12:24 PM #1Newbie
- Join Date
- Mar 2008
- Location
- Virginia
- Posts
- 24
Free trial: cron job error
Hello,
I'm not sure what I did wrong here but I did a search on "Free trial setup" and could no longer find the thread that I used to initially set up my free trial. Its not working, not sending the reminder emails (all emails are set up) or terminating the trial.
I get "no input file specified" on both jobs:
php -q /home/tortoise/public_html/clientsupport/modules/includes/hooks/remindtrial.php
php -q /home/tortoise/public_html/clientsupport/modules/includes/hooks/removetrial.php
any help would be appreciated.
-
04-22-2011, 12:11 AM #2Temporarily Suspended
- Join Date
- Jul 2010
- Location
- Michigan, USA
- Posts
- 22
"no input file specified"
Check to see if the files are there and if they're, check group and ownership permissions.
-
04-22-2011, 12:36 AM #3Web Hosting Master
- Join Date
- Jan 2008
- Location
- St. John's, NL
- Posts
- 2,201
Hi,
You are using my Free Trials action hooks for WHMCS I see I go by the same user name over at the WHMCS forums. While they are unsupported, they should still work. The error message you are getting indicates that the file path is wrong.Cpanel/WHM • PHP • Perl • Ruby • Full Time Support
LCWSoft - Canada web hosting (based in Newfoundland) since 2007
Servers based in the US and Canada (Uptime Report)
-
04-22-2011, 08:33 AM #4Newbie
- Join Date
- Apr 2011
- Location
- PHP
- Posts
- 17
Using cron with php command, this should be the point:
1. in the your_script.php file put this at the top the first line before anything:
!#/usr/bin/php
2. file your_script.php should chmod 755
3. see your phpinfo to use the real path of php, ex: "/usr/bin/php" to macth your configuration
4. use this cron command
php -f /home/your_username/public_html/your_script.php
the /home/your_username/ is your path on server
Another way using cron without "!#/usr/bin/php" on your_script.php:
1. curl
curl -s -o /dev/null http: //yourdomain . com/your_script.php
2. lynx
lynx -dump http: //yourdomain . com/your_script.php > /dev /null
3. wget
/usr/bin/wget -O - /home/your_username/public_html/script.php
4. GET
GET http: //yourdomain . com/your_script.php > /dev /null
5. links
links http: //yourdomain . com/your_script.php
source: http: // jawaad.blogspot. com/2007/07/cron-job-working-via-cpanel.html (my old blog)
*) notes: sorry I can not use code format and not correct url http link, because I should more 5 posts in this WHT forum.
-
04-22-2011, 01:31 PM #5Web Hosting Master
- Join Date
- Jan 2008
- Location
- St. John's, NL
- Posts
- 2,201
Cpanel/WHM • PHP • Perl • Ruby • Full Time Support
LCWSoft - Canada web hosting (based in Newfoundland) since 2007
Servers based in the US and Canada (Uptime Report)
-
04-22-2011, 02:27 PM #6Newbie
- Join Date
- Apr 2011
- Location
- PHP
- Posts
- 17
Yes, but in the past around year 2007, I have once try in a hosting, and it seems I can not make it correct, even the path is correct.
So I try to google, and I find so many other way, and use it as the trial and error, until I get the correct smooth result.
Different host, has also different way.. (at least I've try in 2 host and has different way to make it correct cron).
But for now, maybe all host seems no problem with cron command line php.
-
04-22-2011, 02:49 PM #7Newbie
- Join Date
- Mar 2008
- Location
- Virginia
- Posts
- 24
-
04-22-2011, 05:43 PM #8Web Hosting Master
- Join Date
- Jan 2008
- Location
- St. John's, NL
- Posts
- 2,201
I just realized that you are attempting to run the latest version of my Free Trials mod using cron jobs. That is not how they work. They are called by the WHMCS daily cron job.
Could you tell me the exact address of where you downloaded the files, so I can confirm this is the version you are using?Cpanel/WHM • PHP • Perl • Ruby • Full Time Support
LCWSoft - Canada web hosting (based in Newfoundland) since 2007
Servers based in the US and Canada (Uptime Report)
-
04-22-2011, 06:09 PM #9Web Hosting Master
- Join Date
- Jan 2008
- Location
- St. John's, NL
- Posts
- 2,201
Download and use this one instead. Delete the existing 2 cron jobs before you install it, then upload the files and configure it as per the readme.txt included with it. Ignore the line about installing cron jobs, it is a mistake.
Cpanel/WHM • PHP • Perl • Ruby • Full Time Support
LCWSoft - Canada web hosting (based in Newfoundland) since 2007
Servers based in the US and Canada (Uptime Report)
-
04-23-2011, 07:59 PM #10Web Template Master
- Join Date
- May 2009
- Location
- United Kingdom
- Posts
- 1,695
█ Zomex ~ Templates & services for web hosting resellers since 2009!
█ #1 Web Hosting Templates for WHMCS Templates | WordPress | HTML | Blesta | Clientexec
█ Professional WHMCS Services | Installation | Configuration | Integration | Upgrades
-
04-24-2011, 01:58 PM #11Newbie
- Join Date
- Mar 2008
- Location
- Virginia
- Posts
- 24
Similar Threads
-
Cron Job error in WHMCS
By BlackHost in forum Hosting Software and Control PanelsReplies: 4Last Post: 12-27-2010, 09:24 AM -
Error when Running Cron job with feedwordpress
By hardjoko in forum Hosting Security and TechnologyReplies: 5Last Post: 07-26-2006, 10:44 AM -
Cron job Help: Can any one Help with Commands for Cron Jobs????
By pal_web in forum Hosting Security and TechnologyReplies: 4Last Post: 06-16-2006, 02:43 PM -
run-parts /etc/cron.daily & Anacron job 'cron.daily problems
By 0218 in forum Hosting Security and TechnologyReplies: 0Last Post: 12-12-2004, 10:24 PM -
What is a Cron Job?
By .::DefCon::. in forum Dedicated ServerReplies: 4Last Post: 02-17-2002, 02:40 PM