msgbartop
知識 管理 分享
msgbarbottom

05 八月 08 osTube 2.2安裝於Ubuntu 8.04.1 LTS 伺服器版本

最近又有一項新任務,得重新再架設一個新的osTube,雖然這個主題已經是老梗了,但還是再重新整理一遍,留下一個完整的紀錄,提供參考!

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

step1 error message is The database could not be created.

step2

  • 檢查 mencoder、mplayer、ruby、flvtool2 套件是否齊全。下相關指令安裝所需的套件,指令如下:

#apt-get install mplayer
#apt-get install mencoder
#apt-get install ruby
#apt-get install flvtool2

  • 安裝完成後,網頁出現的程式路徑有錯,必須更改為

/usr/bin/mencoder
/usr/bin/ruby
/usr/bin/flvtool2

step3

  • 填入 站台名稱、管理者帳號、密碼、Email
  • 下一步!完成!

  • 記得移除/var/www/ostube2/install 資料夾

5.上傳檔案時會顯示進度,參考台中縣華龍國小阿欣老師(3)不修改 httpd.conf 方法

  • 在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/

<Directory "/usr/lib/cgi-bin">
 AllowOverride None
 Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
 Order allow,deny
 Allow from all
</Directory>

ScriptAlias /cgi-bin/ /var/www/cgi-bin/
<Directory "/var/www/cgi-bin/">
 AllowOverride None
 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
 Order allow,deny
 Allow from all
</Directory>

  • 記得重新啟動apache

#cd /etc/init.d/
#./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。

6.這次的安裝還頗為順利,上傳影片檔測試後,ostube2.2也沒有了之前上傳影片檔出現convert error 的問題。

Similar Posts 相似文章:

歷史上的今天

Tags:

Reader's Comments

  1. |

    我在ubuntu 8.04 server的架構下,

    裝置ostube 2.3。

    有架起來,

    http://tv.hyps.tp.edu.tw/ostube

    可是,

    我發現幾個問題:

    1.

    影片可以上傳及正常播放,

    但音樂跟圖片可以上傳不能播放。

    2.

    雖然有去修改

    /etc/mysql/my.cnf

    裡頭有關utf8等設定,

    可是結果還是一樣,

    無法解決中文亂碼問題。

    就設定sitename而言,

    ostube跟phpMyAdmin兩邊的資料,

    還是無法同步都呈現正確中文碼,

    不知問題出在哪裡?

    回覆該留言

    Reply to this comment
  2. |

    [...] kek youtube gtu loh. Server menggunakan Ubuntu Server 8.10. Tutorial ini di copy paste edit dari sini. Btw, kalo ga bisa bahasa cina, pake translate.google.com aja. gw juga pake itu soale. Jadi inilah [...]

    Reply to this comment
  3. |

    To desk:

    你必須先利用phpmyadmin在主機的mysql建立osTube的資料庫,例如:osTube2
    和可以管理osTube資料庫的使用者帳號、密碼。

    先確定這個步驟有無完成!

    回覆該留言

    Reply to this comment
  4. |

    我在 8.04 lat-top 安裝的時候
    總是卡在第一步驟的最後一欄
    訊息是↓
    (The database could not be created)

    在php-cli, php5-gd那些部分確定已安裝 也都是is actived
    為何告知我無法建立資料庫?

    多謝

    回覆該留言

    Reply to this comment
  5. |

    好的 謝謝^^

    回覆該留言

    Reply to this comment
  6. |

    To desk 8.04

    laptop版本應該不太適合吧!因為影片轉檔需要較多的硬體資源,但是如果要安裝測試看看,應該還是可以裝起來的!

    回覆該留言

    Reply to this comment
  7. |

    請問 這套系統適合裝在Ubuntu 8.04 lap-top版上嗎?

    回覆該留言

    Reply to this comment
  8. |

    [...] osTube 2.0 升級 osTube 2.1 過程(convert error 的問題也可以參考) BY Shian`s Blog osTube 2.2安裝於Ubuntu 8.04.1 LTS 伺服器版本  BY    Shian`s Blog ubuntu-8.04 with LAMP   BY   minshain’s LAB  [...]

    Reply to this comment
  9. |

    [...] osTube 2.2安裝於Ubuntu 8.04.1 LTS 伺服器版本 [...]

    Reply to this comment

Leave a Comment

(若看不到驗證碼,請重新整理網頁。)