- Joined
- Sep 12, 2016
- Messages
- 28
- Likes
- 4
- Degree
- 0
Hi, I'm trying to install a cart recovery plugin on my woocommerce site
For that, I have to set up a server cron( for it to execute the task(send recovery mail) without the need for someone to visit the site)
Now, in the doc from the plugin it says how to set it up using a cpanel like hostgator; my site doesn't have one, it on a linode VPS server using NGINX, PHP7, and Ubuntu 16.04 LTS
The plugins guide for setting it up says:
So I've done 1 and 2 and can't get it to work, there has to still be someone on the site for the cron job to execute and the mails are not being sent until that happens.
Yes, the step #2 using crontab -e on my server and adding this line(i have https):
*/2 * * * * wget -q -O - https://myrealsite.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
For it to execute the server cron every 2 minutes as I also put in my plugin settings, so maybe there is something I am missing to set up or did wrong - it is not a cpanel on hostgator- (asked the plugin developer and said it should work if you follow the guide, so ask my host) I don't have a .htaccess so can't check step #3
Any help from you; server lords, cron job slayers will be appreciated!
Thanks
For that, I have to set up a server cron( for it to execute the task(send recovery mail) without the need for someone to visit the site)
Now, in the doc from the plugin it says how to set it up using a cpanel like hostgator; my site doesn't have one, it on a linode VPS server using NGINX, PHP7, and Ubuntu 16.04 LTS
The plugins guide for setting it up says:
How to set up a Server Cron using CPanel such as HostGator
1. disable wp-cron by adding this line define('DISABLE_WP_CRON', true); in wp-config.php
2.Add New Cron Job:
wget -q -O - http://yourwebsite.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
3.Please Note: If you use some security plugins, those plugins might restrict this wget command by writing mod_rewrite rule in .htaccess file. Like this RewriteCond %{HTTP_USER_AGENT} ^Wget [NC,OR] Remove this line in order to make server cron work. Please keep in mind the security implications of this change.
So I've done 1 and 2 and can't get it to work, there has to still be someone on the site for the cron job to execute and the mails are not being sent until that happens.
Yes, the step #2 using crontab -e on my server and adding this line(i have https):
*/2 * * * * wget -q -O - https://myrealsite.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
For it to execute the server cron every 2 minutes as I also put in my plugin settings, so maybe there is something I am missing to set up or did wrong - it is not a cpanel on hostgator- (asked the plugin developer and said it should work if you follow the guide, so ask my host) I don't have a .htaccess so can't check step #3
Any help from you; server lords, cron job slayers will be appreciated!
Thanks