Difference between revisions of "ViMP: Instalasi"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
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 101: | Line 110: | ||
mysql -u root -p | 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'; | CREATE USER showvid@localhost IDENTIFIED BY 'showvid'; | ||
GRANT ALL PRIVILEGES ON showvid.* TO showvid; | GRANT ALL PRIVILEGES ON showvid.* TO showvid; | ||
Line 110: | Line 129: | ||
mkdir /var/www/showvid/data | mkdir /var/www/showvid/data | ||
+ | cp vimp.framework-2.1.3-r19311-community.tar.gz /var/www/showvid/data | ||
cd /var/www/showvid/data | cd /var/www/showvid/data | ||
− | tar xvzf vimp.framework- | + | tar xvzf vimp.framework-2.1.3-r19311-community.tar.gz |
− | rm vimp.framework- | + | rm vimp.framework-2.1.3-r19311-community.tar.gz |
chmod +x symfony | chmod +x symfony | ||
Revision as of 10:36, 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 "/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
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
./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