[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

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

Once you've installed phpList... ask questions here!
Forum rules
Please help the volunteers to help you by supplying the version of phpList you are using, browser & version and if possible, a link to your phpList installation.

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

Postby guest » 2:39pm, Fri 03 Apr, 2015

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.
guest, working from home
http://csl.ink/cVj
guest
phpLister
 
Posts: 10
Joined: 5:07am, Sun 15 May, 2011

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

Postby danwaterloo » 2:50pm, Fri 03 Apr, 2015

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?
danwaterloo
PL Master
 
Posts: 276
Joined: 3:51am, Wed 30 Oct, 2013
Location: http://www.phplistsupport.com

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

Postby guest » 3:37pm, Fri 03 Apr, 2015

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.
guest, working from home
http://csl.ink/cVj
guest
phpLister
 
Posts: 10
Joined: 5:07am, Sun 15 May, 2011

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

Postby danwaterloo » 3:56pm, Fri 03 Apr, 2015

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
danwaterloo
PL Master
 
Posts: 276
Joined: 3:51am, Wed 30 Oct, 2013
Location: http://www.phplistsupport.com

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

Postby guest » 4:01pm, Fri 03 Apr, 2015

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.
guest, working from home
http://csl.ink/cVj
guest
phpLister
 
Posts: 10
Joined: 5:07am, Sun 15 May, 2011

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

Postby danwaterloo » 6:02pm, Fri 03 Apr, 2015

danwaterloo
PL Master
 
Posts: 276
Joined: 3:51am, Wed 30 Oct, 2013
Location: http://www.phplistsupport.com

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

Postby guest » 6:18pm, Fri 03 Apr, 2015

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.
guest, working from home
http://csl.ink/cVj
guest
phpLister
 
Posts: 10
Joined: 5:07am, Sun 15 May, 2011

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

Postby danwaterloo » 7:21pm, Fri 03 Apr, 2015

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
Last edited by danwaterloo on 1:07am, Mon 06 Apr, 2015, edited 1 time in total.
danwaterloo
PL Master
 
Posts: 276
Joined: 3:51am, Wed 30 Oct, 2013
Location: http://www.phplistsupport.com

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

Postby guest » 9:26pm, Fri 03 Apr, 2015

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.
guest, working from home
http://csl.ink/cVj
guest
phpLister
 
Posts: 10
Joined: 5:07am, Sun 15 May, 2011

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

Postby MarkA. » 12:13am, Mon 06 Apr, 2015

A. Mark Argentino, P.Eng., Broker
http://www.mississauga4sale.com
MarkA.
PL Geek
 
Posts: 80
Joined: 1:36pm, Thu 17 Feb, 2005
Location: Mississauga, Ontario, Canada

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

Postby danwaterloo » 1:03am, Mon 06 Apr, 2015

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).
danwaterloo
PL Master
 
Posts: 276
Joined: 3:51am, Wed 30 Oct, 2013
Location: http://www.phplistsupport.com

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

Postby MarkA. » 1:33am, Mon 06 Apr, 2015

A. Mark Argentino, P.Eng., Broker
http://www.mississauga4sale.com
MarkA.
PL Geek
 
Posts: 80
Joined: 1:36pm, Thu 17 Feb, 2005
Location: Mississauga, Ontario, Canada

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

Postby danwaterloo » 1:37am, Mon 06 Apr, 2015

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....
danwaterloo
PL Master
 
Posts: 276
Joined: 3:51am, Wed 30 Oct, 2013
Location: http://www.phplistsupport.com

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

Postby MarkA. » 2:18am, Mon 06 Apr, 2015

A. Mark Argentino, P.Eng., Broker
http://www.mississauga4sale.com
MarkA.
PL Geek
 
Posts: 80
Joined: 1:36pm, Thu 17 Feb, 2005
Location: Mississauga, Ontario, Canada

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

Postby guest » 5:08am, Mon 06 Apr, 2015

guest, working from home
http://csl.ink/cVj
guest
phpLister
 
Posts: 10
Joined: 5:07am, Sun 15 May, 2011

Next

Return to Questions and Problems after Installing

Who is online

Users browsing this forum: No registered users and 0 guests