automatic cron job error message
so I multiimported several files, i run mydomain.com/cron.php manually, and it converts the files just fine, but whe i set up a 10 min cron job i get the following error message:
Code:
PHP Warning: PHP Startup: Unable to load dynamic library './/usr/local/src/ffmpeg-php-0.5.0/modules/ffmpeg.so' - .//usr/local/src/ffmpeg-php-0.5.0/modules/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0
cronjob started
STARTING VIDEO CONVERSION (process_queue.id = 151)</p><hr>
File: /home/to/mysite/public_html//video/video/cam.flv</p>
####################################################</p>
INSERT INTO video SET
UID='4',
seo_name='temp-2',
title='temp',
description='temp',
keyword='temp',
channel='0|1|0',
vdoname='cam.flv',
flvdoname='12162847212086037608.flv',
addtime='1216284721',
adddate='2008-07-17',
type='private',
active='0',
approve='1'</p>
####################################################</p>
Video id: 111</p>
Find video duration - START</p>
Fatal error: Class 'ffmpeg_movie' not found in /home/to/mysite/public_html/video/include/classes/class.video_duration.php on line 54
my question is, how come it works fine mannually, but cannot open the extension when setup in a cron job?
Re: automatic cron job error message
Re: automatic cron job error message
Something is not right in path to the file for the cron job? Did you notice this in the code? Is this correct?
Code:
cronjob started
STARTING VIDEO CONVERSION (process_queue.id = 151)</p><hr>
File: /home/to/mysite/public_html//video/video/cam.flv
and
Code:
/home/to/mysite/public_html/video/include/classes/class.video_duration.php on line 54
I have cron jobs set like this:
Code:
/usr/bin/php -q /home/******/public_html/******/cron.php > /dev/null &
Where ****** is my user name and the directory that the video site is located.
Re: automatic cron job error message
that's only becasue i use a dedicated box
if the path were wrong, then it owudlnt find the cron.php file. the porblem is that after it finds the corn.php file, it wont convert becasue it cant find ffmpeg.so.
Re: automatic cron job error message
Quote:
becasue it cant find ffmpeg.so
Oh, OK then it sounds like a configuration issue either with the cronjob or with your server or both. I've never had a problem with the cron thing myself. Maybe someone else knows. Anyone?
Re: automatic cron job error message