Skip to content

Instantly share code, notes, and snippets.

@WganMe
Last active July 2, 2020 06:44
Show Gist options
  • Save WganMe/96eb6f7f72ed8d76c3d54f6be932cc9a to your computer and use it in GitHub Desktop.
Save WganMe/96eb6f7f72ed8d76c3d54f6be932cc9a to your computer and use it in GitHub Desktop.
ffmpeg cPanel
cd /usr/local/src/
wget http://rep0.admin-ahead.com/sources/aast-ffmpeg-installer/2_0_4/sources/ffmpeg-php.tar.gz
tar zxvf ffmpeg-php.tar.gz
cd ffmpeg-php
/opt/cpanel/ea-php56/root/usr/bin/phpize
CFLAGS=-I/usr/local/ffmpeg/build/include LDFLAGS=-L/usr/local/ffmpeg/build/lib ./configure --with-ffmpeg=/usr/local/ffmpeg/build/ --with-php-config=/opt/cpanel/ea-php56/root/usr/bin/php-config
make && make install
echo "extension=ffmpeg.so" >> /opt/cpanel/ea-php56/root/etc/php.d/ffmpeg.ini
/opt/cpanel/ea-php70/root/usr/bin/phpize
CFLAGS=-I/usr/local/ffmpeg/build/include LDFLAGS=-L/usr/local/ffmpeg/build/lib ./configure --with-ffmpeg=/usr/local/ffmpeg/build/ --with-php-config=/opt/cpanel/ea-php70/root/usr/bin/php-config
make && make install
echo "extension=ffmpeg.so" >> /opt/cpanel/ea-php70/root/etc/php.d/ffmpeg.ini
/opt/cpanel/ea-php71/root/usr/bin/phpize
CFLAGS=-I/usr/local/ffmpeg/build/include LDFLAGS=-L/usr/local/ffmpeg/build/lib ./configure --with-ffmpeg=/usr/local/ffmpeg/build/ --with-php-config=/opt/cpanel/ea-php71/root/usr/bin/php-config
make && make install
echo "extension=ffmpeg.so" >> /opt/cpanel/ea-php71/root/etc/php.d/ffmpeg.ini
/opt/cpanel/ea-php72/root/usr/bin/phpize
CFLAGS=-I/usr/local/ffmpeg/build/include LDFLAGS=-L/usr/local/ffmpeg/build/lib ./configure --with-ffmpeg=/usr/local/ffmpeg/build/ --with-php-config=/opt/cpanel/ea-php72/root/usr/bin/php-config
make && make install
echo "extension=ffmpeg.so" >> /opt/cpanel/ea-php72/root/etc/php.d/ffmpeg.ini
service httpd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment