cumulusclips的部署

描述:

CumulusClips是一个开源的视频分享(内容管理)平台,能够提供最佳的视频分享功能之一类似YouTube。 在CumulusClips的帮助下,您可以开始自己的视频分享网站或在您现有的网站上添加视频部分,用户可以注册,上传视频,评论视频,评价视频,嵌入视频等等。

1、安装环境和需求:

centos7.3
apache
php
mysql

2、安装步骤:

cumulusclips的官网链接,可以下载最新版的二进制安装包

  • yum安装apache的web服务,以及php等相关依赖
yum install httpd php php-mysql php-xml php-process pcre php-common php-mbstring php-curl php-gd
  • 下载cumulusclips安装包
cd /opt/software

#下载
wget  http://cumulusclips.org/cumulusclips.tar.gz

#解压并授权
tar -xf  /opt/software/ cumulusclips.zip  -C  /var/www/html/
chown -R apache:apache /var/www/html/
  • 创建数据库(前提已经安装过数据库)
CREATE DATABASE  cumulusclips  character utf8;

授权:
  grant all privileges on cumulusclips.* to  'cmlp'@'localhost'  identified by '1234';
  grant all privileges on cumulusclips.* to  ''cmlp''@'%'  identified by '1234';
  grant all privileges on cumulusclips.* to  ''cmlp''@'ip地址'  identified by '1234';
  
刷新:
flush privileges;
  • 修改php配置文件
vim /etc/php.ini
upload_max_filesize = 110M
post_max_size = 110M
max_execution_time = 1500
sql.safe_mode = Off
  • 修改httpd配置
cd  /etc/httpd/conf.d
vim  cumulusclips.com.conf   #添加以下内容
<VirtualHost 10.10.252.214:80>    #自己主机的ip
ServerAdmin webmaster@yourdomain.com   
DocumentRoot "/var/www/html/cumulusclips/"
ServerName cumulusclips.com
ServerAlias www.cumulusclips.com
ErrorLog "/var/log/httpd/cumulusclips.com-error_log"
CustomLog "/var/log/httpd/cumulusclips.com-access_log" combined
<Directory "/var/www/html/cumulusclips/">
DirectoryIndex index.html index.php
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

 

  • 关闭selinux和防火墙
临时关闭SELinux 
setenforce 0
临时打开SELinux 
setenforce 1
查看SELinux状态 
getenforce
开机关闭SELinux 
编辑/etc/selinux/config文件,将SELINUX的值设置为disabled。下次开机SELinux就不会启动了。 
	
	
临时关闭防火墙 
systemctl stop firewalld
永久防火墙开机自关闭 
systemctl disable firewalld
临时打开防火墙 
systemctl start firewalld
防火墙开机启动 
systemctl enable firewalld
查看防火墙状态 
systemctl status firewalld
  • 域名解析,绑定ip,在windows上的hosts文件也需要修改如下
Linux上修改
vim  /etc/hosts
10.10.252.214   www.cumulusclips.com

Windows上修改
C:\Windows\System32\drivers\etc\hosts
10.10.252.214	  www.cumulusclips.com
  • 启动httpd服务
systemctl restart httpd.service

查看进程是否存在:

losf –i:80
  • 界面化安装

前面截图忘了截了,在第一步过程中可能会遇到页面上提示的错误,如果遇到,按照提示要求修改即可。

下图中的username填写的不是这个值,因为在上一步中保存了ip和密码,这一步默认就写上了,这个地方可以随意写一个用户名即可。

到这一步就安装成功了。

退出后登录我们自定义的用户。

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值