• Online Demo
  • 30-day Free Trial
  #1  
Old 06-25-2012, 06:13 PM
Schmarvin Schmarvin is offline
Junior Member
 
Join Date: Jun 2012
Posts: 3
Default Cron problem

Well, I can't seem to get the Blesta's cron function to work. I've literally tried every supported method.
I can get it to run if I click the manual link. But apparently my crontab (CentOS 6.2) does not support something like this: php /path/to/script.php key all

Is there a way to remove the key?
I can also post a link to another thread on another forum of things I have tried.
Reply With Quote
  #2  
Old 06-25-2012, 11:26 PM
Paul's Avatar
Paul Paul is offline
Blesta Developer
 
Join Date: Apr 2006
Location: Wherever I go, there I am.
Posts: 1,465
Send a message via AIM to Paul Send a message via MSN to Paul
Default

Does it run it but not pass in the key?

You might try the full path to php, something like /usr/bin/php and enclose the parameters in single quotes.
__________________
Paul
Misc Stuff Guy

Blesta
Professional Billing
www.blesta.com
Reply With Quote
  #3  
Old 06-26-2012, 12:42 PM
Schmarvin Schmarvin is offline
Junior Member
 
Join Date: Jun 2012
Posts: 3
Default

It will not run with the key, and I've tried without the key as well. But, it does nothing. Blesta requires the key in order to work properly.

I can get * * * * * php /path/to/script.php >> /path/to/test_text.txt

And inside the script.php says "echo 'working'" and in one minute, it shows "working" inside the txt file

Is there a way to get an older working version of Blesta, without the key? All of my other scripts work in crontab. So I'm thinking its a mess of code in Blesta itself. :/ I was hoping I'd be able to try Blesta, as it was recommended by a lot of friends.

Last edited by Schmarvin; 06-26-2012 at 12:54 PM.
Reply With Quote
  #4  
Old 06-26-2012, 03:02 PM
Paul's Avatar
Paul Paul is offline
Blesta Developer
 
Join Date: Apr 2006
Location: Wherever I go, there I am.
Posts: 1,465
Send a message via AIM to Paul Send a message via MSN to Paul
Default

Does your server have wget, GET, lynx or elinks on it? If so, you can use one of those cron methods, and have it access it via the URL just like when you click to run it manually. It will then be able to pass the key in as a get parameter to cronjob.php
__________________
Paul
Misc Stuff Guy

Blesta
Professional Billing
www.blesta.com
Reply With Quote
  #5  
Old 06-26-2012, 03:20 PM
Schmarvin Schmarvin is offline
Junior Member
 
Join Date: Jun 2012
Posts: 3
Default

Quote:
Originally Posted by Paul View Post
Does your server have wget, GET, lynx or elinks on it? If so, you can use one of those cron methods, and have it access it via the URL just like when you click to run it manually. It will then be able to pass the key in as a get parameter to cronjob.php
None of it works, oh well. I'll have to use a different billing system. As it is not fully compatible on my server. Thank you for your help though. The setup of Blesta is just too much of a pain. I thought it'd be a bit easier. Sorry for wasting your time.
Reply With Quote
  #6  
Old 06-26-2012, 07:53 PM
Paul's Avatar
Paul Paul is offline
Blesta Developer
 
Join Date: Apr 2006
Location: Wherever I go, there I am.
Posts: 1,465
Send a message via AIM to Paul Send a message via MSN to Paul
Default

I'm happy to take a look at it if you want to give me proper access. There's no reason the cron shouldn't work with the key. If you'd like me to take a look, email me at sales at blesta.com (Will go directly to me) and I'll check it out.

Thanks
__________________
Paul
Misc Stuff Guy

Blesta
Professional Billing
www.blesta.com
Reply With Quote
Reply

Bookmarks

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
PHP Ticket Piping cron issue - Debian Squeeze JimmyK General Discussion 13 06-26-2012 10:31 PM
CGI Error on Cron settings page voicedata General Discussion 1 03-25-2010 06:23 PM
cron problem after upgrade jsonline General Discussion 1 08-18-2009 04:44 AM


All times are GMT. The time now is 12:55 AM.