Mudanças entre as edições de "Clipbucket em Debian Squeeze"
(Criou página com 'página do projeto http://clip-bucket.com/ == ajustes no sources.list == <source lang="bash"> echo deb http://ftp.debian.org/debian squeeze main contrib non-free > /etc/apt/s...') |
|||
Linha 64: | Linha 64: | ||
echo "php_flag safe_mode off" >> /var/www/clipbucket/.htaccess | echo "php_flag safe_mode off" >> /var/www/clipbucket/.htaccess | ||
echo "php_flag magic_quotes_gpc on" >> /var/www/clipbucket/.htaccess | echo "php_flag magic_quotes_gpc on" >> /var/www/clipbucket/.htaccess | ||
− | </ | + | </source> |
== criando banco de dados == | == criando banco de dados == | ||
Linha 72: | Linha 72: | ||
FLUSH PRIVILEGES; | FLUSH PRIVILEGES; | ||
</source> | </source> | ||
+ | |||
== pós-instalação == | == pós-instalação == | ||
Edição das 22h24min de 24 de outubro de 2013
página do projeto http://clip-bucket.com/
ajustes no sources.list
echo deb http://ftp.debian.org/debian squeeze main contrib non-free > /etc/apt/sources.list
echo deb http://security.debian.org/ squeeze/updates main non-free contrib >> /etc/apt/sources.list
echo deb http://ftp.debian.org/debian/ squeeze-updates main non-free contrib >> /etc/apt/sources.list
echo deb http://www.deb-multimedia.org squeeze main non-free >> /etc/apt/sources.list
apt-get update
apt-get install deb-multimedia-keyring locales-all locales
apt-get update
apt-get upgrade
ajustando local e idioma do sistema
- dpkg-reconfigure tzdata (America/Sao_Paulo)
- dpkg-reconfigure locales (pt_BR.UTF-8)
dependencias via apt
apt-get install unzip php5-curl php-pear gpac apache2 mysql-server php5 \
php5-mysql libapache2-mod-php5 php5-gd mplayer mencoder flvtool2 lame php5-cgi \
ffmpeg php5-ffmpeg libboost-all-dev scons nano
compilar flvtool++
cd /usr/src
wget http://ffmpeg-install-centos.googlecode.com/files/flvtool%2B%2B-1.2.1.tar.gz
mkdir flvtool++
tar zxf flvtool++-1.2.1.tar.gz -C flvtool++
cd flvtool++
scons
mv flvtool++ /usr/local/bin
instalando clipbucket
cd /usr/src
wget http://superb-dca2.dl.sourceforge.net/project/clipbucket/ClipBucket%20v2/clipbucket-2.6-r738-security-fixed.zip
wget http://www.joemg.host56.com/clipbucket/ffmpeg.class.gz
gunzip ffmpeg.class.gz
unzip clipbucket-2.6-r738-security-fixed.zip
mv clipbucket-2.6-r738-security-fixed/upload /var/www/clipbucket
mv ffmpeg.class /var/www/clipbucket/includes/classes/conversion/ffmpeg.class.php
sed -i '818s/Off/On/g' /etc/php5/apache2/php.ini
sed -i '1506s/1440/14400/g' /etc/php5/apache2/php.ini
sed -i '11s/None/All/g' /etc/apache2/sites-available/default
sed -i '69s/2/0/g' /var/www/clipbucket/includes/common.php
chown -R www-data: /var/www/clipbucket/
a2enmod rewrite
/etc/init.d/apache2 restart
ajuste no .htaccess
echo "php_flag display_errors off" >> /var/www/clipbucket/.htaccess
echo "php_value max_input_time 86400" >> /var/www/clipbucket/.htaccess
echo "php_value max_execution_time 86400" >> /var/www/clipbucket/.htaccess
echo "php_value max_post_size 500M" >> /var/www/clipbucket/.htaccess
echo "php_value output_buffering on" >> /var/www/clipbucket/.htaccess
echo "php_value post_max_size 500M" >> /var/www/clipbucket/.htaccess
echo "php_value upload_max_filesize 500M" >> /var/www/clipbucket/.htaccess
echo "php_flag safe_mode off" >> /var/www/clipbucket/.htaccess
echo "php_flag magic_quotes_gpc on" >> /var/www/clipbucket/.htaccess
criando banco de dados
grant all on clipbucket.* to clipbucket@localhost identified by 'suasenha';
create database clipbucket;
FLUSH PRIVILEGES;
pós-instalação
apague o diretório cb_install
rm /var/www/clipbucket/cb_install -fr
Para vê o status dos modulos, ffmpeg, Tool Box > Server Modules Info
Stats And Configurations > Language Settings
Use crons, altere para Yes
Acrescentar MPG em Website Configurations > Uploading and Conversion Settings > Allowed extensios
- ajustar fqdn hostname > 127.0.0.1 clip.quijaua.net clip localdomain.localhost localhost - alterar país > em Default Country deixar Brazil - alterar horário > em Default Time Zone deixar (GMT -3:00 Brazil, Bueno Aires, Georgetown) - altera localização do ffmpeg para /usr/bin/ffmpeg /usr/bin/MP4Box /usr/bin/flvtool2 /usr/bin/mplayer /usr/local/bin/flvtool++
tradução para pt-br
conversão no cron
echo "# Clipbucket
*/1 * * * * root php -q /var/www/clipbucket/actions/video_convert.php
*/1 * * * * root php -q /var/www/clipbucket/actions/verify_converted_videos.php
0 0,12,13 * * * root php -q /var/www/clipbucket/actions/update_cb_stats.php" >> /etc/crontab
/etc/init.d/cron restart
/etc/init.d/cron force-reload
transferido vídeos em massa
coloque os vídeos no diretório /var/www/clipbucket/files/mass_uploads e depois vá em Videos > Upload Videos > Marque unconteurouzad
usam clipbucket
- http://reimagroproducoes.com/videos/video/UBM865N8WHMG/Funkalister
- http://abt-br.org.br/clip/upload/
- http://ufftube.uff.br/video/ABO6Y1R4N8MM/Bate-papo-com-Walter-Hugo-Mae
- http://cameraweb.ccuec.unicamp.br/
Requerimentos
- Linux Server (some old distributions are not supported)
- Apache Web Server
- MySQL (version 4 +)
- PHP (version PHP 5)
- GD library Enabled (v2 or higher)
- Mplayer + Mencoder (http://www.mplayerhq.hu/design7/dload.html)
- Flv2tool (http://inlet-media.de/flvtool2)
- Libogg + Libvorbis (http://www.xiph.org/downloads)
- LAME MP3 Encoder (http://lame.sourceforge.net)
- Apache mod_rewrite Enabled
- Must be able to run PHP from the command line (CLI) with exec()
- Allowed execution of background processes with exec("binary > /dev/null &")
- CGI-BIN Access
- FFmpeg
- FFmpeg-PHP
- AMR
Configurações no PHP
- safe_mode = off
- max_execution_time = 1000 (recommended to prevent timeouts during video upload/conversion)
- session.gc_maxlifetime = 14000 (recommended to prevent session expires during video upload)
- open_basedir = (no value)
- output_buffering = on
- upload_max_filesize = 100M (recommended maximum video upload size in MB)
- post_max_size = 100M (recommended maximum video upload size in MB)