Difference between revisions of "ViMP: Instalasi"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 69: | Line 69: | ||
a2ensite showvid | a2ensite showvid | ||
/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 | ||
+ | |||
+ | |||
+ | ==Instalasi== | ||
+ | |||
+ | mkdir /var/www/showvid/data | ||
+ | cd /var/www/showvid/data | ||
+ | tar xvzf vimp.framework-<version>.tar.gz | ||
+ | rm vimp.framework-<version>.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 | ||
Revision as of 07:17, 27 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 w32codecs
Untuk 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
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
Instalasi
mkdir /var/www/showvid/data cd /var/www/showvid/data tar xvzf vimp.framework-<version>.tar.gz rm vimp.framework-<version>.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