[Resolved] CronJob doesn't work

Hello,
I set phplist for using cron like in documentation but when I check phplist log cron I find:
/bin/sh: 1: phplist: not found

For more informations, I follow that guide >> https://resources.phplist.com/system/commandline
I’m using PHP 5.4.45-0+deb7u12 (cli)
My cron is like that >>
#!/bin/bash
/usr/bin/php /var/www/webserver.net/newsletter/lists/admin/index.php -c /var/www/webserver.net/newsletter/lists/config/config.php $*

Any idea where is the problem ?

1 Like

I find the solution if some one have this problem, you need to indicate in crontab the full path of your bash script:
*/5 * * * * /usr/local/bin/phplist -pprocessqueue >> /var/log/processqueue.log 2>&1
NOT Just like this : */5 * * * * phplist -pprocessqueue >> /var/log/processqueue.log 2>&1

1 Like