Jump to content

Question

Posted

I am a completely new user. I managed to get the software loaded and running, I think.  Installation instructions said to set the cron jobs to run every 5 minutes. I went to the demo on blesta and looked at their automation settings. It looks like the settings from installation are pretty close to the same. I remember a cron key, which I had no idea about where to put it. Cron only works manually. There must be so much more that I need to do that I have no clue about. Help.

 

 

Recommended Posts

  • 0
Posted

I am very sorry.  I do not think that you are a bastard at all. The problem all along has been that the link that you posted in the beginning did not have the information that came in your last post.

 

Namely:  

 

Enter this into the cron line command:

 

*/5 * * * * /usr/local/bin/php /home/YOUR-CPANEL-ACCOUNT-NAME/public_html/index.php cron

 

Replace YOUR-CPANEL-ACCOUNT-NAME with your actual cPanel account name before submitting the command.

 

If it did, I probably wouldn't have seemed like such a block head. 

 

Thank you for your time.

  • 0
Posted

Site5 is asking which version of php is required for the cron job.

 

Really? The PHP you are using... come'on EIG / Site5 can use their brain on that. I feel like I'm your host since they can't help you with the basics and this is a well known provider before they sold out.

 

php-version.png

  • 0
Posted

Site5 is asking which version of php is required for the cron job.

 

It sounds like you're running PHP 5.3 now, so 5.3 or 5.4 would be fine. Blesta 4.0 will have a minimum requirement of PHP 5.4, so you may want to go that route. Also, if this cron task is being created in cPanel, then you can ignore the first bit "*/5 * * * * " if using the simple editor and just set it to run every 5 minutes. You can be sure it's working if the last ran date updates every 5 minutes under Settings > System > Automation.

  • 0
Posted

I believe that I  have Blesta 6.3.  It has not ran. Everything, even the 5 minute items show yesterday when i ran it manually.

 

The latest version of Blesta is 3.6.1 (out just now) I can check what version you're running if you PM me your license key. If it shows it last ran yesterday, then it's not running properly. What are you currently using for your cron command and what does it say you should use under Settings > System > Automation?

  • 0
Posted

Cron command in cpanel

 

/usr/local/php53/bin/php /home/dboutell/public_html/blesta/index.php

I have no idea why I even decided to reply one more time but the correct command was given last night. Scroll up the page and READ it.

 

*/5 * * * * /usr/local/bin/php /home/dboutell/public_html/blesta/index.php cron

  • 0
Posted

"I have no idea why I even decided to reply one more time but the correct command was given last night. Scroll up the page and READ it"

 

I did it last night. It reads:  */5 * * * * /usr/bin/php /home/dboutell/public_html/blesta/index.php cron    and has since last night.

  • 0
Posted

Cron command in cpanel

 

/usr/local/php53/bin/php /home/dboutell/public_html/blesta/index.php

 

You probably want this:

 

 

 

/usr/local/php53/bin/php /home/dboutell/public_html/blesta/index.php cron
  • 0
Posted

uner the question mark is:  It says be sure to point the cron command to where php is installed if it differs from what is shown

Copy this code:

 

*/5 * * * * /usr/local/bin/php /home/dboutell/public_html/blesta/index.php cron

 

Login to cPanel, go to cron jobs and paste the code in the field that says 'Command', then click the button that says 'Add New Cron Job'. It's as simple as that and you don't have to read every little thing and question it.

 

It can not be explained any easier than this and that is all you need to do and all you need to worry about.

  • 0
Posted

Thank you Nelsa for sticking with me on this.

 

Site5 told me this is what they did to make it work. 

 

We manually changed your user's shell from "/usr/local/cpanel/bin/noshell" to "/bin/bash" which fixed your cronjobs. You should be able to enable the user shell by default when creating your accounts from WHM or while creating your account packages.

 

I got that information about 10 p.m. last night

 

 I have been watching Settings --> System --> Automation to determine if the cron job, which Site5 got going about 4:30 yesterday afternoon, was running or not.  From 4:30 to about 11:30 when I went to bed,  Settings --> System --> Automation indicated that the cron job was not working, even when clearing the cache on 3 different browsers, or checking the mailbox where the report is also supposed to go. 

 

Today I was going to ask why Settings --> System --> Automation did not work for showing if the cron was working. But before I asked I decided that I'd better check it. To my surprise, it is working. Now I have to ask why did it start working? 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...