[RESOLVED] Background Processing NOT Working!
Hello, everybody I wanted to ask why my background processing is not working, every time I upload a video, it says the thank you for uploading thing, then after wards nothing happens, and I check my debug.txt and it seems to be calling the wrong cron job command this command below is the one that appears on my debug. Anyone know how to fix this? Thanks in advance.
Code:
2007-11-14 22:30:46 Upload Finished
2007-11-14 22:30:46 Running: /usr/bin/php -q /home/xxxxx/public_html/convert.php 59 > /dev/null &
Re: Background Processing NOT Working!
is your cron set to run convert.php or cron.php?....it should be cron.php
Re: Background Processing NOT Working!
It only work if your php support CLI.
/usr/bin/php -q /home/xxxxx/public_html/convert.php 59
On some servers CLI version of php will be in different folders, so you need to put correct path to PHP CLI in admin area.
Here is result on cpanel server
Code:
# /usr/local/bin/php -v
PHP 5.2.5 (cli) (built: Nov 14 2007 18:35:55)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies
# /usr/bin/php -v
PHP 5.2.5 (cgi-fcgi) (built: Nov 14 2007 18:40:00)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies
#
In the case, you need to use /usr/local/bin/php which is CLI
Re: Background Processing NOT Working!
Quote:
Originally Posted by leki
is your cron set to run convert.php or cron.php?....it should be cron.php
Yeah it is set to cron.php
Re: Background Processing NOT Working!
Quote:
Originally Posted by admin
It only work if your php support CLI.
/usr/bin/php -q /home/xxxxx/public_html/convert.php 59
On some servers CLI version of php will be in different folders, so you need to put correct path to PHP CLI in admin area.
Here is result on cpanel server
Code:
# /usr/local/bin/php -v
PHP 5.2.5 (cli) (built: Nov 14 2007 18:35:55)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies
# /usr/bin/php -v
PHP 5.2.5 (cgi-fcgi) (built: Nov 14 2007 18:40:00)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies
#
In the case, you need to use /usr/local/bin/php which is CLI
I'll try that.
Re: Background Processing NOT Working!
I changed it and it's still the same command showing I don't know what's wrong.
Re: Background Processing NOT Working!
Re: Background Processing NOT Working!
Admin please help I really want to use background processing. Thanks
Re: Background Processing NOT Working!
I had also problems with the Zend optimzer which worked only over the apache webserver somehow, so I used this command in my cron table which it runs every 2 minutes with batch processing enabled:
Without htaccess protection:
With htaccess protection: