# --- BIGSTACK'S CLIP BUCKET INSTALL ----- #
# --- Needed Files Stored Safely on ---- #
# --- Bstack.net Repo to prevent from ---- #
# --- link changes. ---------------------- #
NOTES - READ !!
This is for CentOS 5.x and 6.x ---- Version 3 will use the GIT install (A Known Working Copy) of FFMPEG
* I recommend CentOS 6.x 64x
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)
file info coming soon
INSTALL START
#-------- Start System Base ----------#
# -- Install RPM Forge --#
Code:
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 --#
Code:
wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh
# ---------------------- #
#-------- Install Updates and Services ----------#
Code:
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
Some Systems Might have a DateTime() issue
nce site is installed. If this Happens FIX Is at BOTTOM
################################################## ####
Code:
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
chkconfig mysqld on
chkconfig httpd on
yum install nano -y
#-------- 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 dont install webmin
Code:
rpm -Uhv http://repo.bstack.net/webmin/webmin-1.570-1.noarch.rpm
# --------------- You Will see --------------------------#
Webmin install complete. You can now login to http://domain.com:10000/ as root with your root password.
# -------- End webmin ----------#
# --------- FFMPEG / Codecs Install ------------#
Code:
cd
mkdir ffmpegauto
cd ffmpegauto
wget http://www.bstack.net/repo/ffmpegauto/ffmpegauto_v3.1.zip
unzip ffmpegauto_v3.1.zip
chmod 777 *
./install.sh
## --- This will take Long time go grab a snack --- #
# --------- END FFMPEG / Codecs Install ------------#
# --------- Get Preset Files ---------------------- #
Code:
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
# --------- END Get Preset Files ---------------------- #
## -- SINGLE INSTALLS -- ##
# --------- MP4Box Install ------------#
Code:
cd /usr/local/src/
wget http://www.repo.bstack.net/mp4box/gpac-0.4.5.tar.gz
wget http://www.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 -----------#
Code:
yum install ruby -y
cd /usr/local/src
wget http://www.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 ---------#
#-- Set PHP.ini File Limits and Properties -- ##
hit Ctrl w -- Will bring up search (control key + w key)
Type:
and hit enter
You will be taken to the line where that appears
Change the defualt vaule usually 8M
Code:
Change -- 8M to 1024M (this will be 1G)
Dont make this vaule larger than the ammount of RAM in your server
Dont Hit Enter or any keys just type the number
NEXT
Ctrl+w again
backspace or clear out the search box if needed
Seach for
Code:
upload_max_filesize
Do the same thing as above change the Number
Lastly
Find
Code:
"short_open_tag" (Search it with ctrl+w)
Set to "on":
Code:
short_open_tag = On
NOW SAVE
Code:
Crtl+o then the Enter Key
exit nano
Reboot Your Server
When it comes back up continue below
#------------------- Clip Bucket Install --------------------------#
# --------- 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
Code:
cd
cd /var/www/html
## Change this if you want ##
Note 2.6 is what this link is I will try to keep up with new releases just change link
I have also manually fixed some known erros in files such as low quality problem
Code:
wget http://repo.bstack.net/clipbucket/cb_2.6.zip
unzip cb_2.6.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 onthe files
### ** YOU ARE ABLE TO JUST HIGHLIGHT ALL THE LINES BELOW FOR CHMOD ###
Code:
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
the permissions should show up green when you get to that page in the install
You now have to do the next part.
Go to WebMin Make a Database, Make a user, give permissions to user for database
remember what you have made
Go to your site or IP
for my example i would use
http://domain.com/clip OR http://IP.Address/clip
Possible Fixes for problems and extras at the bottom
################################################## ##################################
######################### Extras ##################################
# --------------- PHP DATE TIME ERROR ------------#
If you see this all over your site:
"Warning: date(): It is not safe to rely on the system's timezone settings..."
Depending on you knowledge of the php.ini file you can either manually put in you date time code:
Once again open up your php.ini file
This pages down when you read the edd of the file put this in
# --- !! NOTE !!! --- my server is in this area it is best if you look up the proper "AREA CITIES" for your server
# Find yours here -- http://www.php.net/manual/en/timezones.php
Code:
date.timezone = "America/New_York"
Code:
Crtl+o then Enter
Exit Crtl+x
Restart httpd
Code:
service httpd restart
## -------- END PHP FIX ------------ ##
# ------- Start FLVtool++ Install ---------#
Code:
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 ------------#
Because the version of php on CentOS is 5.1.6, we only can install phpMyAdmin 2.x, I choose 2.11.11.3.
Code:
cd /usr/share
wget http://sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/2.11.11.3/phpMyAdmin-2.11.11.3-english.tar.gz/download
tar xvfz phpMyAdmin-2.11.11.3-english.tar.gz
mv phpMyAdmin-2.11.11.3-english phpmyadmin
rm phpMyAdmin-2.11.11.3-english.tar.gz
cd phpmyadmin
cp config.sample.inc.php config.inc.php
nano config.inc.php
find the line that contain “blowfish_secret”, and modify like below. wILL be right near top
$cfg['blowfish_secret'] = ‘TypeAnything_for_Secure’;
TIP - Just SLAM KEYS!! get like 30 caracters in there !!
Save file and exit
Code:
Crtl+o then enter
Crtl+x
/etc/httpd/conf.d/php.conf
echo Alias /phpMyAdmin /usr/share/phpmyadmin >> /etc/httpd/conf.d/php.conf
Set Root Pass for MySql put pass in the " "
Code:
mysqladmin password "NEW-PASSWORD"
Code:
service httpd restart
service mysqld restart
Visit -- http://domain.com/phpMyAdmin/ and login and create databases
# --------- PHPMyADMIN END ------------#
# ------- PHP Shield ---------- #
Clip Bucket Does NOT NEED THIS so IM NOT going to go threw this
However if you wish to isntall it you can get it here
NOTE - Unless you Know Linux Well I wouldnt Install this !!
http://phpmotionwiz.com/how-to-insta...shield-loaders
Please let me know if you need help with anything and if you are looking for server / hosting I can provide them I am a VPS hosting provider.
I Will also Install all of this for you just hit me up with a donation after.
Best of Luck
Bigstack