# --- 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 Code: exclude=apache* bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* mysql* nsd* perl* php* proftpd* pure-ftpd* ruby* spamassassin* squirrelmail....... 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....... Code: yum groupinstall 'Development Tools' -y yum install ruby -y yum install yasm subversion -y yum install git -y 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 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 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 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 # --------- 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 ## -- 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 /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 #-- Set PHP.ini File Limits and Properties -- ## Code: nano /etc/php.ini Type: Code: post_max_size 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 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 Lastly Find Code: "short_open_tag" (Search it with ctrl+w) Code: short_open_tag = On Code: Crtl+o then the Enter Key Code: Ctrl+x Code: reboot #------------------- 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 Code: mkdir clip cd clip 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 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 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 # --- !! 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 Code: service httpd restart # ------- 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++ # ------------ 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 $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 Code: mysqladmin password "NEW-PASSWORD" Code: service httpd restart service mysqld restart # --------- 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 |
|
来自: 昵称11178557 > 《待分类1》