It seems like it's working now for me after making this change:
if (php_sapi_name() == "cli" || php_sapi_name() == "cgi") {
But yikes, that was more work to find the solution than I had hoped. I wanted to put in both the cgi & cli as when I upgrade this server to FC4 I don't want to have this script broken again.
One of my concerns though is that phplist did used to send out mail in larger batches than it does now.
From either the command line or through the web interface I'm getting reports of it sending out messages in batches of 7-25 for each shot.
-sh-2.05b$ ./phplist -pprocessqueue
Content-type: text/html
X-Powered-By: PHP/4.3.10
Set-Cookie: PHPSESSID=SNIP; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
PHPlist version 2.10.1 (c) 2000-2005 Tincan Ltd,
http://www.phplist.com
Started
In safe mode, batches are set to a maximum of 100
Sending in batches of 100 emails
This batch will be 76 emails, because in the last 120 seconds 24 emails were sent
Processing has started, 2 message(s) to process.
Processing message 657
Looking for users
Found them: 71 to process
Script stage: 5
21 messages sent in 89.63 seconds (843 msgs/hr)
Finished this run
Reload required
I know that in earlier installs this went faster. Perhaps it's the cusomtization that the client is adding to the emails, or the speed of the server.
I also thought that running php from the command line skipped safe mode restrictions.
Perhaps not, but it would make sense.... Just couldn't find the docs.
Mike