Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
litespeed_wiki:cpanel:cli-lscwp-management [2018/06/12 21:19] Michael Alegre [Setup CronJob in cPanel] |
litespeed_wiki:cpanel:cli-lscwp-management [2018/06/12 21:31] Michael Alegre [Scan And Enable Using A CronJob] |
||
---|---|---|---|
Line 71: | Line 71: | ||
</code> | </code> | ||
- | ====== Scan And Enable Using A CronJob ====== | + | ===== Scan And Enable Using A CronJob ===== |
If you do not want to continue manually running the CLI script you can setup a cronjob to run the script at fixed intervals instead. | If you do not want to continue manually running the CLI script you can setup a cronjob to run the script at fixed intervals instead. | ||
- | First open the cronjobs from ssh root with: | + | First, as root, open crontab cronjobs with command |
<code> crontab -e </code> | <code> crontab -e </code> | ||
- | After that, you can add a line in the usual cronjob format, similar to the following: | + | After that, you can add a line, in the usual cronjob format, similar to the following: |
<code> 00 03 * * * /usr/local/lsws/admin/misc/lscmctl scan -e </code> | <code> 00 03 * * * /usr/local/lsws/admin/misc/lscmctl scan -e </code> | ||
This command will run the CLI script daily at 3am, re-discovering all WordPress installations and mass enabling LSCWP on any unflagged installations. | This command will run the CLI script daily at 3am, re-discovering all WordPress installations and mass enabling LSCWP on any unflagged installations. |