[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4758: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4760: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4761: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
phplist forums • View topic - PHPList Version v3.0.12 - Cron Job Not Working. HELP PLEASE
Page 1 of 2

PHPList Version v3.0.12 - Cron Job Not Working. HELP PLEASE

PostPosted: 2:39pm, Fri 03 Apr, 2015
by guest
Hi,

I've been reading all around the forums and have tried every suggestions on setting up a cron job with cPanel, but not even a single cron command is working.

I am using the latest version -v3.0.12. Now I can't figure out what is missing since I've tried everything being suggested to put in the command line for the cron job to run.

I am badly needing your help on this matter. Can you paste here the exact cron command line for the email queue to run using cron job?

I would appreciate your help.

Thanks.

Re: PHPList Version v3.0.12 - Cron Job Not Working. HELP PLE

PostPosted: 2:50pm, Fri 03 Apr, 2015
by danwaterloo
It all depends on your hosting provider, the type of account that you have (what it's features are), and what version/interfaces(php, php-cli, or php-cgi) of php are installed.

Can you provide any info on the above?

Re: PHPList Version v3.0.12 - Cron Job Not Working. HELP PLE

PostPosted: 3:37pm, Fri 03 Apr, 2015
by guest
Hi danwaterloo,

Thank you for your comment. How would I know if it's php-cli or php-cgi?

I'm on a linux server:
Apache version 2.2.27
PHP version 5.3.27

Thanks.

Re: PHPList Version v3.0.12 - Cron Job Not Working. HELP PLE

PostPosted: 3:56pm, Fri 03 Apr, 2015
by danwaterloo
is it your own server? can you get to the command line?

if so, php -v will provide the results. if you paste it, I can provide (hopefully) something that will work

also what is the result of :

which php

Re: PHPList Version v3.0.12 - Cron Job Not Working. HELP PLE

PostPosted: 4:01pm, Fri 03 Apr, 2015
by guest
Hi,

Yes, it's my own server. Here are the results:

PHP 5.3.27 (cli) (built: Jul 13 2014 03:35:42)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
with XCache v3.1.0, Copyright (c) 2005-2013, by mOo
with the ionCube PHP Loader v4.6.1, Copyright (c) 2002-2014, by ionCube Ltd., and
with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
with XCache Cacher v3.1.0, Copyright (c) 2005-2013, by mOo

Hope to get it working as I've spent almost a week to get my PHPList running the cron but to no avail.

Thanks.

Re: PHPList Version v3.0.12 - Cron Job Not Working. HELP PLE

PostPosted: 6:02pm, Fri 03 Apr, 2015
by danwaterloo

Re: PHPList Version v3.0.12 - Cron Job Not Working. HELP PLE

PostPosted: 6:18pm, Fri 03 Apr, 2015
by guest
Hi,

Thank you for getting back. Here's my which php:
[root] # which php
/usr/local/bin/php

Now I've tried this command line:
/usr/local/bin/php -q /var/www/html/lists/admin/index.php -p processqueue -c /var/www/html/lists/config/config.php

Still not working...

I'm on Centos 5 also. But my phpList is installed on another domain (not the root). Can you guide on what command should be executed?

Thanks.

Re: PHPList Version v3.0.12 - Cron Job Not Working. HELP PLE

PostPosted: 7:21pm, Fri 03 Apr, 2015
by danwaterloo
your almost there... match the red part of below to whatever the exact path is on your machine...

/usr/local/bin/php -q /var/www/html/lists/admin/index.php -p processqueue -c /var/www/html/lists/config/config.php

Re: PHPList Version v3.0.12 - Cron Job Not Working. HELP PLE

PostPosted: 9:26pm, Fri 03 Apr, 2015
by guest
Hi Dan,

Thank you for getting back.

As per your instruction, I've tried this line:
/usr/local/bin/php -q /var/home/*cpaneluser*/public_html//lists/admin/index.php -p processqueue -c /var/home/*cpaneluser*/public_html//lists/config/config.php

Is that how it looks like or this one:
/usr/local/bin/php -q /var/home/*cpaneluser*/public_html//lists/admin/index.php -p processqueue -c /home/*cpaneluser*/public_html//lists/config/config.php

Still did not work.

My hosting provider told me that this one is the correct path:
php /home/cpaneluser/public_html/lists/admin/index.php -p processqueue -c /home/cpaneluser/public_html/lists/config/config.php

I will try this and will get back then.

Thanks.

Re: PHPList Version v3.0.12 - Cron Job Not Working. HELP PLE

PostPosted: 12:13am, Mon 06 Apr, 2015
by MarkA.

Re: PHPList Version v3.0.12 - Cron Job Not Working. HELP PLE

PostPosted: 1:03am, Mon 06 Apr, 2015
by danwaterloo
Here's an example of what works for the command line on my machine...

/usr/bin/php -q /var/www/html/lists/admin/index.php -p processqueue -c /var/www/html/lists/config/config.php

I don't use curl. You might want to try php, or php-cli The curl command receives a cookie and sessionid, and so that might be the cause of your problem.

make sure you adjust the full path to match exactly what your path is on your machine. depending on your machine, you might need to use the php-cli command instead of php.
set the cron period to every minute, and have it send the email to you. it will tell you what's wrong. once it's working, you can stop sending emails to yourself via the cron, and adjust the timing on the cron to meet your needs... (i.e. every 5 or 10 minutes for processqueue, and about once or twice a day for processbounces).

Re: PHPList Version v3.0.12 - Cron Job Not Working. HELP PLE

PostPosted: 1:33am, Mon 06 Apr, 2015
by MarkA.

Re: PHPList Version v3.0.12 - Cron Job Not Working. HELP PLE

PostPosted: 1:37am, Mon 06 Apr, 2015
by danwaterloo
no, the path is going to be the file system path on your server... starting with the / directory.
it won't have the http: etc....

Re: PHPList Version v3.0.12 - Cron Job Not Working. HELP PLE

PostPosted: 2:18am, Mon 06 Apr, 2015
by MarkA.

Re: PHPList Version v3.0.12 - Cron Job Not Working. HELP PLE

PostPosted: 5:08am, Mon 06 Apr, 2015
by guest