PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, November 13, 2022

[FIXED] how to install ffmpeg php extension on plesk centos7

 November 13, 2022     centos, centos7, ffmpeg, php, plesk     No comments   

Issue

please help me installing FFMEPG, i have instilled it but there is no extension in php setting.

in php.d ffmepg is not there.

anyone one know how to install it.


Solution

For PHP >=7.0, simply use composer:

# /opt/plesk/php/7.2/bin/php /usr/lib64/plesk-9.0/composer.phar install php-ffmpeg/php-ffmpeg

For earlier PHP versions:

1. Make sure EPEL is enabled:

# yum repolist | grep epel
*epel/x86_64 Extra Packages for Enterprise Linux 7 - 12559

If it is not, enable it as follows:

# yum install epel* -y

2. Enable RPM Fusion:

# yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
# yum localinstall --nogpgcheck https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm

3. Install FFmpeg and dependencies:

# sudo yum install ffmpeg ffmpeg-devel mplayer mencoder flvtool2 libogg libvorbis lame
# sudo yum install make plesk-php56-devel gcc glibc-devel zlib-devel

4. Download ffmpeg-php:

# git clone https://github.com/nilsringersma/ffmpeg-php
# cd ffmpeg-php 
# /opt/plesk/php/5.6/bin/phpize

5. Do configure & make:

# ./configure --with-php-config=/opt/plesk/php/5.6/bin/php-config --enable-skip-gd-check
# make 
# make install

6. Enable the extension:

# echo "extension=ffmpeg.so" > /opt/plesk/php/5.6/etc/php.d/ffmpeg.ini
# plesk bin php_handler --reread

For more general instructions, refer to this guide.



Answered By - Elvis Plesky
Answer Checked By - Dawn Plyler (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing