WebEngine's 6th Anniversary

On December 19th, 2018 we will be celebrating 6 years of WebEngine CMS!
The event is here!

[Webmin] Setup WebEngine Cron Job

Lautaro

Administrator
Developer
#1
Hi,

Since WebEngine 1.0.4 has its own cron job system, you will only have to setup one cron job and the web will take care of the rest. Just follow the above steps in order to create a cron job using Webmin.

Step 1:
If you are not sure what's the path to your WebEngine powered website files, then go to Others > File Manager. Use the file manager to navigate through CentOS's directories and find your website's path to the cron.php file inside the "cron" folder.

By default, your websites should be stored in: /var/www/html/

Image:
cron1.jpg








Step 2:
Once you have the full path to the cron.php file, go to System > Scheduled Cron Jobs, then click "Create a new scheduled cron job."

Image:
cron2.jpg








Step 3:
Now, this is the part where you get to setup the cron job.

Set the "Execute cron job as" setting to apache.
Set the "Command" setting to: /usr/bin/php -q /var/www/html/......../cron/cron.php

Make sure you edit it with your own path!

And finally, check the radio button "Times and dates selected below ..". This will make the cron job to run every single minute of every hour, allowing WebEngine to manage its own cron jobs.

Image:
cron3.jpg

When you finished simply click on the "Create" button and you will be done!

Regards,
Lautaro.
 

Netzo

Member
Premium Member
#6
However there is Scheduled Task Manager ;) Lautaro has provided the links.

Thank-you Lautaro :)

I've tried the crontab, is there something wrong with my line?
Code:
1 * * * * root /var/www/html/massacremu.net/cron/cron.php
''etc/crontab''
Because it is not running the cron for webengine :)
 
Last edited:

Lautaro

Administrator
Developer
#8
can any one do proper guide for windows please , so dam confuse unlike mucore
Here's a guide with images:
http://www.sevenforums.com/tutorials/12444-task-scheduler-create-new-task.html

It's extremely easy, just follow the steps of the link above and then customize the scheduled task to run every 5 minutes. All the options and buttons in the task scheduled are very easy to use and self-explanatory.

so dam confuse unlike mucore
That's because MuCore doesn't have a cron system like WebEngine's. Mucore runs the queries when a user visits your site, while WebEngine runs the crons in a command window on the server-side. That way the web will not get slower for any user while running a cron.
 

Netzo

Member
Premium Member
#9
However there is Scheduled Task Manager ;) Lautaro has provided the links.

Thank-you Lautaro :)

I've tried the crontab, is there something wrong with my line?
Code:
1 * * * * root /var/www/html/massacremu.net/cron/cron.php
''etc/crontab''
Because it is not running the cron for webengine :)
Please some explanation for linux, Lautaro :) I have no idea why it's not working :Ss
 

Lautaro

Administrator
Developer
#11
fuck it i gave up, nothing work.
On windows you don't have to run cron.php, but cron.bat which is included in every release, in the "extra" folder.

You'll have to edit with notepad the cron.bat file and type the correct full path to your cron.php file. Then you can add the scheduled task so it runs the cron.bat every 5 minutes.
 

Netzo

Member
Premium Member
#12
On windows you don't have to run cron.php, but cron.bat which is included in every release, in the "extra" folder.

You'll have to edit with notepad the cron.bat file and type the correct full path to your cron.php file. Then you can add the scheduled task so it runs the cron.bat every 5 minutes.
Hey Lautaro, am I being ignored here? ;s
 

Lautaro

Administrator
Developer
#13
Hey Lautaro, am I being ignored here? ;s
No mate, I just haven't had much time lately to check the issue your having. If you're not a very experienced user with linux systems you should use a panel like cPanel or Webmin to make things easier.
 

Netzo

Member
Premium Member
#14
No mate, I just haven't had much time lately to check the issue your having. If you're not a very experienced user with linux systems you should use a panel like cPanel or Webmin to make things easier.
You were always a busy man, I understand :) I've removed Webmin since I got hacked through it but I will try cPanel, thanks :)
 
#15
In 1.0.9 package, there is absolutely no cron.bat among the files, there is no Extra folder either. I've used cron.bat from version 1.0.8 but it is hardly viable. I set my task scheduler to do a task running the cron.bat but it runs it once and then when it tries running cron.bat after like 10 minutes, the cmd window appears with all the content of cron.bat and it basically gets stuck and the cron jobs do not update. Am I missing something here?
 

Lautaro

Administrator
Developer
#16
In 1.0.9 package, there is absolutely no cron.bat among the files, there is no Extra folder either. I've used cron.bat from version 1.0.8 but it is hardly viable. I set my task scheduler to do a task running the cron.bat but it runs it once and then when it tries running cron.bat after like 10 minutes, the cmd window appears with all the content of cron.bat and it basically gets stuck and the cron jobs do not update. Am I missing something here?
I develop and test WebEngine on a linux environment only, so since the 1.0.9 update I dropped all support for windows platform. That being said, it's not impossible to setup the cron system on windows, just google something like "xampp php cron setup windows" or you can use something like www.cron-job.org to run the cron jobs for you; you'd only need to create a file in WebEngine's main directory and run the cron job from there.
 
Top