LAMP Server installation
# apt-get install
apache2 mariadb-server php5 php5-gd php5-mysql php5-curl php5-xsl
php5-cli php-pear unzip
apt-get install
imagemagick php5-imagick
php5enmod imagick
flvtool2:
calculate a lot of meta data, insert an onMetaData tag, cut FLV
files, add cue points and more
apt-get install ruby
installing via ruby
gem
# gem install
flvtool2
mp4box(GPAC) :
manipulations on multimedia files like AVI, MPG, TS, but mostly on
ISO media files like MP4, 3GP
apt-get install
gpac mediainfo
Configuring PHP Configurations
nano
/etc/php5/apache2/php.ini
output_buffering = off
max_execution_time = 7200
max_input_time = 300
memory_limit = 256M
display_errors = on
post_max_size = 500M
upload_max_filesize = 500M
magic_quotes_gpc = on
magic_quotes_runtime = off
register_globals = off
magic_quotes_runtime = off
register_globals = off
safe_mode = off
restart apache2
/etc/init.d/apache2 restart
Configuring MariaDB server
> CREATE DATABASE clipbucketdb;
> CREATE USER 'clipbucketuser'@'localhost' IDENTIFIED BY 'Pa$$worD';
> GRANT ALL PRIVILEGES ON clipbucketdb.* TO 'clipbucketuser'@'localhost';
> FLUSH PRIVILEGES;
> EXIT;
> CREATE USER 'clipbucketuser'@'localhost' IDENTIFIED BY 'Pa$$worD';
> GRANT ALL PRIVILEGES ON clipbucketdb.* TO 'clipbucketuser'@'localhost';
> FLUSH PRIVILEGES;
> EXIT;
Configuring Apache Web Server
# touch /etc/apache2/sites-available/clipbucket.conf
Cd /etc/apache2/site-enabled
# ln -s ../sites-available/clipbucket.conf clipbucket.conf
# nano /etc/apache2/sites-available/clipbucket.conf
# ln -s ../sites-available/clipbucket.conf clipbucket.conf
# nano /etc/apache2/sites-available/clipbucket.conf
#
ServerAdmin info@clipbucket.linoxide.com
DocumentRoot /var/www/clipbucket/
ServerName clipbucket.linoxide.com
ServerAlias www.clipbucket.linoxide.com
Options FollowSymLinks
AllowOverride All
ErrorLog /var/log/apache2/clipbucket.linoxide.com-error_log
CustomLog /var/log/apache2/clipbucket.linoxide.com-access_log common
#
ServerAdmin info@clipbucket.linoxide.com
DocumentRoot /var/www/clipbucket/
ServerName clipbucket.linoxide.com
ServerAlias www.clipbucket.linoxide.com
Options FollowSymLinks
AllowOverride All
ErrorLog /var/log/apache2/clipbucket.linoxide.com-error_log
CustomLog /var/log/apache2/clipbucket.linoxide.com-access_log common
#
or
Alias /clipbucket “ /var/www/”
Options Indexes FollowSymLinks
AllowOverride All
Allow from all
Order allow, deny
unzip clipbucket-2.8.v3354-stable.zip
move only
clibucket-4763/upload folder to /var/www/clipbucket
# mkdir /var/www/clipbucket
# cp -r /tmp/clipbucket-2.8.v3354-stable/upload/* /var/www/clipbucket/
# cp /tmp/clipbucket-2.8.v3354-stable/upload/.htaccess /var/www/clipbucket/
# cp -r /tmp/clipbucket-2.8.v3354-stable/upload/* /var/www/clipbucket/
# cp /tmp/clipbucket-2.8.v3354-stable/upload/.htaccess /var/www/clipbucket/
# chmod -R 777 /var/www/clipbucket/
# chown www-data:www-data -R /var/www/clipbucket/
a2enmod rewrite
# crontab -e
* * * * * php -q /var/www/clipbucket/actions/video_convert.php
* * * * * php -q /var/www/clipbucket/actions/verify_converted_videos.php
0 0,12,13 * * * php -q /var/www/clipbucket/actions/update_cb_stats.php
* * * * * php -q /var/www/clipbucket/actions/verify_converted_videos.php
0 0,12,13 * * * php -q /var/www/clipbucket/actions/update_cb_stats.php
phpshield
php –i | grep extension_dir
unzip
mv phpshield.5.2.lin /usr/lib/php5/20090626/
nano /etc/php5/apache2/php.ini
extension="phpshield.5.2.lin"
No comments:
Post a Comment