站长建站专辑PHP建站极客生活

使用PlayTube搭建私人的视频网站

2018-10-07  本文已影响2人  7f4cf71ba8f6

简介

PlayTube是一个视频分享顺序,它能快速的创立一个视频上传、导入、分享的网站,具有多言语、用户经管、海报经管、视频上传、从youtube和vime等网站导入视频等效能。

截图

效能

上传视频:上传本土视频。

导入视频:异常简略的从YouTube、Dailymotion、和Vimeo等站点批量导入视频,此效能必要对应网站的API。

主动导入视频:设置一些关头词并创办导入使命,自在从YouTube和Dailymotion导入视频到你的网站。

高机能:PlayTube能够自在的处置超越1B的视频。

WoWonder登录集成:无缝对接WoWonder交际体系,能够应用交际体系的帐户受权登入。

喜爱&恶感:用户能够对某视频举行喜爱开票。

批评体系:报户口用户能够对视频举行批评。

定阅、汗青、接下来寓目:效能也是比力兽性化的。

用户频道:完全的用户显示页。

海报体系:能够创办视频、页面的海报,所有都在后盾的海报设置里。

站点舆图创立:创立站点舆图并主动发送到Google/Bing。

SEO友朋:搜刮引擎优化友朋的链接,异常利于于谷歌收录。

完全的后盾:效能完备的后盾把持面板。

美丽的UI:异常轻易修正同时还很美丽的模板。

装置

情况请求:PHP >= 5.5、MySQL、GD Library、mbstring、cURL、allow_url_fopen。

这边应用浮图面板做演示,如其你有根底的话,也能够应用别的面板大概lnmp一键包。且所应用的破解源码来自于顶峰网,并由林叶展弟弟举行汉化。

1、装置浮图

#Centos体系

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh

#Ubuntu体系

wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && sudo bash install.sh

#Debian体系

wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && bash install.sh

装置完成后,进入面板装置PHP、Mysql、Nginx、phpmyadmin。

2、装置顺序

增加域名,然后下载顺序源码,并将顺序上传到网站根目次解压,源码下载:

#完全源码

https://www.moerats.com/usr/down/Playtube/playtube-v1.4.1-full.zip

#增量包

https://www.moerats.com/usr/down/Playtube/playtube-v1.4.2-update.zip

https://www.moerats.com/usr/down/Playtube/playtube-v1.4.3-update.zip

#言语包

https://www.moerats.com/usr/down/Playtube/lang1.4.1-v1.4.2-cn.zip

#晋级方式,譬如v1.4.1晋级到v1.4.2

将v1.4.2增量包上传至根目次,解压并径直掉换根目次文献,再拜访http://xx.com/update.php举行花样翻新便可。

再增加Nginx伪动态:

if (!-f $request_filename){

    set $rule_0 1$rule_0;

}

if (!-d $request_filename){

    set $rule_0 2$rule_0;

}

if ($rule_0 = "21"){

    rewrite ^/$ /index.php?link1=home ;

}

rewrite ^/$ /index.php?link1=home ;

rewrite ^/reset-password/([^/]+)(/|)$ /index.php?link1=reset-password&code=$1 ;

rewrite ^/confirm/(.*)/(.*)$ /index.php?link1=confirm&code=$1&email=$2 ;

rewrite ^/api/v(([0-9])([.][0-9]+))(/|)$ /api.php?v=$1 ;

rewrite ^/admin-cp$ /admincp.php ;

rewrite ^/admin-cp/(.*)$ /admincp.php?page=$1 ;

rewrite ^/admin-cdn/(.*)$ /admin-panel/$1 last;

rewrite ^/videos/category/(.*)/rss(/|)$ /index.php?link1=videos&page=category&id=$1&feed=rss ;

rewrite ^/videos/category/(.*)$ /index.php?link1=videos&page=category&id=$1 ;

rewrite ^/videos/(.*)/rss(/|)$ /index.php?link1=videos&page=$1&feed=rss ;

