ClipBucket 影音平台建置

這一篇主要是紀錄建置ClipBucket的過程
其中關於影音轉檔的設定則請參考先前的另一篇Blog FFMpeg 安裝 ( 支援HTML 5 Video Player Codec:MP4、WebM、Ogg )

同樣地也參考了志清國小 陳善豐老師提供的:影音網站架站教學-clipbucket教學

一開始先將HTTP、MySQL及PHP環境建置完成

====HTTP====

yum install httpd httpd-devel -y
/etc/init.d/httpd start
chkconfig httpd on

 

====MySQL====

yum install mysql mysql-server mysql-devel -y
/etc/init.d/mysqld start
chkconfig mysqld on
mysqladmin -u root password "密碼"
mysql -uroot -p
create database clipbucket;
GRANT ALL PRIVILEGES ON . TO CBUser@"localhost" IDENTIFIED BY '密碼' WITH GRANT OPTION;
FLUSH PRIVILEGES;

 

====PHP====

yum install php php-mysql php-common php-gd php-mbstring php-devel php-xml -y
vim /etc/php.ini

max_execution_time = 300
max_input_time = 600
memory_limit = 512M
post_max_size = 2047M
upload_max_filesize= 2047M
short_open_tag = On
date.timezone = "Asia/Taipei"

service httpd restart

 

====ClipBucket====

cd /var/www/html
wget http://repo.bstack.net/clipbucket/cb_2.6.zip
unzip cb_2.6.zip
rm -rf cb_2.6.zip
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

修改防火牆

vim /etc/sysconfig/iptables

-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

service iptables restart

利用Web進行安裝 (http://ip)

 

 

 

 

 

 

 

刪除安裝目錄

rm -r cb_install

This entry was posted in ClipBucket, Linux. Bookmark the permalink.