• 5 Subscribers

I'm pretty new to using SSH and such to install software. I'm trying to use https://github.com/eyecatchup/php-yt_downloader on my site (http://voddr.com/yt/index.php?id=yrreBFLghMc) but as you can see, it comes back with the error "You must have Ffmpeg installed in order to use this function."

I have installed ffmpeg, using Nux Desktop (see the guide I followed here: https://www.vultr.com/docs/how-to-install-ffmpeg-on-centos)

When typing "ffmpeg" into SSH it comes back with this, which must mean it is installed:

command: ffmpeg

Also, I tried the command "which ffmpeg", which returned the path of ffmpeg: "/usr/bin/ffmpeg"

php-yt_downloader uses which ffmpeg to detect whether it is installed, and if not, it returns the error "You must have Ffmpeg installed in order to use this function." - but if I'm able to use it fine from my SSH window, why can't the script detect it?

All I'm wondering, is there something else I must do when installing software to allow a domain to use it (like install the software in the domain's path?), or is this entirely a problem with the php-yt_downloader resource? I'm using CentOS 7 and Plesk web panel.

1 answers in total

data cosmos Posted at 2017-01-11 22:35:42Z

I think you have done everything right installing the software. I would check your php environment. Have a look at this link from the php manual.

Note: The backtick operator is disabled when safe mode is enabled or shell_exec() is disabled.

I would first try the easy example on the manual page to check if the backtick operator works. It could be that your webserver setup does not allow shell execution and this is what yt_downloader is using, see their source code.

Answer this questsion