If your script supports modification of the paths to php, ffmpeg, mencoder, and flvtool2 then please try these settings for your youtube clone script:
PHP - /usr/local/bin/php
FFMpeg - /usr/local/bin/ffmpeg
Mencoder - /usr/local/bin/mencoder
FLVTool2 - /usr/bin/flvtool2