Skip to main content

Install PHPMotion di Ubuntu 12.04 sebagai Self Hosted Video Player



kali ini saya mencoba membuat Appliace untuk Server Video Player seperti Youtube  , dengan menggunakan Applikasi PHPMotion , saya menginstall di Ubuntu 12.04 LTS 64 Bit di dalam VM ,

Installasi :
1. Instalasi System Ubuntu 12.04 di Virtualbox , tutorial
    Setting /etc/hosts,/etc/hostname , /etc/resolv.conf
    kemudian apt-get update

2. Login sebagai root
    sudo su

3. Install Paket untuk Phpmotion
    apt-get install apache2 mysql-server php5 ffmpeg flvtool2 mencoder lame libogg0 php5-ffmpeg php5-curl curl libapache2-mod-php5 php5-mysql lynx-cur libapache2-mod-speedycgi



    Hasil File download paketnya sekitar 230 MB , tunggulah dengan sabar :)

4. Download phpmotion di phpmotion.com ( masukan alamat email untuk download)
    sebelum download pastikan versi PHP anda 
    buat file info.php simpan di var/www
    <?php
     phpinfo();
     ?>   
   
Download sesuai versi PHP anda ,

5. kemudian simpan file download phpmotion di var/www/
    unzip phpmotion.zip
 
6. ubah kepemilikan phpmotion
    chown -Rf www-data.www-data /var/www/phpmotion
7. Ubah Permission
    chmod -Rf 744 /var/www/phpmotion

    chmod -Rf 755 /var/www/phpmotion/cgi-bin 


8. Setting konfigurasi php, edit file "/etc/php5/apache2/php.ini"
    edit menjadi seperti berikut:
    open_basedir = (no value)
    upload_max_filesize = 100M
    post_max_size = 100M
    max_execution_time = 1500
    session.gc_maxlifetime = 14000
    safe_mode = off
    enable_dl = On
  lalu ketik perintah : php -i|grep php.ini 
  /etc/php5/cli/php.ini 
    tambahkan extension dibawah ini ke file etc/php5/apache2/php.ini  dan etc/php5/cli/php.ini di urutan         baris paling bawah .
    extension = "ixed.5.3.lin"
   extension_ts = "ixed.5.3ts.lin"

9. nano /etc/apache2/sites-available/default

 <VirtualHost *:80>

 DocumentRoot /var/www/phpmotion
 <Directory /var/www/phpmotion/>
 Options Indexes FollowSymLinks MultiViews
 AllowOverride All
 Order allow,deny
 allow from all
 </Directory>
 ScriptAlias /cgi-bin/ /var/www/phpmotion/cgi-bin/
 </VirtualHost>

10. Buat database untuk phpmotion
     mysql -u root -p
     create database phpmotion;
     exit;

11. Edit "/var/www/phpmotion/.htaccess" tambahkan text
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    diatas text RewriteEngine On


   Aktifkan modul rewrite
   a2enmod rewrite

   Restart service apache
   /etc/init.d/apache2 restart
12. buka Ipaddress_phpmotion atau server saya  di 192.168.1.88/phpmotion/setup/


13.
14.
15.
16.
17 . Hapus file /var/www/phpmotion/setup
       rm -r /var/www/phpmotion/setup 

Buka ipserver_phpmotion , apabila muncul error seperti dibawah ini : 

ikuti panduan ini : Lihat Panduan ini !!!
karena saya install di linux ubuntu 64 bit , maka anda musti download file phpshield di http://www.phpshield.com/loaders/


pilih sesuai linux 64 bit anda , download , Unzip ke /usr/lib/php5/20090626
atau bisa dicek lokasi nya dengan perintah : php -i|grep extension_dir

service apache2 restart



silahkan dicoba ...upload image , video anda :)


Taufan M|email_me


Comments

Popular posts from this blog

[Arsip] Uninstal Zimbra Mail Server

UnInstalling Zimbra on Linux Uninstall Directions for Linux/All Other Operating Systems As root: 1) Run the commands: su – zimbra zmcontrol stop exit (you should be root after you run exit) 2a) Run the command:  ps -ef | grep -i zimbra If you see running processes 2b) Kill any lingering processes:  kill -9 <pid> 3a) Run the command:  df If you see "amavisd" 3b) run command:  umount /opt/zimbra/amavisd<-new-blah>/tmp 4)  cd /<tmp_tar_install_dir>/zcs/ 5) Run the command:  ./install.sh -u 6) Run the following commands to complete the unistall: rm -rf /opt/zimbra rm -rf /var/log/*zimbra* rm -rf /tmp/*zimbra* rm -rf /tmp/hsperfdata* rm -rf /tmp/install.* rm -rf /tmp/*swatch* rm -rf /tmp/log* Ensure that you removed ALL the files owned by the user zimbra AND that contain the name "zimbra" in: /var/log/ /tmp/ 7) Run the following commands to delete the users and groups: userdel zimbra userdel postfix groupdel zimbra groupdel postfix 8) Remove th...

Membuat fungsi “terbilang” Excel menggunakan macro VBA

Jika Anda ingin menerjemahkan Angka menjadi Kata-kata , contohnya saja dalam pembuatan Form Kwitansi suatu Transaksi , anda dapat membuatnya dengan menggunakan aplikasi Microsoft Excel dan Macro Visual Basic Application ( VBA ) .saya menggunakan Excel 2007 Untuk membuatnya silahkan ikuti langkah-langkah dibawah ini :  buka Microsoft Excel , lalu tekan alt+F11  Setelah Muncul Microsoft Visual Basic , lalu pilih Insert > module Isikan code Seperti diatas  silahkan anda download source code nya disini !! Save Book ( ctrl+S)   Save As type : pilih Excel Macro - Enable Workbook  (*.xlsm) lalu klik Save  pilih File > Close and return to microsoft excel , macro sudah dibuat , sekarang kita tinggal test macro tersebut Tempatkan cell A2 , pilih Formulas > Insert Function lalu pilih Category User Defined Terlihat Function terbilang yang sudah dibuat tadi di VBA , klik Ok Akan Tampil Form Seperti diatas ,  Nilai_angka  arahkan ke Cell A1 ( ters...