分享

ffmpeg

 昵称11178557 2012-11-25
# --- 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)

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:
Code:
yum install nano -y
nano /etc/yum.conf
at the beginning of the file you will see this
Code:
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:
Code:
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)

Code:
yum groupinstall 'Development Tools' -y
yum install ruby -y  
yum install yasm subversion -y 
yum install git -y
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 --#
Code:
32x:
CentOS 5.x :
rpm -Uhv http://repo./RPMforge/rpmforge-release-0.5.2-2.el5.rf.i386.rpm

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

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

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

# -- Install Atomicorp --#

Code:
wget -q -O - http://www./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./webmin/webmin-1.570-1.noarch.rpm
# --------------- You Will see --------------------------#
Webmin install complete. You can now login to http://:10000/ as root with your root password.

# -------- End webmin ----------#


# --------- FFMPEG / Codecs Install ------------#
Code:
cd
mkdir ffmpegauto
cd ffmpegauto
wget http://www./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./ffmpegauto/libx264-hq.ffpreset
wget http://repo./ffmpegauto/libx264-normal.ffpreset
cd
# --------- END Get Preset Files ---------------------- #

## -- SINGLE INSTALLS -- ##

# --------- MP4Box Install ------------#
Code:
cd /usr/local/src/
wget http://www.repo./mp4box/gpac-0.4.5.tar.gz
wget http://www.repo./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./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 -- ##
Code:
nano /etc/php.ini
hit Ctrl w -- Will bring up search (control key + w key)
Type:
Code:
post_max_size
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
Code:
Ctrl+x
Reboot Your Server
Code:
reboot
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 /clip the URL

Code:
cd
cd /var/www/html
## Change this if you want ##
Code:
mkdir clip   
cd clip
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 *SQL injection patch included
Code:
wget http://repo./clipbucket/cb_2.6.1.zip
unzip cb_2.6.1.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 ###

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:///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

Code:
nano /etc/php.ini
Code:
Hold Control + v
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./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./scons/scons-1.3.1-1.noarch.rpm
mkdir flvtool++
cd flvtool++
wget http://repo./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:///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:///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:///how-to-install-phpshield-loaders

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多