Once again, found that the phplist bounce processing had stopped. Reason was probably an aborted bounce process run, which I'd started from the web-based link. When trying to run from commandline now, it said
A process for this page is already running and it was still alive 305 seconds ago
Running commandline, quitting. We'll find out what to do in the next run.
and refused to run from commandline. Went back to the web-based link from the admin section, this time it said
A process for this page is already running and it was still alive 461 seconds ago
Sleeping for 20 seconds, aborting will quit
but after 20 sec, started processing afresh. But this is somewhat risky when running from a remote machine, because the connection may break during the hour or so taken for processing. The best thing, then, would be to either
- run the bounce processing as a cron job (like we do), or
- when troubleshooting, run from inside a screen console, detach the screen when not actively monitoring it, or
- run the web-based link from a local X console, or
- run the web-based link from a VNC X console running on localhost.
How do you run this script from the command line? I have access to the command line, but I don't know what command to enter to do this. Can you help?
ReplyDeleteThe commandline stuff is explained at
ReplyDeletehttp://docs.phplist.com/PhpInterfacesInfo
- as it says, what you can do with the command-line differs with the version of php installed on your server.
If you have php-cli, you can run the command-line scripts as given in the page
http://docs.phplist.com/CommandLineScriptInfo
Once you get the command-line script working, you still need to do some more to get it working in a cron job, as detailed at
http://hnsws.blogspot.com/2006/05/pbs-contrib-making-processqueue-cron.html
All the best.