- Plesk for Linux
How to install the ffmpeg-php extension in Plesk?
ffmpeg-php extension can be installed for PHP 5.6 provided by Plesk only. It cannot be installed for PHP 7.x provided by Plesk due to conflicts with Zend.
Follow the next steps to install ffmpeg-php extension for PHP 5.6 provided by Plesk on Plesk Obsidian CentOS 7 (PHP 5.6 is not included into Plesk on other operating systems):
Log in to Plesk
Install Composer extension from Plesk extension catalog in Extensions:
Go to Domains > example.com > File Manager and create a file named
composer.jsonwith the content below:
Note: The domain example.com is the domain where ffmpeg-php is going to be used
Go to Domains > example.com > PHP Settings and select 5.6.40, click OK
Go to Domains > example.com > PHP Composer, click Scan to read the composer.json file:
Click Install under Package Dependencies:
ffmpeg-phpis installed in
To start using php-ffmpeg add the below to the website code in a PHP page to load the library:
CONFIG_TEXT: require 'vendor/autoload.php';
ffmpeg-php extension is not pre-installed in Plesk. If you would like to see ffmpeg-php pre-installed in PHP provided by Plesk, please vote for this feature on Plesk UserVoice.