This blog covers steps on how to add a cron job list in Mailwizz. Read on to find out more.
A cron is a task that runs at regular intervals on your linux server. Being a task, it means that at the time it runs, it will do an action and in MailWizz case, this means it will send campaigns, process bounces, do cleanup and so on.
Why do you Need to Add a Cron Job List in Mailwizz?
MailWizz uses cron jobs for the very simple reason that the tasks that it runs, such as sending campaigns, can take a very long time to complete. If you were to run these tasks on a regular web page, then not only would we need to interact with these pages in order to trigger the actions, but it would also mean that we would need to keep those pages open for as long as they execute, and the execution could fail for any one of a dozen different reasons(say script timeout, or memory limit, etc) .
If you add a cron job list in Mailwizz, all of these tasks are done without requiring our participation and are able to run for an endless amount of time without requiring our involvement.
Steps to Add a Cron Job List in Mailwizz
Follow these steps to Add a Cron Job List in Mailwizz
- First of all we need to connect your server console using SSH.
- We need to run the following command.
– crontab -e
- Now we need to add the cron job list :
* * * * /opt/plesk/php/7.4/bin/php -q /var/www/vhosts/domain name/httpdocs/apps/console/console.php send-campaigns >/dev/null 2>&1
*/2 * * * * /opt/plesk/php/7.4/bin/php -q /var/www/vhosts/domain name/httpdocs/apps/console/console.php send-transactional-emails >/dev/null 2>&1
*/10 * * * * /opt/plesk/php/7.4/bin/php -q /var/www/vhosts/domain name/httpdocs/apps/console/console.php bounce-handler >/dev/null 2>&1
*/20 * * * * /opt/plesk/php/7.4/bin/php -q /var/www/vhosts/domain name/httpdocs/apps/console/console.php feedback-loop-handler >/dev/null 2>&1
*/3 * * * * /opt/plesk/php/7.4/bin/php -q /var/www/vhosts/domain name/httpdocs/apps/console/console.php process-delivery-and-bounce-log >/dev/null 2>&1
0 * * * * /opt/plesk/php/7.4/bin/php -q /var/www/vhosts/domain name/httpdocs/apps/console/console.php hourly >/dev/null 2>&1
0 0 * * * /usr/bin/php -q /var/www/vhosts/domain name/httpdocs/apps/console/console.php daily >/dev/null 2>&1
- After that save this cron job list.
By pressing the Esc key then:wq! Enter
Conclusion
We have tried simplifying the process to Add a Cron Job List in Mailwizz. Follow these steps and if you get stuck somewhere, feel free to contact us We have drafted many informative blogs in our blog section. Visit them now.
FAQs
What Does a Cron Job Do?
To have a command or script executed on your server automatically at a set time and date, you can use the cron Linux programme. It’s the scheduled task itself, and it’s called a cron job. Automating routine work with cron jobs can save a lot of time and effort.
Exactly How Often is a Cron Job Allowed to Run?
Once Every minute.
Are Cron Jobs Executed in the Background?
Cron is a task scheduling utility found in Unix-like operating systems. The crond daemon works in the background and enables cron functionality.