rewrite ^/videos/(.*)$ /index.php?link1=videos&page=$1 ;

rewrite ^/articles(/|)$ /index.php?link1=articles ;

rewrite ^/articles/category/(.*)$ /index.php?link1=articles&category_id=$1 ;

rewrite ^/articles/read/(.*)$ /index.php?link1=read&id=$1 ;

if (!-f $request_filename){

    set $rule_14 1$rule_14;

}

if (!-d $request_filename){

    set $rule_14 2$rule_14;

}

if ($rule_14 = "21"){

    rewrite ^/aj/([^/.]+)/?$ /ajax.php?type=$1&first=$2 last;

}

rewrite ^/aj/([^/.]+)/([^/.]+)/?$ /ajax.php?type=$1&first=$2 last;

rewrite ^/aj/([^/.]+)/([^/.]+)/([^/.]+)/?$ /ajax.php?type=$1&first=$2&second=$3 last;

rewrite ^/edit-video/(.*)?$ /index.php?link1=edit-video&id=$1 last;

rewrite ^/watch/([^/]+)(/|)?$ /index.php?link1=watch&id=$1 last;

rewrite ^/watch/([^/]+)/list/([^/]+)(/|)?$ /index.php?link1=watch&id=$1&list=$2 last;

rewrite ^/embed/(.*)?$ /index.php?link1=embed&id=$1 last;

rewrite ^/resend/(.*)/(.*)?$ /index.php?link1=resend&id=$1&u_id=$2 last;

rewrite ^/redirect/(.*)?$ /index.php?link1=redirect&id=$1 last;

rewrite ^/settings/(.*)/(.*)$ /index.php?link1=settings&page=$1&user=$2 ;

rewrite ^/settings/(.*)$ /index.php?link1=settings&page=$1 ;

rewrite ^/terms/([^/]+)(/|)$ /index.php?link1=terms&type=$1 ;

rewrite ^/go_pro(/|)$ /index.php?link1=go_pro ;

rewrite ^/ads(/|)$ /index.php?link1=ads ;

rewrite ^/ads/create(/|)$ /index.php?link1=create_ads ;

rewrite ^/ads/edit/(d+)(/|)$ /index.php?link1=edit_ads&id=$1 ;

rewrite ^/contact-us(/|)$ /index.php?link1=contact ;

rewrite ^/@([^/]+)(/|)$ /index.php?link1=timeline&id=$1 ;

rewrite ^/messages/(.*)$ /index.php?link1=messages&id=$1 ;

if (!-f $request_filename){

    set $rule_33 1$rule_33;

}

if (!-d $request_filename){

    set $rule_33 2$rule_33;

}

if ($rule_33 = "21"){

    rewrite ^/([^/]+)(/|)$ /index.php?link1=$1 ;

}

最末翻开域名举行装置配备,受权码:nulled-by-reishi。

3、中文设置

咱们经过phpmyadmin进入到数据库,找到PlayTube所应用数据库,剔除langs.sql,再将根目次里的langs.sql文献导入到数据库便可。

然后革新网站会看到有右下角言语有中文的,如其挑选中文后,分类显现不出来,可能性是分类言语乱码,这时候候咱们去根目次assets/langs,将乱码的言语文献改成中文.php便可。

4、装置ffmpeg

要应用顺序完全的效能,咱们还必要装置ffmpeg。装置参考:应用动态ffmpeg二进制文献秒装置ffmpeg。

再翻开浮图,点击左边软件经管-PHP设置-禁用函数-剔除shell_exec。最末在后盾设置FFmpeg二进制文献途径为/usr/bin/ffmpeg。

5、更多设置

#视频分类设置

网站目次./assets/langs/中文.php修正。

#编纂款式表

./themes/default/css,主款式文献是style.css

#增加本人的代码

想在head、body、footer标签中增加本人的代码,请在./themes/default/layout/container.html修正

差未几到这边就算装置完成了,然后更多效能自行考虑吧。

上一篇 下一篇

猜你喜欢

热点阅读