Knowledgebase
Installing Script Dependancies CentOS 5,6,7 or cPanel
Posted by Konrad Piwowar on 21 September 2016 06:56 AM

The following is a guide to install the script dependancies on CentOS 5 and 6 as well as CPanel systems. It may work under Centos 7 as well. This guide is for 64bit systems only. If you aren't sure - your system is almost certainly 64 bit unless it is obscenely old. This will install all required dependancies - so ffmpeg, mp4box, yamdi, x264, imagemagick and youtube-dl. It does not install ioncube, apache, php, mysql, memcached, pecl-memcache, nor any php extensions as the installation process of these is system dependant.

-- UPDATED AUGUST 20th 2016 DUE TO SHUTDOWN OF RPMFORGE PROJECT --

The following must be run as root. If using the ffmpeg from this list, you must change 'libfaac' to 'aac' in your ffmpeg command lines in the script configuration.


## ADD EPEL REPO AND UPDATE YUM DEPENDANCIES ##
yum -y install epel-release
yum -y update
yum -y install mesa-libGL-devel mesa-libGLU-devel libXi-devel libXmu-devel freeglut-devel SDL-devel alsa-lib-devel freetype-devel giflib gsm gsm-devel imlib2 imlib2-devel libICE-devel libSM-devel libX11-devel libXau-devel libXdmcp-devel libXext-devel libXrandr-devel libXrender-devel libXt-devel libid3tag libogg-devel libvorbis-devel mesa-libGL-devel mesa-libGLU-devel xorg-x11-proto-devel zlib-devel libtheora libtheora-devel glibc gcc gcc-c++ autoconf automake libtool subversion ncurses-devel libdc1394 libdc1394-devel yasm nasm curl
## EOF ##

## INSTALL CODEC ##
cd ~
wget https://mechbunny.com/repo/all-20110131.tar.bz2
bunzip2 all-20110131.tar.bz2
tar xvf all-20110131.tar
mkdir /usr/local/lib/codecs/
mkdir /usr/local/lib64/codecs/
cp all-20110131/* /usr/local/lib/codecs/
cp all-20110131/* /usr/local/lib64/codecs/
chmod -R 755 /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib64/codecs/
## EOF ##

## INSTALL X264 ##
cd ~
wget https://mechbunny.com/repo/x264-snapshot-20120103-2245-stable.tar.bz2
bunzip2 x264-snapshot-20120103-2245-stable.tar.bz2
tar -xvf x264-snapshot-20120103-2245-stable.tar
cd ~
cd x264-snapshot-20120103-2245-stable
./configure --enable-shared --prefix=/usr
make && make install
echo "/usr/local/lib" >> /etc/ld.so.conf
## EOF ##

## INSTALL STATIC FFMPEG ##
cd ~
wget https://mechbunny.com/repo/ffmpeg-release-64bit-static.tar.xz
tar -xvf ffmpeg-release-64bit-static.tar.xz
cd ffmpeg-3.1.2-64bit-static/
cp ff* /usr/bin/
cp ff* /usr/local/bin/
cp qt-faststart /usr/bin/
cp qt-faststart /usr/local/bin/
## EOF ##

## INSTALL GPAC/MP4BOX ##
cd ~
wget https://mechbunny.com/repo/gpac-full-0.4.5.tar.gz
tar -xzvf gpac-full-0.4.5.tar.gz
cd gpac
chmod +x configure
./configure
make lib
make apps
make install-lib
make install
cp bin/gcc/libgpac.so /usr/lib
ldconfig
## EOF ##

## INSTALL IMAGEMAGICK ##
cd ~
wget https://mechbunny.com/repo/ImageMagick.tar.gz
tar -xzvf ImageMagick.tar.gz
cd ImageMagick-7.0.2-9
./configure && make && make install
ldconfig
## EOF ##

## INSTALL YOUTUBE-DL ##
curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
chmod a+rx /usr/local/bin/youtube-dl
## EOF ##


ON CPANEL ONLY IF IONCUBE IS NOT INSTALLED AND PHP IS NOT SET TO DSO

The following assumes that your server is new and has nothing on it. It may adversely effect other sites. Please be careful.

/scripts/easyapache
Tab to "Customize Profile"
Select "Apache 2.2", then Next Step
Select newest version of php 5.x, then Next Step
Tab to Exhaustive Options List
Under Apache Built-in Modules list, leave all defaults
Under Other Modules, leave defaults and select 'Ioncube 5 Loader'
Under PHP 5.x, leave defaults and select Curl, MBString, Mysql "Improved" Extension, XMLRPC, then Next Step
Select Save & Build, and Select Yes and next prompt.

(14 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: