Introduced ClipBucket 2.8.1 to CentOS 7 (minimum configuration)

Add repository
# rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
# yum -y install epel-release

Required package installation
# yum -y install httpd mariadb-server mariadb php php-devel php-gd php-mysql php-curl php-xsl php-cli php-mbstring php-pear unzip php-pecl-imagick ImageMagick ImageMagick-devel ImageMagick-perl lshw ffmpeg ruby gpac mediainfo mplayer
# gem install flvtool2

Automatic startup setting of service
# systemctl enable httpd.service
# systemctl enable mariadb.service

SELINUX disable
# vi /etc/selinux/config
SELINUX=enforcing ⇒ SELINUX=disabled

php.ini config
# vi /etc/php.ini
output_buffering = 4096 ⇒ output_buffering = off
max_execution_time = 30 ⇒ max_execution_time = 7260
max_input_time = 60 ⇒ max_input_time = 300
memory_limit = 128 ⇒ Mmemory_limit = 256M
display_errors = Off ⇒ display_errors = on
post_max_size = 8M ⇒ post_max_size = 500M
upload_max_filesize = 2M ⇒ upload_max_filesize = 500M
;date.timezone = ⇒ date.timezone = Asia/Tokyo

Download/ deployment / change of permission etc of ClipBucket 2.8.1
# cd /tmp/
# curl -O -L https://github.com/arslancb/clipbucket/archive/4476.zip
# unzip 4476.zip
# mkdir /var/www/clipbucket
# cp -r /tmp/clipbucket-4476/upload/* /var/www/clipbucket/
# cp /tmp/clipbucket-4476/upload/.htaccess /var/www/clipbucket/
# chmod -R 777 /var/www/clipbucket/includes/
# chmod -R 777 /var/www/clipbucket/files/
# chmod -R 777 /var/www/clipbucket/images/
# chmod -R 777 /var/www/clipbucket/cache/
# chmod -R 777 /var/www/clipbucket/cb_install/
# chown apache:apache -R /var/www/clipbucket/
# vi /var/www/clipbucket/cb_install/functions.php
$return[‘msg’] = sprintf(_(“Found FFMPEG %s : %s”),$version,$$ffmpeg_path);

$return[‘msg’] = sprintf(_(“Found FFMPEG %s : %s”),$version,$ffmpeg_path);

import phpSHIELD
# curl -O http://www.sourceguardian.com/loaders/download/loaders.linux-x86_64.tar.gz
# tar -zxvf loaders.linux-x86_64.tar.gz
# php -i | grep extension_dir
# cp ixed.5.4.lin /usr/lib64/php/modules
# echo “extension=ixed.5.4.lin” >> /etc/php.ini

Apache
# vi /etc/httpd/conf.d/clipbucket.conf
<VirtualHost *:80>
DocumentRoot /var/www/clipbucket/
ServerName localhost
<Directory /var/www/clipbucket/>
Options FollowSymLinks
AllowOverride All
</Directory>
ErrorLog /var/log/httpd/clip-error_log
CustomLog /var/log/httpd/clip-access_log common
</VirtualHost>

system restart
# shutdown -r now

SQL setting and database creation
# mysql_secure_installation
# mysql -u root -p
> CREATE DATABASE clipbucketdb CHARACTER SET utf8;
> CREATE USER ‘clipbucketuser’@’localhost’ IDENTIFIED BY ‘Pa$$worD’;
> GRANT ALL PRIVILEGES ON clipbucketdb.* TO ‘clipbucketuser’@’localhost’;
> FLUSH PRIVILEGES;
> EXIT;

Firewall settings
# firewall-cmd –permanent –add-service=http
# firewall-cmd –reload

After that, browser initial setting implementation

Leave a Reply