Once you've set up the cron and it is working, you can tell phpList and some links will disappear. Your cron entries should look like this: 0-59/5 * * * * /usr/local/bin/phplist -pprocessqueue > /dev/null 2>&1Ġ 3 * * * /usr/local/bin/phplist -pprocessbounces > /dev/null 2>&1 Step 3: tell phpList On CentOS 7 you need to specify the full path to the bash script. You can always check the output by running the above commands manually from the shell-prompt without > /dev/null 2>&1 The example also discards any output, which you will want to do. That will be sufficient for most systems. The above example will process the queue once every 5 minutes and process the bounces once a day. 0-59/5 * * * * phplist -pprocessqueue > /dev/null 2>&1Ġ 3 * * * phplist -pprocessbounces > /dev/null 2>&1 ![]() On Linux, you type "crontab -e" in order to edit your cron entries. Once you have the commandline script, you can set up the crons with your favourite cron editor. chmod 755 /usr/local/bin/phplistįrom then on, you can process phpList on commandline, for example with phplist -pprocessqueue Step 2: set up the crons in /usr/local/bin and make it executable. Once you have constructed your commandline file, place it somewhere in your path, e.g. home/website/public_html/lists/config/config.php -> the path to your config file home/website/public_html/lists/admin/index.php -> the path to your phpList installation, pointing to the index.php file in the admin directory of phpList Debian based systems (including Ubuntu) should install the "php-cli" package. usr/bin/php -> the path to the PHP-cli commandline interpreter, this can vary per system. #!/bin/bash -> the shell that you want to use You will need to change the above content to fit your system: usr/bin/php /home/website/public_html/lists/admin/index.php -c /home/website/public_html/lists/config/config.php $* Let's call the commandline script "phplist" and edit it with your favourite text editor: $ nano phplistĪnd type (or copy-paste) the content (note the line breaks the following command should be pasted literally as two lines): #!/bin/bash There is an example in the "bin" directory in the phpList archive file. The easiest way to set up the cron is to set up a commandline script that will handle all phpList commands. There are some "hacks" to make it work with other versions of PHP, but this is non-intentional functionality and therefore not described here. This may not be available on all systems. The method described in this chapter requires the CLI version of PHP. Sending a campaign will become as easy as sending a normal email from your desktop. Once you set up the cron, you will not have to do these in your browser, but they will happen automatically. These are processing the queue and processing the bounces. ![]() When you set up the cron, two of the most time consuming parts of phpList will become automated. On other Unix systems the set up will be similar. This chapter will describe how to set this up on Linux. For more information check the Wikipedia page. If you have a registered account at the phpList Hosted service, please contact What is cronĬron is a time based task scheduler on Unix-like operating systems. ![]() This page concerns phpList self-hosted users only.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |