How to configure the server to run your message queue: Difference between revisions

From HAA Best Practices Wiki
Jump to navigationJump to search
(Created page with 'You configure your server to run the PHPList message queue by setting up (or editing) a "Cron job" on the server. To do this you need to sign in to CPanel on your server. (Your…')
 
No edit summary
Line 1: Line 1:
You configure your server to run the PHPList message queue by setting up (or editing) a "Cron job" on the server.  To do this you need to sign in to CPanel on your server.  (Your were given instructions on how to do this when your system was first set up.  If you would like assistance check with [mailto:bill@spillthebeans.org Bill Bean].
You configure your server to run the PHPList message queue by setting up (or editing) a "Cron job" on the server.  To do this you need to sign in to CPanel on your server.  (Your were given instructions on how to do this when your system was first set up.  If you would like assistance check with [mailto:bill@spillthebeans.org Bill Bean].


Once on CPanel, go to "Cron jobs" on the "Advanced" panel at the bottom of the page.  You are given a choice between "Standard" and "Advanced".  I recommend standard for most purposes.  On the Cron Manager page, you will first see an email address where the notifications that the job has run are sent.  Then you will see an entry with a "Command to run" field that looks like this:


<PRE?
/usr/local/bin/php -q /home/hr65/public_html/lists/admin/index.php -p processqueue;
</PRE>
You want to change the times associated with that command - ''but not the command itself.''
To set the queue to run once an hour, for example, chose "every hour" in the hours box, "every day" in the days box, "every month" in the months box and "every week day" in the weekdays box.  Set the minutes box to the minute of the hour when you would like the job to run.  (I tend to set the minute to an odd value on the assumption that other people may be lazy enough to run on the hour and we'll get more processing time if we don't do that.)  Be careful not to use any of the "Every minute, Every Other Minute..." settings.  All of them violate the terms of service on the server.
When you have made your changes, click the "Save Crontab" button.


[[Bulk_email_How-To%27s|Return to Bulk Email How-to's]]
[[Bulk_email_How-To%27s|Return to Bulk Email How-to's]]

Revision as of 22:34, 28 January 2010

You configure your server to run the PHPList message queue by setting up (or editing) a "Cron job" on the server. To do this you need to sign in to CPanel on your server. (Your were given instructions on how to do this when your system was first set up. If you would like assistance check with Bill Bean.

Once on CPanel, go to "Cron jobs" on the "Advanced" panel at the bottom of the page. You are given a choice between "Standard" and "Advanced". I recommend standard for most purposes. On the Cron Manager page, you will first see an email address where the notifications that the job has run are sent. Then you will see an entry with a "Command to run" field that looks like this:

<PRE? /usr/local/bin/php -q /home/hr65/public_html/lists/admin/index.php -p processqueue;

You want to change the times associated with that command - but not the command itself.

To set the queue to run once an hour, for example, chose "every hour" in the hours box, "every day" in the days box, "every month" in the months box and "every week day" in the weekdays box. Set the minutes box to the minute of the hour when you would like the job to run. (I tend to set the minute to an odd value on the assumption that other people may be lazy enough to run on the hour and we'll get more processing time if we don't do that.) Be careful not to use any of the "Every minute, Every Other Minute..." settings. All of them violate the terms of service on the server.

When you have made your changes, click the "Save Crontab" button.

Return to Bulk Email How-to's