Hostwinds Tutorials

Search results for:


How to Prepare the Server for ClipBucket

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 to install 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

  1. Click Include Editor

  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

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

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

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

Written by Michael Brower  /  June 22, 2017

Need help? Chat now!