in , ,

How to install Clipbucket Centos

How to install Clipbucket Centos

How to install Clipbucket Centos! Clipbucket is a Youtube, dailymotion, tune.pk type script, allowing a user to self-host their own video sharing website for free with opensource script.
It has complete with advertising, user management and other options, however it requires hosting with root access most hosting providers, provide these kinds of services, zarihost.com, etc and most shared hosting plans such as Godaddy, etc.

This tutorial will that explains how to install Clipbucket Centos Apache/PHP/MySQL server. In this tutorial i ‘ll explain how to install the required FFMPEG, FLVTOOL2, or MP4Box Clipbucket needs to process videos in this tutorial, but those are not needed for the installation process and can be configured later.

NOTES – READ !!
This is for CentOS 5.x and 6.x —- Version 3 will use the GIT install (A Known Working Copy) of FFMPEG

—–START WHM/CPANEL—–

If your server have Cpanel on it or will have Cpanel on it you will need to edit a file first before installing this (you will change it back later)


WHM/CPANEL ONLY You will need to TEMPORARILY edit the yum config file for cpanel because perl / ruby is blocked for update / installs.

To do this edit this file as such: commands:

yum install nano -y
nano /etc/yum.conf

at the beginning of the file you will see this

exclude=apache* bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* mysql* nsd* perl* php* proftpd* pure-ftpd* ruby* spamassassin* squirrelmail.......

you need to delete the following (in green above): perl* AND ruby* — just arrow over to them and backspace over them leaving 1 space between the 2 other items there (like its not there)
so it should look like:

exclude=apache* bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* mysql* nsd* php* proftpd* pure-ftpd* spamassassin* squirrelmail.......

