server:Ubuntu 8.04.1 LTS 伺服器版本
1.請先至osTube的官方網站註冊成為會員,下載 osTube2.2版本套件2.上傳並解壓縮檔案至web網站目錄,例 如:/var/www
#cd /var/www
#mkdir ostube2 //建立一個資料夾,將osTube2.2壓縮檔 上傳到此資料夾
#cd /ostube2
#tar xvzf osTube_2.2_Community_Edition_osTube_community_edt_2.2.tar.gz // 解壓縮
3. 設定解壓縮後ostube的資料夾內的檔案、資料夾的權限給網頁管理者,例如:www-data
#chown -R www-data.www-data /var/www/ostube2
4. Key in http://www.yourdomain.com/ostube2/ 它就會進行安裝程序,並且檢查
你主機的PHP-, MySQL-, and GD-Library-Version php.ini(php.ini的upload_max_filesize 建議調成100M以上)是否合乎安裝條件。
step1

- 出現 PHP CLI 未安裝的錯誤訊息。下指令安裝 php5-cli 套件。
# apt-get install php5-cli
- 編輯 php.ini
#vi /etc/php5/apache2/php.ini


- 重新整理網頁後畫面如下:
- 雖然 GD Version 有打勾,可是GD不一定有安裝完成。請注意看GIF Read Support、JPG Read Support、PNG Read Support 都是deactivated, 必須下指令安裝 php5-gd 套件。
# apt-get install php5-gd
- 記得要重新啟動一下apache2
# /etc/init.d/apache2 restart
- 利用phpmyadmin建立osTube的資料庫 例如:osTube2 和可以管理osTube資料庫的使用者帳號、密碼
- 填上
- DB hostrname : localhost
- DB username: XXXXX
- DB passwd: XXXXXX
- DB database:osTube2
- 按下『Next』,如果PHP-GD沒有安裝完成你會一直停在 step1 ,會有過不去的現象。
ostube 官方網站 論壇 有我們的網友同胞問過此問題,解決方法:就是檢查一下 PHP-GD
step2
- 檢查 mencoder、mplayer、 ruby、flvtool2 套件是否齊全。下相關指令安裝所需的套件,指令如下:
#apt-get install mplayer
#apt-get install mencoder
#apt-get install ruby
#apt-get install flvtool2
#apt-get install mencoder
#apt-get install ruby
#apt-get install flvtool2
- 安裝完成後,網頁出現的程式路徑有錯,必須更改為
/usr/bin/mencoder
/usr/bin/ruby
/usr/bin/flvtool2
/usr/bin/ruby
/usr/bin/flvtool2
step3
- 填入 站台名稱、管理者帳號、密碼、Email
- 下一步!完成!
- 記得移除/var/www/ostube2/install 資料夾

- 在Ubuntu系統中apache2 server的/cgi-bin 目錄不在 /var/www 而是在/usr/lib,個人習慣將它放置在/var/www,所以我在/var/www 中建立一個cgi-bin的目錄
#cd /var/www
#mkdir cgi-bin
- 再更改以下設定值:
- 編輯/etc/apache2/sites-available/default中的:
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin//usr/lib/cgi-bin"> AllowOverride None Options ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all
為
ScriptAlias /cgi-bin/ /var/www/cgi-bin//var/www/cgi-bin/"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all
- 記得重新啟動apache
#cd /etc/init.d/
#./apache2 restart
#./apache2 restart
- 修改ostube目錄cgi-bin裡的uu_default_config.pm
#cd /var/www/ostube2/cgi-bin/
#vi uu_default_config.pm
upload_dir => $ENV{’DOCUMENT_ROOT’} . ‘/ostube2/media/tmp/’,
redirect_url => ‘http://’ . $ENV{’SERVER_NAME’} . ‘/ostube2/upload.php’,
path_to_upload => ‘http://’. $ENV{’SERVER_NAME’} . ‘/ostube2/uploads/’,
#cp * /var/www/cgi-bin (複製ostube目錄cgi-bin裡的4個檔案到ubuntu系統/var/www /cgi-bin 目錄)
#chmod +x * (給它們可執行的權限)
#chown -R www-data.www-data /var/www/cgi-bin (給予apache2 擁有者權限)
- 登入後台管理介面,更改設定值,將 Use UberUploader設為Yes。
0 留言:
發佈留言