Difference between revisions of "ViMP: Instalasi"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 27: | Line 27: | ||
apt-get install apache2 libapache2-mod-php5 php5-cli php5-mysql php5-gd \ | apt-get install apache2 libapache2-mod-php5 php5-cli php5-mysql php5-gd \ | ||
− | php5-xsl php5-curl mysql-server mplayer mencoder ffmpeg flvtool2 | + | php5-xsl php5-curl mysql-server mplayer mencoder ffmpeg flvtool2 lamp-server^ \ |
+ | gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3 gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly | ||
− | Untuk sistem 64 bit gunakan | + | Untuk Debian sistem 32 bit gunakan |
+ | |||
+ | apt-get install w32codecs | ||
+ | |||
+ | Untuk Debian sistem 64 bit gunakan | ||
apt-get install w64codecs | apt-get install w64codecs | ||
Line 42: | Line 47: | ||
mkdir -p /var/www/showvid/logs | mkdir -p /var/www/showvid/logs | ||
chown -R www-data:www-data /var/www/showvid | chown -R www-data:www-data /var/www/showvid | ||
+ | |||
+ | ===Jika Ingin menggunakan Virtual Host=== | ||
+ | |||
+ | Lakukan | ||
cd /etc/apache2/sites-available | cd /etc/apache2/sites-available | ||
Line 54: | Line 63: | ||
ServerName showvid.com | ServerName showvid.com | ||
ServerAlias www.showvid.com | ServerAlias www.showvid.com | ||
+ | <Directory "/v <VirtualHost *:80> | ||
+ | DocumentRoot "/var/www/showvid/data/web" | ||
+ | ServerName showvid.com | ||
+ | ServerAlias www.showvid.com | ||
+ | ServerAlias 127.0.0.1 | ||
+ | ServerAlias localhost | ||
+ | <Directory "/var/www/showvid/data/web"> | ||
+ | AllowOverride All | ||
+ | RewriteEngine On | ||
+ | Options -Indexes FollowSymLinks | ||
+ | </Directory> | ||
+ | ErrorLog /var/www/showvid/logs/error.log | ||
+ | CustomLog /var/www/showvid/logs/access.log combined | ||
+ | LogLevel error | ||
+ | </VirtualHost>ar/www/showvid/data/web"> | ||
+ | AllowOverride All | ||
+ | RewriteEngine On | ||
+ | Options -Indexes FollowSymLinks | ||
+ | </Directory> | ||
+ | ErrorLog /var/www/showvid/logs/error.log | ||
+ | CustomLog /var/www/showvid/logs/access.log combined | ||
+ | LogLevel error | ||
+ | </VirtualHost> | ||
+ | |||
+ | |||
+ | Jika sedang belajar | ||
+ | |||
+ | vi /etc/apache2/sites-available/showvid | ||
+ | |||
+ | <VirtualHost *:80> | ||
+ | DocumentRoot "/var/www/showvid/data/web" | ||
+ | ServerName showvid.com | ||
+ | ServerAlias www.showvid.com | ||
+ | ServerAlias 127.0.0.1 | ||
+ | ServerAlias localhost | ||
<Directory "/var/www/showvid/data/web"> | <Directory "/var/www/showvid/data/web"> | ||
AllowOverride All | AllowOverride All | ||
Line 70: | Line 114: | ||
/etc/init.d/apache2 reload | /etc/init.d/apache2 reload | ||
+ | ==Konfigurasi PHP== | ||
+ | Edit | ||
+ | |||
+ | vi /etc/php5/apache2/php.ini | ||
+ | |||
+ | pastikan | ||
+ | |||
+ | upload_max_filesize: 1024M | ||
+ | post_max_size: 1024M | ||
+ | memory_limit: 512M | ||
+ | |||
+ | Edit | ||
+ | |||
+ | vi /etc/php5/cli/php.ini | ||
+ | |||
+ | pastikan | ||
+ | |||
+ | upload_max_filesize: 1024M | ||
+ | post_max_size: 1024M | ||
+ | memory_limit: 512M | ||
+ | |||
+ | Restart | ||
+ | |||
+ | /etc/init.d/apache2 restart | ||
+ | |||
+ | ==Konfigurasi Database== | ||
+ | |||
+ | mysqladmin -p create showvid | ||
+ | |||
+ | mysql -u root -p | ||
+ | CREATE USER showvid@localhost IDENTIFIED BY 'showvid'; | ||
+ | GRANT ALL PRIVILEGES ON showvid.* TO showvid; | ||
+ | FLUSH PRIVILEGES; | ||
+ | exit | ||
+ | |||
+ | Jika sedang belajar dengan password mysql 123456 dapat menggunakan perintah | ||
+ | |||
+ | mysqladmin -p123456 create showvid | ||
+ | |||
+ | mysql -u root -p123456 | ||
+ | CREATE USER showvid@localhost IDENTIFIED BY 'showvid'; | ||
+ | GRANT ALL PRIVILEGES ON showvid.* TO showvid; | ||
+ | FLUSH PRIVILEGES; | ||
+ | exit | ||
+ | |||
+ | ==Instalasi Source Guardian== | ||
+ | |||
+ | Bisa di download dari | ||
+ | |||
+ | http://www.sourceguardian.com/ixeds/ | ||
+ | |||
+ | Tapi oleh vimp sudah di sediakan lakukan | ||
+ | |||
+ | mkdir /tmp/loader | ||
+ | cd /tmp/loader | ||
+ | tar xfz /var/www/showvid/data/data/loader.tar.gz | ||
+ | |||
+ | Check Versi PHP | ||
+ | |||
+ | php -i | more | ||
+ | |||
+ | akan keluar seperti | ||
+ | |||
+ | PHP Version => 5.3.5-1ubuntu7.2 | ||
+ | |||
+ | Copy ixed yang sesuai dengan versi PHP | ||
+ | |||
+ | cp /tmp/loader/Linux_x86-32/ixed.5.3.lin /usr/lib/php5/20090626+lfs/ | ||
+ | |||
+ | |||
+ | ===Edit sourceguardian.ini=== | ||
+ | |||
+ | cd /etc/php5/conf.d/ | ||
+ | touch sourceguardian.ini | ||
+ | |||
+ | vi /etc/php5/conf.d/sourceguardian.ini | ||
+ | |||
+ | isi dengan | ||
+ | |||
+ | [sourceguardian] | ||
+ | zend_extension=/usr/lib/php5/20090626+lfs/ixed.5.3.lin | ||
+ | |||
+ | save & restart apache | ||
+ | |||
+ | /etc/init.d/apache2 restart | ||
+ | |||
+ | ==Instalasi ViMP== | ||
+ | |||
+ | mkdir /var/www/showvid/data | ||
+ | cp vimp.framework-2.1.3-r19311-community.tar.gz /var/www/showvid/data | ||
+ | cd /var/www/showvid/data | ||
+ | tar xvzf vimp.framework-2.1.3-r19311-community.tar.gz | ||
+ | rm vimp.framework-2.1.3-r19311-community.tar.gz | ||
+ | chmod +x symfony | ||
+ | |||
+ | Jalankan symfony | ||
+ | |||
+ | cd /var/www/showvid/data | ||
+ | ./symfony framework:init mysql://showvid:showvid@localhost/showvid | ||
+ | |||
+ | Edit crontab | ||
+ | |||
+ | crontab -e | ||
+ | |||
+ | isi dengan | ||
+ | |||
+ | */1 * * * * /var/www/showvid/data/scripts/sync_new_uploads.sh > /dev/null 2>&1 | ||
+ | |||
+ | |||
+ | ==Akses Web== | ||
+ | http://localhost/ | ||
==Referensi== | ==Referensi== |
Latest revision as of 14:06, 28 August 2011
Kebutuhan Hardware
- Processor Dual-Core atau yang lebih baik paling tidak 2.5GHz.
- RAM 4+ GB
- Harddisk 250+ GB (SATA-II atau SAS), 500 GB lebih baik.
Kebutuhan Software
Apache2:
- Version 2.2 recommended
- mod_rewrite enabled
PHP:
- Version 5.2.6 atau yang lebih tinggi
- GD, mysql, XSL & cURL extension di instal
- PHP CLI (Command Line Interface) di instal
MySQL:
- Version 5.0 atau yang lebih baik
- InnoDB storage engine
Transcoding:
- MEncoder / MPlayer 1.0RC2 atau yang lebih baru
- FFmpeg
- Paket codec tambahan
Instalasi
Instalasi paket yang dibutuhkan
apt-get install apache2 libapache2-mod-php5 php5-cli php5-mysql php5-gd \ php5-xsl php5-curl mysql-server mplayer mencoder ffmpeg flvtool2 lamp-server^ \ gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3 gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly
Untuk Debian sistem 32 bit gunakan
apt-get install w32codecs
Untuk Debian sistem 64 bit gunakan
apt-get install w64codecs
Enable beberapa fitur
a2enmod rewrite
Konfigurasi Apache
mkdir -p /var/www/showvid/data mkdir -p /var/www/showvid/logs chown -R www-data:www-data /var/www/showvid
Jika Ingin menggunakan Virtual Host
Lakukan
cd /etc/apache2/sites-available touch showvid
buat virtual host
vi /etc/apache2/sites-available/showvid
<VirtualHost *:80> DocumentRoot "/var/www/showvid/data/web" ServerName showvid.com ServerAlias www.showvid.com <Directory "/v <VirtualHost *:80> DocumentRoot "/var/www/showvid/data/web" ServerName showvid.com ServerAlias www.showvid.com ServerAlias 127.0.0.1 ServerAlias localhost <Directory "/var/www/showvid/data/web"> AllowOverride All RewriteEngine On Options -Indexes FollowSymLinks </Directory> ErrorLog /var/www/showvid/logs/error.log CustomLog /var/www/showvid/logs/access.log combined LogLevel error </VirtualHost>ar/www/showvid/data/web"> AllowOverride All RewriteEngine On Options -Indexes FollowSymLinks </Directory> ErrorLog /var/www/showvid/logs/error.log CustomLog /var/www/showvid/logs/access.log combined LogLevel error </VirtualHost>
Jika sedang belajar
vi /etc/apache2/sites-available/showvid
<VirtualHost *:80> DocumentRoot "/var/www/showvid/data/web" ServerName showvid.com ServerAlias www.showvid.com ServerAlias 127.0.0.1 ServerAlias localhost <Directory "/var/www/showvid/data/web"> AllowOverride All RewriteEngine On Options -Indexes FollowSymLinks </Directory> ErrorLog /var/www/showvid/logs/error.log CustomLog /var/www/showvid/logs/access.log combined LogLevel error </VirtualHost>
Enable & reload
a2dissite default a2ensite showvid /etc/init.d/apache2 reload
Konfigurasi PHP
Edit
vi /etc/php5/apache2/php.ini
pastikan
upload_max_filesize: 1024M post_max_size: 1024M memory_limit: 512M
Edit
vi /etc/php5/cli/php.ini
pastikan
upload_max_filesize: 1024M post_max_size: 1024M memory_limit: 512M
Restart
/etc/init.d/apache2 restart
Konfigurasi Database
mysqladmin -p create showvid
mysql -u root -p CREATE USER showvid@localhost IDENTIFIED BY 'showvid'; GRANT ALL PRIVILEGES ON showvid.* TO showvid; FLUSH PRIVILEGES; exit
Jika sedang belajar dengan password mysql 123456 dapat menggunakan perintah
mysqladmin -p123456 create showvid
mysql -u root -p123456 CREATE USER showvid@localhost IDENTIFIED BY 'showvid'; GRANT ALL PRIVILEGES ON showvid.* TO showvid; FLUSH PRIVILEGES; exit
Instalasi Source Guardian
Bisa di download dari
http://www.sourceguardian.com/ixeds/
Tapi oleh vimp sudah di sediakan lakukan
mkdir /tmp/loader cd /tmp/loader tar xfz /var/www/showvid/data/data/loader.tar.gz
Check Versi PHP
php -i | more
akan keluar seperti
PHP Version => 5.3.5-1ubuntu7.2
Copy ixed yang sesuai dengan versi PHP
cp /tmp/loader/Linux_x86-32/ixed.5.3.lin /usr/lib/php5/20090626+lfs/
Edit sourceguardian.ini
cd /etc/php5/conf.d/ touch sourceguardian.ini
vi /etc/php5/conf.d/sourceguardian.ini
isi dengan
[sourceguardian] zend_extension=/usr/lib/php5/20090626+lfs/ixed.5.3.lin
save & restart apache
/etc/init.d/apache2 restart
Instalasi ViMP
mkdir /var/www/showvid/data cp vimp.framework-2.1.3-r19311-community.tar.gz /var/www/showvid/data cd /var/www/showvid/data tar xvzf vimp.framework-2.1.3-r19311-community.tar.gz rm vimp.framework-2.1.3-r19311-community.tar.gz chmod +x symfony
Jalankan symfony
cd /var/www/showvid/data ./symfony framework:init mysql://showvid:showvid@localhost/showvid
Edit crontab
crontab -e
isi dengan
*/1 * * * * /var/www/showvid/data/scripts/sync_new_uploads.sh > /dev/null 2>&1
Akses Web
http://localhost/