IMPORTANT – YOU WILL BREAK CPANEL if you DO NOT FOLLOW THIS –You DO NOT / SHOULD NOT run any of the yum updates / php install / mysql installs if you are using CPANEL… you will only need to do add the RPM forge repo and then run the following commands and then Skip down to the Auto Installer Files. (php settings and other configs are done from Cpanel ROOT (WHM)

yum groupinstall 'Development Tools' -y
yum install ruby -y  
yum install yasm subversion -y 
yum install git -y
yum install freeglut-devel mesa-libGL-devel mesa-libGLU-devel libXi-devel libXmu-devel

RUN THE AUTO INSTALLER

Do the MANUAL install of FLVTOOL at the bottom of my guide as the script has problems installing that with Cpanel installed…

After your done installed everything CHANGE THE FILE back to how it was originally. OR YOU WILL BREAK CPANEL!! *I warned you

—–END WHM/CPANEL—–

INSTALL START
#——– Start System Base ———-#

# — Install RPM Forge –#

32x:
CentOS 5.x :
rpm -Uhv http://repo.bstack.net/RPMforge/rpmforge-release-0.5.2-2.el5.rf.i386.rpm

CentOS 6.x : 
rpm -Uhv http://repo.bstack.net/RPMforge/rpmforge-release-0.5.2-2.el6.rf.i686.rpm

64x:
CentOS 5.x : 
rpm -Uhv http://repo.bstack.net/RPMforge/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm

CentOS 6.x :
rpm -Uhv http://repo.bstack.net/RPMforge/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

# — Install Atomicorp –#

wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh

#——– Install Updates and Services ———-#

yum update -y

yum groupinstall 'Development Tools' -y

yum install ruby -y

yum install httpd httpd-devel -y

/etc/init.d/httpd start

yum install mysql mysql-server mysql-devel -y

/etc/init.d/mysqld start

####################### PHP ##########################

NOTE: You will end up with php 5.3.X (For Clipbucket 2.6.x) 5.4.x (For Clipbucket 2.7.x)
Some Systems Might have a DateTime() issue
If this Happens FIX Is at BOTTOM
################################################## ####

yum install nano -y

NOTE – PHP 5.4 is now default for yum install… Please change:

Install nano command

yum install nano

Then use nano to edit:

nano /etc/yum.conf

Look for an “exclude” value at the file if its not there add it in or add to it.

exclude=php*5.4* php*5.5*

Save with Control + O then Control + X Exit nano command

Continue install:

yum install php php-mysql php-common php-gd php-mbstring php-devel php-xml gd gd-devel php-gd -y

yum install yasm subversion -y

yum install git -y

yum install freeglut-devel mesa-libGL-devel mesa-libGLU-devel libXi-devel libXmu-devel

chkconfig mysqld on
chkconfig httpd on

#——– Webmin Install (if wanted / needed) ———-#
The next section will install WebMin if you are going to use a different control panel or already have one donot install webmin

If you are using the RPM version of Webmin, first download the file from the downloads page , or run the command

wget http://prdownloads.sourceforge.net/webadmin/webmin-1.740-1.noarch.rpm

then install optional dependencies with :

yum -y install perl perl-Net-SSLeay openssl perl-IO-Tty

and then run the command :

rpm -U webmin-1.740-1.noarch.rpm

The rest of the install will be done automatically to the directory /usr/libexec/webmin, the administration username set to root and the password to your current root password. You should now be able to login to Webmin at the URL http://localhost:10000/. Or if accessing it remotely, replace localhost with your system’s IP address.

# ——– End webmin ———-#

# ——— FFMPEG / Codecs Install ————#

cd
mkdir ffmpegauto
cd ffmpegauto
wget http://www.bstack.net/repo/ffmpegauto/ffmpegauto_v3.2.zip
unzip ffmpegauto_v3.2.zip
chmod 777 *
./install.sh

Note: This ‘ll take long time In the auto install ffmpeg setup will call for enter 2 times, so watch at screen with snacks 🙂  and press enter.

Note This ‘ll not not install ffmpeg-php extension method is as under which is only providing zarinews.com 🙂 : –

Compile and install the FFMPEG-PHP extension

mkdir /srv/build
cd /srv/build
wget http://downloads.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2
tar -xjf ffmpeg-php-0.6.0.tbz2
cd ffmpeg-php-0.6.0/

phpize
./configure

Common Errors

1. If you get command not found error for phpize, then you will need to do yum install php-devel

2. If you get error like “ffmpeg headers not found” while configuring the source.

configure: error: ffmpeg headers not found. Make sure ffmpeg is compiled as shared libraries using the –enable-shared option

then it means you have not installed ffmpeg-devel packages.

To Fix: Just install ffmpeg-devel using

yum install ffmpeg-devel

3. If you get an error like shared libraries not found problem and the program halts in the middle, then you must specify the ffmpeg installed path explicitly to the ./configure.

configure: error: ffmpeg shared libraries not found. Make sure ffmpeg is compiled as shared libraries using the –enable-shared option

To Fix:

1. First find out the ffmpeg path with ffmpeg –help command. The prefix default path should be like /usr/local/cpffmpeg
2. Configure the FFmpeg-php with –with-ffmpeg option

./configure –with-ffmpeg=/usr/local/cpffmpeg

Now run the following command if you receive this error (ffmpeg_frame.c:421: error: ‘PIX_FMT_RGBA32’)

sed -i 's#PIX_FMT_RGBA32#PIX_FMT_RGB32#' ./ffmpeg_frame.c

If you get  [ffmpeg_movie.lo] Error 1 when compiling ffmpeg-php, then you will need to do:

nano +311 ffmpeg_movie.c

nano ffmpeg_movie.c
Changes in ffmpeg_movie.c:
row 311: list_entry *le; to zend_rsrc_list_entry *le;
row 346: list_entry new_le; to zend_rsrc_list_entry new_le;
row 360: hashkey_length+1, (void *)&new_le, sizeof(list_entry), to hashkey_length+1, (void *)&new_le,sizeof(zend_rsrc_list_entry),

and compile and install using

make
make install

you should end up with something like

Installing shared extensions:     /usr/lib64/php/modules/

Load the FFMPEG-PHP extension and reload Apache

echo -e "extension=ffmpeg.so\n" > /etc/php.d/ffmpeg.ini

restart your webserver

/etc/init.d/httpd restart

# ——— Get Preset Files ———————- #

cd /usr/local/cpffmpeg/share/ffmpeg
wget http://repo.bstack.net/ffmpegauto/libx264-hq.ffpreset
wget http://repo.bstack.net/ffmpegauto/libx264-normal.ffpreset
cd

Open the php.ini file

nano /usr/local/lib/php.ini

Put the below two lines at the end of file

[ffmpeg]
extension=ffmpeg.so

# ——— END FFMPEG / Codecs Install ————#

# ——— MP4Box Install ————#

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

You MIGHT Need to change the ClipBucket MP4Boc location: -#
/usr/local/bin/MP4Box

# ——— MP4Box END ————#

# ——— FLVtool Install ———–#

yum install ruby -y
cd /usr/local/src
wget http://repo.bstack.net/flvtool/flvtool2-1.0.6.tgz
tar zxvf flvtool2-1.0.6.tgz
cd flvtool2-1.0.6
ruby setup.rb config && ruby setup.rb setup && ruby setup.rb install

# ——- END FLVtool Install ———#

# ——— Installing Mplayer + Mencoder ———–#

Just issue the following yum commands to install the rest of the packages.

yum install mplayer mencoder

# ——— End Mplayer + Mencoder ———–#

#– Set PHP.ini File Limits and Properties — ##

nano /etc/php.ini

Hit Ctrl + w (For Search) right click of mouse for paste

post_max_size

Change the defualt vaule usually 8M to 1024M (Nor over then your Ram)

Change -- 8M to 1024M  (this will be 1G)

Ctrl+w again
backspace or clear out the search box if needed
Seach for and replace size 2M to 1024M

upload_max_filesize

Do the same thing as above change the Number

Lastly
Find (Search it with ctrl+w)

"short_open_tag"

Set to “on”:

short_open_tag
short_open_tag = On

Now Save

Crtl+o  then Crtl +x or enter

# ——- Start FLVtool++ Install ———#

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
flvtool++
# In your Clip Bucket Admin change the path for FLVTool ++ to 
/usr/local/bin/flvtool++

# ——- END FLVtool++ Install ———#

# ———— PHPmyADMIN Install *CentOS ONLY ————#

Install/enable EPEL repository

rpm -ivh http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/epel-release-6-8.noarch.rpm

Now update repositories – SAY “n” to getting the updates just run and say no

yum update

Install phpMyAdmin (make sure u keep the CAPS)

yum install phpMyAdmin

restart httpd service

service httpd restart

Open /etc/httpd/conf.d/phpMyAdmin.conf use nano (like above) find ALL the lines that have Deny from All and erase the lines should be 5 of them.

nano /etc/httpd/conf.d/phpMyAdmin.conf

*You will have to set a MySQL root password via putty if you have not already.

mysqladmin -u root password YOURPASSWORD

# ——— PHPMyADMIN END ————#

Reboot Your Server

reboot

# ——— Download Clip Bucket ————#

This is just a sample setup you are free to install however you want
Since im running webmin the path to public folder is /var/www/html
I will be installing it to /var/www/html/clip
Which will then make domain.com/clip the URL or your root

cd
cd /var/www/html

## Change this if you want ##

mkdir clip   
cd clip

Note 2.7 is what this link is I will try to keep up with new releases just change link

 

wget https://www.zarinews.com/clip.zip

unzip clip.zip

Thats it for the Download there will be a clip folder in html
You can now go install clipbucket — below is optional but will help
To make it easier on you later set the permissions on the files

### ** YOU ARE ABLE TO JUST HIGHLIGHT ALL THE LINES BELOW FOR CHMOD ###

chmod 777 includes
chmod 777 files
chmod 777 files/conversion_queue
chmod 777 files/logs
chmod 777 files/original
chmod 777 files/temp
chmod 777 files/thumbs
chmod 777 files/photos
chmod 777 files/videos
chmod 777 files/mass_uploads
chmod 777 files/temp/install.me
chmod 777 images
chmod 777 images/avatars
chmod 777 images/backgrounds
chmod 777 images/collection_thumbs
chmod 777 images/category_thumbs
chmod 777 images/groups_thumbs
chmod 777 includes/langs/en.lang
chmod 777 cache
chmod 777 cache/comments
chmod 777 cache/userfeeds
chmod 777 cb_install

Possible Fixes for problems and extras at the bottom

 

To remove apache test page in CentOS, follow the steps below:-

nano /etc/httpd/conf.d/welcome.conf

 

Comment All these line as i made red

# This configuration file enables the default “Welcome”
# page if there is no default index page present for
# the root URL. To disable the Welcome page, comment
# out all the lines below.
#
#<LocationMatch “^/+$”>
# Options -Indexes
# ErrorDocument 403 /error/noindex.html
#</LocationMatch>

################################################## ##################################

If you face any problem contact here i ll assist you if i can 🙂

 

What do you think?

0 points
Upvote Downvote

Total votes: 0

Upvotes: 0

Upvotes percentage: 0.000000%

Downvotes: 0

Downvotes percentage: 0.000000%

Written by Zaryyab Salman

Zaryyab Salman

I am Zaryyab Salman, Site owner of www.zarinews.com has written 100 of articles for zarinews., where I share unique, quality and informative information with you and all the world. Zarinews provides free news, new products, tips & tricks related to blogging, social media and technology news fashion & off-course about your health. Your can visit related websites www.properseoguidelines.com

Leave a Reply

12 Cartoons Your Mom Shouldn’t Let You Watch When You Were Young

PEC Class 5 Or Class 8 2015

PEC Class 5 Or Class 8 2015