How to prepare the server for Clipbucket
How to prepare the server for Clipbucket:
NOTE: This article is for configuring the server for Clip-Bucket PsuedoStreaming.
The actual Clip-Bucket configuration will be in another Article.
1.) Login to your VPS using SSH
A.) Host is your IP address
B.) Username is root
C.) Password is in the "Welcome E-Mail" we sent when you ordered your VPS
2.) Determine your CentOS Version
A.) RUN cat /etc/*release* You will get something similar to the following
"CentOS release 6.3 (Final)" or "CentOS release 5.8 (Final)"
3a.) If "CentOS release 5.8 (Final)"
A.) RUN
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/
/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
B.) RUN yum -y update
3b.) If "CentOS release 6.3 (Final)"
A.) RUN nano /etc/yum.repos.d/linuxtech.repo
B.) ADD the following to the file:
[linuxtech]
name=LinuxTECH
baseurl=http://pkgrepo.linuxtech.net/el6/release/
enabled=1
gpgcheck=1
gpgkey=http://pkgrepo.linuxtech.net/el6/release/RPM-GPG-KEY-LinuxTECH.NET
C.) Save by using CTRL+X then Y then Enter
D.) RUN yum -y update
4.) Install FFMPEG 0.6.5
A.) RUN yum -y install ffmpeg
5.) Install MP4Box
A.) RUN The Following
yum -y install freetype-devel SDL-devel freeglut-devel
cd /usr/local/src/
wget http://nchc.dl.sourceforge.net/project/gpac/GPAC/GPAC%200.4.5/gpac-0.4.5.tar.gz
wget http://nchc.dl.sourceforge.net/project/gpac/GPAC%20extra%20libs/
GPAC%20extra%20libs%200.4.5/gpac_extra_libs-0.4.5.tar.gz
tar -zxvf gpac-0.4.5.tar.gz
tar -zxvf gpac_extra_libs-0.4.5.tar.gz
cd gpac_extra_libs
cp -r * /usr/local/src/gpac/extra_lib
cd ../gpac
chmod 755 configure
./configure
make lib
make apps
make install lib
make install
cp bin/gcc/libgpac.so /usr/lib
install -m644 bin/gcc/libgpac.so /usr/local/lib/libgpac.so
chmod +x /usr/local/lib/libgpac.so
ldconfig
6.) Install "FLVTOOL2"
A.) RUN The Following
/scripts/installruby
gem install flvtool2
7.) Verify That cPanel is Still Functioning Correctly
A.) RUN The Following
cd /
/scripts/upcp
8.) Install FLVTOOL++
A.) RUN The Following
cd
yum install wget boost-devel gcc gcc-c++ -y
rpm -ivh http://repo.bstack.net/scons/scons-1.3.1-1.noarch.rpm
mkdir flvtool++
cd flvtool++
wget http://repo.bstack.net/flvtool++/flvtool++-1.2.1.tar.gz
tar zxf flvtool++-1.2.1.tar.gz
scons
mv flvtool++ /usr/local/bin
9.) Install "PsuedoStreaming Apache Module"
A.) RUN The Following
cd ~
wget http://h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz
tar -zxvf apache_mod_h264_streaming-2.2.7.tar.gz
cd ~/mod_h264_streaming-2.2.7
./configure
make
sudo make install
B.) Login to WHM "YourServerIP":2086
C.) Click "Apache Configuration" in the left hand navigation area
D.) Click "Include Editor"
E.) Under "Pre-Main Inclide" Select "All Versions"
F.) Add the following to the end of the Editor:
LoadModule h264_streaming_module /usr/local/apache/modules/mod_h264_streaming.so
AddHandler h264-streaming.extensions.flv
G.) Click "Update"
H.) Restart "Apache"
10.) Set the php Limits
A.) In WHM Click PHP Configuration Editor
B.) Change upload_max_filesize to the maximum size video that you would like to be uploaded.
Your Server is now Ready for Clipbucket PsudoStreaming!
Below are the paths for these Requirements:
/usr/bin/ffmpeg
/usr/local/bin/MP4Box
/usr/bin/flvtool2
/usr/local/bin/flvtool++
Need Additional Help? Go to "Live Chat" on the Britain Connected web site if you require further assistance.