描述:
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
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;
vim /etc/php.ini
upload_max_filesize = 110M
post_max_size = 110M
max_execution_time = 1500
sql.safe_mode = Off
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
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
systemctl restart httpd.service
查看进程是否存在:
losf –i:80
前面截图忘了截了,在第一步过程中可能会遇到页面上提示的错误,如果遇到,按照提示要求修改即可。
下图中的username填写的不是这个值,因为在上一步中保存了ip和密码,这一步默认就写上了,这个地方可以随意写一个用户名即可。
到这一步就安装成功了。
退出后登录我们自定义的用户。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)