CRON. How to do it right? Path and run period

I use virtual hosting. FTP and “cut” Cpanel

In the FTP i see path to config.php as /

what command for cron is the correct? -m Autoresponder -p process -c /site.coml/htdocs/lists/config/config.php -m Autoresponder -p process -c

I need send an autoresponders: first - immediately. Others with 24h period each.

With what period need to run cron job?

@AlexT Neither of your examples are correct. You have to use the file system paths on the web server for php and also the config file. If you don’t know what they are then you will need to ask your hosting company.

You now do not need to run the autoresponder process page, but do need to run the phplist process queue page regularly. Upgrade the autoresponder plugin to get the new functionality.

See the manual for an explanation of how to configure phplist to use a cron job for processing the queue

Possibly your hosting account might not provide the cron job support that phplist needs.

It is not possible for the autoresponder to be sent immediately after a new subscription. The campaign will be sent on the next run of process queue, so you need to decide how long an interval you want, and that will influence the frequency of running process queue.

Thank you!
Step by step an understanding how it work comes to my head. Sorry for my noobing )

  1. I use ver. 2.3.1+20160304
  2. Cron job frequency - all clear
  3. Autoresponder process page and a phplist process queue page - clear so-so, say as “in theory”

What I understood:
The string:
php /home/me/www/lists/admin/index.php -m Autoresponder -p process -c /home/me/www/lists/config/config.php
from the have some wrong parametres for ver. 2.3.1+20160304

The only one way:
Need create an executable file (phplist) with content and right paths

/usr/bin/php /home/website/public_html/lists/admin/index.php -c /home/website/public_html/lists/config/config.php $*

Then need execute cron job with this one.

If i understood this correctly - I have a normal vps server for this.

But if I use a virtual hosting with only a such “cron” options:

A cron job is not possible for autoresponder in this case ?

Sorry for my gtranslate english.

@AlexT If that is the only option for cron jobs in your virtual hosting account then you will need to try remote processing, as explained here[]=secret
That uses a url to run phplist, so can be run from your virtual hosting.

1 Like