Search The Hostwinds Guides Knowledge Base

How to Prepare the Server for ClipBucket

Share This Article [TheChamp-Sharing]

ClipBucket is an open source script that allows you to host your own video sharing website similar to Youtube. This article will cover how to configure your server for the installation of ClipBucket in a CentOS environment with cPanel. If you’d like to install the ClipBucket software, please refer to our guide: How to install ClipBucket.

You’ll need to be logged into your server via SSH before proceeding.

 

  1. Add the following repository using nano

 

nano /etc/yum.repos.d/linuxtech.repo

 

 

  1.  Add the following to the file that you just created

 

[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

 

 

  1. Save by using CTRL+X then Y then Enter
  2. Update the server via the following command

 

yum -y update

 

 

  1. Install FFMPEG

 

yum -y install ffmpeg

 

 

  1. Install MP4Box

 

yum -y install freetype-devel SDL-devel freeglut-devel

cd /usr/local/src/

wget http://repo.bstack.net/mp4box/gpac-0.4.5.tar.gz

wget http://repo.bstack.net/mp4box/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

 

 

  1. Install FLVTOOL2 by executing the following

 

/scripts/installruby
gem install flvtool2

 

 

  1. Verify That cPanel is Still Functioning Correctly by executing the following

 

cd /
/scripts/upcp

 

 

  1. Install FLVTOOL++

 

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

 

 

  1. Install the PsuedoStreaming Apache Module by issuing the following commands in order
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

 

 

  1. Login to WHM
  2. Locate and click Apache Configuration

 

Showing the Apache Configuration location in WHM

 

  1. Click Include Editor

 

Showing the Include Editor icon in WHM

 

  1. Under Pre-Main Include select All Versions

 

 

  1. 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

 

 

  1. Click Update
  2. Restart Apache
  3. Search for restart in the WHM search bar
  4. Select HTTP Server (Apache)

 

 

  1. Click Yes

 

Showing the Restart Apache Webserver confirmation

 

  1. Set the php Limits
  2. Search for PHP Configuration Editor in the WHM search bar
  3. Select PHP Configuration Editor

 

Showing the location of the PHP configuration editor in WHM

 

  1. Change upload_max_filesize to the maximum size video that you’d like to be uploaded
  2. Click Save

 

Showing the PHP max file size field in the PHP configuration editor

 

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++

 

Helpful Related Articles