I’m trying to run a crontab and use phplist.sh but I get an error about the config file. Even though the config exists and the shell script is pointing to it.
./phplist.sh processqueue
Cannot find config file
The shell script contains the correct paths for everything in the command.
#!/bin/bash
/usr/bin/php /var/www/html/lists/admin/index.php -c /var/www/html/lists/config/config.php $*
Without any parameters I get the following version numbers.
./phplist.sh
phpList - phpList version 3.6.13 (c) 2000-2023 phpList Ltd, https://www.phplist.com
phpList - Usage: /var/www/html/lists/admin/index.php -p page [other parameters]
phpList - Available options:
initialise
dbcheck
send
processqueue
processbounces
import
upgrade
convertstats
reindex
blacklistemail
systemstats
converttoutf8
initlanguages
cron
updatetlds
export
runcommand
I have checked the paths and the permissions and everything seem to be ok. So I would appreciate any help you can give me to continue to troubleshoot the problem and resolve the issue.
I should also mention that the thing that started me down this road is I want to run the autoresponder plugin preiodically.
/usr/bin/php -q /var/www/html/lists/index.php -m Autoresponder -p process -c /var/www/html/lists/config/config.php
But I get the same error about can’t find config file.