How to Install FFMPEG on CentOS Web Panel

In this tutorial we will learn how to install ffmpeg on CentOs Web Panel. Before we proceed further we need to make some changes in php.in file as php extension directory is not defined in it. Also we need to create directory manually.

First thing install CWP and Login to SSH (Using Putty)

Make Extension Directory.

mkdir /usr/lib64/extensions/
mkdir /usr/lib64/extensions/no-debug-non-zts-20100525


Edit INI file.

nano /usr/local/php/php.ini

Now uncomment;extension_dir = “./” and replace it with extension_dir = “/usr/lib64/extensions/no-debug-non-zts-20100525” and save the file.

Reboot Apache service:

service httpd restart

Now we will proceed with the installation.

Login to CentOS Web Panel (http://your-ip:2030)

Go to PHP Settings –> FFMPEG Installer and click Start Installer in Background

You can check installation process in SSH by using:

tail -f /var/log/ffmpeg-installer.log

Finally Check if ffmpeg-php is enabled in php, Navigate to PHP Settings –> PHP Info and look for ffmpeg.