Hi guys,
just installed phpList on one linux server few days ago and everything seems to work fine untill now.
At the moment cron is not able to handle -pprocessqueue (and -pprocessbounces).
To test it, I run phplist command:
sudo ./phplist.sh -pprocessqueue
and I get this error:
./phplist.sh: line 3: /var/ssl/lists/config/config.php: Permission denied
I chown root:root or www-data:www-data the file config.php but I still get the same error.
File permission is 644
You need to figure out what apache runs as, and ‘who’ is running the command line. add a line in the config.php so that it is allowed to submit commands from the command line:
# if you use commandline, you will need to identify the users who are allowed to run
# the script. See README.commandline for more info
$commandline_users = array("admin");
# or you can use the following to disable the check (take off the # in front of the line)
In the array(); put the user that is executing the command on the command line.
I just updated the info in the gray box… there should only be one $commandline_users line.
In my example, the user “admin” is the only person that can run scripts from the command line.
You need to change the word “admin” to the user(s) that will be running the cron script from the command line. You will need to figure out what usernames they are.