Hi there, before I had a topic about ssl renewal, cron job is not working and after that I’m done, the renewal is fine, until now
Old topic: Cron job for SSL renew is not working
Now, my sites
site 1: i4energy.org, 6 days left, I have to run manually, now 89 day left.
site 2: reviewsach.net, 22 days left, I’m waiting for any idea how to fix
both site, i create crontab, when I run crontab -l, it will be shown like this
Edit this file to introduce tasks to be run by cron.
Each task to run has to be defined through a single line
indicating with different fields when the task will be run
and what command to run for the task
To define the time you can provide concrete values for
minute (m), hour (h), day of month (dom), month (mon),
and day of week (dow) or use ‘*’ in these fields (for ‘any’).#
Notice that tasks will be started based on the cron’s system
daemon’s notion of time and timezones.
Output of the crontab jobs (including errors) is sent through
email to the user the crontab file belongs to (unless redirected).
For example, you can run a backup of all your user accounts
at 5 a.m every week with:
0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
For more information see the manual pages of crontab(5) and cron(8)
m h dom mon dow command
SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
0 0 * * * /usr/local/bin/ee site ssl-renew --all
To be sure, I run command “ee cron list --all”, it will be shown below
----±-------------±----------------------------------------±---------------+
| id | site_url | command | schedule |
±—±-------------±----------------------------------------±---------------+
| 1 | i4energy.org | sh -c ‘wp cron event run --due-now’ | 0 4/10 * * * * |
| 2 | host | sh -c ‘/usr/local/bin/ee site ssl-renew | @daily |
| | | --all’ | |
±—±-------------±----------------------------------------±---------------+
Like I said on the old topic, the cron job, it works before
But I don’t know why this time, it doesn’t
Normal, when the Current certificate will expire in less than 25 days, the cron job will run. But now, the site reviewsach.net has only 22 day left. So, any idea about this SSL problem now?