Having difficulties getting cron jobs to work on new server (after migration)


I have two cron jobs, with syntax:

(using it on phplist 3.0.12)

/home/user/public_html/folder/mlist/admin/index.php -pprocessbounces

/home/user/public_html/folder/mlist/admin/index.php -pprocessqueue

The paths are the correct paths to the index.php files
When I log on as admin I see that nothing has been processed yet.

Kindly tell me what I have to add to these commands to make them work ?

You should capture the output of the command to see what phplist thinks is wrong.

Hi Duncan,

So you believe the commands are correct as I copied them ? This normally should work ? Just making sure.

How do I capture the output of the command ?

Are you aware of the online manual? See this section on cron jobs

I had already looked into that as well, but I followed instructions from a different page I think.

I’m trying this now: (On a cPanel server, the CLI build of PHP is /usr/local/bin/php)

-c /home/user/public_html/folder/mlist/config/config.php -q
-pprocessqueue >> /home/user/public_html/cron_log.txt

The error I constantly log now is: ‘Cannot find config file’

Let me correct this myself:

/usr/local/bin/php -q /home/user/public_html/folder/mlist/admin/index.php -c /home/user/public_html/folder/mlist/config/config.php -pprocessqueue >> /home/user/public_html/cron_log.txt

Works well now !!

1 Like