2010年11月24日 星期三

Ubuntu 10.04 LTS 安裝 osTube 2.6 with php 5.3.x

這篇主要的目的是當初為了在 Ubuntu 10.04 下能夠設置 osTube + PHP  5.3.x 而找出來, 因為 PHP 5.3.X 改變了一些參數的傳送, 造成部分應用程式無法正確的使用; 經過實做, 是可以用的, 各位可以參考看看!

參考來源: http://www.ostube.de/node/5497

I do not in any way guarantee this to be complete or 100% accurate. These are the steps I took to get my install working and some of these steps are not necessarily in the correct order but they should work. Maybe this will help someone. Bill Dorminy June 28th 2010.

Steps to install and configure Ostube on Ubuntu 10.4 Lucid.



Install Ubuntu 10.4 Server and configure with LAMP and OpenSSH

Update serversudo apt-get update

sudo apt-get dist-upgrade

Install FTP server

sudo apt-get install vsftpd

Make FTP server writable

Sudo vi /etc/vsftpd.conf

remove # from write_enable=YES

restart FTP server

sudo service vsftpd restart

Change DHCP address to static

sudo vi /etc/network/interfaces

(Shift R will allow changes)

iface eth0 inet static

address x.x.x.x

netmask 255.x.x.x

network x.x.x.x

gateway x.x.x.x

esc to exit edit mode

to save, press shift :X

restart networking

sudo /etc/init.d/ networking restart

Optional Webmin Install

sudo apt-get install perl5 libnet-ssleay-perl

cd /usr/local/src

sudo wget http://prdownloads.sourceforge.net/webadmin/webmin-1.510.tar.gz

sudo tar xzvf webmin-1.510.tar.gz



cd webmin-1.510

sudo sh setup.sh

Prereq. installs

sudo apt-get install mencoder

sudo apt-get install ruby

sudo apt-get install flvtool2

sudo apt-get php5-cli

temporarily make /var/www writable



sudo chmod -R 777 /var/www

FTP the ostube tar file to /var/www

extract files in terminal

cd /var/www

tar xvzf osTube_2.6_osTube_2.6_community_edt.tar.gz

now we have to ensure PHP is configured correctly

enable rewrite mod

sudo a2enmod rewrite

restart apache

sudo /etc/init.d/apache2 restart

make cg-bin writeable sudo chmod 777 /usr/lib/cgi-bin

copy /var/www/cgi-bin/*.* to /usr/lib/cgi-bin using ftp server

edit these files to insure AllowOverRide ALL is set

/etc/apache2/sites-enabled

/etc/apache2/sites-available/default

Edit /etc/php5/apache2/php.ini and change the upload max file size from 2M to something larger like 100M

restart apache

sudo /etc/init.d/apache2 restart

Download PHP5.3 update files

http://jetzweb.de/bluelotus/auvica_temp/osTube-Update-for-PHP5.3.tar.gz

Copy PHP 5.3 update files



make a dir in /var/www

cd /var/www/update

tar xvzf osTube-Update-for-PHP5.3.tar.gz

Be sure and read the readme file for important information!

copy and replace files from update to each respective folder

DO NOT COPY class.banner.php file or there could be errors.

now run

sudo apt-get install php5-gd

sudo /etc/init.d/apache2 restart

remove/rename install folder.

ensure owner and permissions of /usr/lib/cgi-bin are set

sudo chmod -R 755 /usr/lib/cgi-bin

sudo chown -R www-data /usr/lib/cgi-bin

---

http://www.ostube.de/node/1941#comment-2598

## pre-requisites



apt-get install libogg0 libogg-dev

apt-get install libvorbis-dev

apt-get install mplayer mencoder ffmpeg

apt-get install php5-gd

apt-get install ruby

##essential codecs



wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.... && tar xvjf essential-20061022.tar.bz2



mkdir /usr/local/lib/codecs/

cp -R essential-20061022/* /usr/local/lib/codecs/

chmod -R 755 /usr/local/lib/codecs/

##Install FLVTool



wget http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz

tar xvzf flvtool2_1.0.5_rc6.tgz



apt-get install php5-dev

cd flvtool2_1.0.5_rc6

ruby setup.rb config

ruby setup.rb setup

ruby setup.rb install

## Install some more dependencies



apt-get install php5-ffmpeg

apt-get install php5-cli

apt-get install php-pear

## Install the Ioncube loaders



wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.t...

tar xvzf ioncube_loaders_lin_x86.tar.gz



cd ioncube

cp ioncube_loader_lin_5.2.so /usr/lib/apache2/modules/

cp ioncube_loader_lin_5.2.so /usr/lib/php5/20060613+lfs/

##add ion cube extensions



##vi /etc/php5/apache2/php.ini

## add the line zend_extension=ioncube_loader_lin_5.2.so

echo zend_extension=ioncube_loader_lin_5.2.so >> /etc/php5/apache2/php.ini

---

4 則留言:

  1. 感謝。終於安裝成功。

    謝謝。

    我的系統是 Ubuntu 10.10

    回覆刪除
  2. 對了,php 5.3 的修正檔
    http://jetzweb.de/bluelotus/auvica_temp/osTube-Update-for-PHP5.3.tar.gz

    要複製過去的檔案中,有個 class.database.php
    的這個檔要複製過去,不然要跑不出來。

    回覆刪除
  3. 謝謝! 希望有所幫助啦!

    回覆刪除
  4. 了解! 我因為在 Fedora 上已經實做OK! 所以這個也是試一下可以用後, 就沒有再下一步, 畢竟要移轉整個資料還是麻煩的! 謝謝您的回饋!

    回覆刪除