网站首页 建站 正文
PlayTube确实还算是比较优秀的一款国外视频CMS系统,就目前而言这款系统还是很不错的,当然还有许多地方需要完善,不过现阶段的版本用来做个普通的视频站是没什么问题的。
这套系统在codecanyou上面是售价49刀,有想认做站的可以支持一下官方正版,购买地址:https://codecanyon.net/item/playtube-the-ultimate-php-video-sharing-platform/20759294。
注:我个人是不推荐在codecanyou上面买源码的,除非是你真的非常非常喜欢。codecanyou上面太多技术不到家的程序员,很多程序都是介绍的完美,实际到手就是一堆破铜烂铁,RBQRBQ。
作为穷B,我肯定是先找开心版咯,最新1.4.3开心版下载地址:拉到文章底部下载
我扫了下Webshell,看了下源码应该是没后门的,下面这些都是误报,如果不放心的话还是别用了:
下面我简单写一下安装方法。
首先还是CentOS7+宝塔面板这个不多说了,装好宝塔面板后可以根据你自己的需要安装一个LNMP/LAMP环境。PHP版本选择7.0即可。
宝塔面板安装命令:
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
如果你使用Nginx(推荐),伪静态规则如下:
location / { if (!-e $request_filename){ rewrite ^/$ /index.php?link1=home; } if (!-e $request_filename){ rewrite ^/aj/([^/.]+)/?$ /ajax.php?type=$1&first=$2; rewrite ^/aj/([^/.]+)/([^/.]+)/?$ /ajax.php?type=$1&first=$2; rewrite ^/aj/([^/.]+)/([^/.]+)/([^/.]+)/?$ /ajax.php?type=$1&first=$2&second=$3; } rewrite ^/@([^\/]+)(\/|)$ /index.php?link1=timeline&id=$1; if (!-e $request_filename){ rewrite ^/([^\/]+)(\/|)$ /index.php?link1=$1; }}location /reset { rewrite ^/reset-password/([^\/]+)(\/|)$ /index.php?link1=reset-password&code=$1;}location /confirm { rewrite ^/confirm/(.*)/(.*)$ /index.php?link1=confirm&code=$1&email=$2;}location /api { rewrite ^/api/v(([0-9])([.][0-9]+))(\/|)$ /api.php?v=$1;}location /admin { rewrite ^/admin-cp$ /admincp.php; rewrite ^/admin-cp/(.*)$ /admincp.php?page=$1;}location /admin-cdn/ { alias /admin-panel/;}location /videos { 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;}location /articles { rewrite ^/articles(\/|)$ /index.php?link1=articles; rewrite ^/articles/category/(\d+)(\/|)$ /index.php?link1=articles&category_id=$1; rewrite ^/articles/read/(.*)(\/|)$ /index.php?link1=read&id=$1;}location /edit { rewrite ^/edit-video/(.*)?$ /index.php?link1=edit-video&id=$1;}location /watch { rewrite ^/watch/([^\/]+)(\/|)?$ /index.php?link1=watch&id=$1; rewrite ^/watch/([^\/]+)/list/([^\/]+)(\/|)?$ /index.php?link1=watch&id=$1&list=$2;}location /embed { rewrite ^/embed/(.*)?$ /index.php?link1=embed&id=$1;}location /resend { rewrite ^/resend/(.*)/(.*)?$ /index.php?link1=resend&id=$1&u_id=$2;}location /redirect { rewrite ^/redirect/(.*)?$ /index.php?link1=redirect&id=$1;}location /settings { rewrite ^/settings/(.*)/(.*)$ /index.php?link1=settings&page=$1&user=$2; rewrite ^/settings/(.*)$ /index.php?link1=settings&page=$1;}location /terms { rewrite ^/terms/([^\/]+)(\/|)$ /index.php?link1=terms&type=$1;}location /go_pro { rewrite ^/go_pro(\/|)$ /index.php?link1=go_pro;}location /ads { 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;}location /contact { rewrite ^/contact-us(\/|)$ /index.php?link1=contact;}
如果你使用Apache,伪静态规则如下:
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^$ index.php?link1=home [NC,QSA] RewriteRule ^reset-password/([^\/]+)(\/|)$ index.php?link1=reset-password&code=$1 [NC,QSA] RewriteRule ^confirm/(.*)/(.*)$ index.php?link1=confirm&code=$1&email=$2 [NC,QSA] RewriteRule ^api/v(([0-9])([.][0-9]+))(\/|)$ api.php?v=$1 [QSA] RewriteRule ^admin-cp$ admincp.php [NC,QSA] RewriteRule ^admin-cp/(.*)$ admincp.php?page=$1 [NC,QSA] RewriteRule ^admin-cdn/(.*)$ admin-panel/$1 [L] RewriteRule ^videos/category/(.*)/rss(\/|)$ index.php?link1=videos&page=category&id=$1&feed=rss [NC,QSA] RewriteRule ^videos/category/(.*)$ index.php?link1=videos&page=category&id=$1 [NC,QSA] RewriteRule ^videos/(.*)/rss(\/|)$ index.php?link1=videos&page=$1&feed=rss [NC,QSA] RewriteRule ^videos/(.*)$ index.php?link1=videos&page=$1 [NC,QSA] RewriteRule ^articles(\/|)$ index.php?link1=articles [NC,QSA] RewriteRule ^articles/category/(\d+)(\/|)$ index.php?link1=articles&category_id=$1 [NC,QSA] RewriteRule ^articles/read/(.*)(\/|)$ index.php?link1=read&id=$1 [NC,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^aj/([^/.]+)/?$ ajax.php?type=$1&first=$2 [L,QSA] RewriteRule ^aj/([^/.]+)/([^/.]+)/?$ ajax.php?type=$1&first=$2 [L,QSA] RewriteRule ^aj/([^/.]+)/([^/.]+)/([^/.]+)/?$ ajax.php?type=$1&first=$2&second=$3 [L,QSA] RewriteRule ^edit-video/(.*)?$ index.php?link1=edit-video&id=$1 [L,QSA] RewriteRule ^watch/([^\/]+)(\/|)?$ index.php?link1=watch&id=$1 [L,QSA] RewriteRule ^watch/([^\/]+)/list/([^\/]+)(\/|)?$ index.php?link1=watch&id=$1&list=$2 [L,QSA] RewriteRule ^embed/(.*)?$ index.php?link1=embed&id=$1 [L,QSA] RewriteRule ^resend/(.*)/(.*)?$ index.php?link1=resend&id=$1&u_id=$2 [L,QSA] RewriteRule ^redirect/(.*)?$ index.php?link1=redirect&id=$1 [L,QSA] RewriteRule ^settings/(.*)/(.*)$ index.php?link1=settings&page=$1&user=$2 [NC,QSA] RewriteRule ^settings/(.*)$ index.php?link1=settings&page=$1 [NC,QSA] RewriteRule ^terms/([^\/]+)(\/|)$ index.php?link1=terms&type=$1 [QSA] RewriteRule ^go_pro(\/|)$ index.php?link1=go_pro [QSA] RewriteRule ^ads(\/|)$ index.php?link1=ads [QSA] RewriteRule ^ads/create(\/|)$ index.php?link1=create_ads [QSA] RewriteRule ^ads/edit/(\d+)(\/|)$ index.php?link1=edit_ads&id=$1 [QSA] RewriteRule ^contact-us(\/|)$ index.php?link1=contact [QSA] RewriteRule ^@([^\/]+)(\/|)$ index.php?link1=timeline&id=$1 [QSA] RewriteRule ^messages/(.*)$ index.php?link1=messages&id=$1 [NC,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^\/]+)(\/|)$ index.php?link1=$1 [QSA]
配置好伪静态后,找到对应你PHP版本的设置,在“禁用函数”里面把shell_exec这个函数删掉:
然后打开phpmyadmin新建一个数据库名为playtube(当然你喜欢什么名称随意修改):
现在打开你的站点域名即可看到安装界面了,勾选红框所示按钮,点击Next:
这里程序会检查环境是否正常,请确保都是绿色打勾状态:
接下来到了最重要的一步了,如图所示这个红框里面的Purchase code代码不要改,保持默认即可,否则无法正常安装:
安装成功后会回显如下图所示信息:
该程序支持FFMPEG转码,但不是刚需。如果你不安装FFMPEG那么这款程序只支持上传MP4格式的视频,如果安装了FFMPEG那么按照作者所说的,上传视频的格式会支持更多,具体支持的格式如下:
所以,现在我们安装一下FFMPEG:
大多数人在安装FFMPEG时是采用编译安装的,在这里教大家一种更简单的安装方法,简直是秒安装了。
教程在这里:使用静态ffmpeg二进制文件秒安装ffmpeg,最后在后台设置FFmpeg
二进制文件路径为/usr/bin/ffmpeg
。
登录到系统后台,找到如下图所示的地方,保存一下设置即可,这样程序就支持上传更多的视频格式了:
写在最后:
1、官方演示站:https://playtubescript.com/
2、这款程序支持多语言,需要中文的话可以自己到后台添加翻译。
3、目前我个人觉得这个程序最不友好的地方就是“分类”不能在后台添加/删除/修改。要改“分类”只能自己改源码。(官方给出了修改方法)不过我还是觉得很麻烦。
4、这套程序除了支持用户从本地上传视频以外,还支持从Youtube直接导入视频,虽然我觉得这功能很鸡肋,但也许有人觉得很有用呢。
- 上一篇:屏蔽Adsense在某些违规网页上投放自动广告
- 下一篇:香港办卡要多少钱?
猜你喜欢
你 发表评论:
欢迎- 1313℃解决错误File "/usr/bin/yum", line 30 except KeyboardInterrupt, e:
- 1254℃Microsoft Office 2013出现首要事项选任意一个接受就闪退的解决方法
- 718℃使用 Acme.sh 给 SSL 证书自动续期失败,提示Could not get nonce, let's try again的解决方法
- 682℃【discuz x3】如何将头像和帖内等附件分离到远程服务器?
- 570℃Whmcs 8版本可用的支付宝当面付插件
- 521℃火车头采集器Discuz站点出现“您当前的访问请求当中含有非法字符,已经被系统拒绝”的解决方法
- 511℃WHMCS 8.2.1版本手动升级方法,如何手动更新WHMCS
- 393℃CAD如何任意曲线等分画点
- 搜索
- 最近发表
-
- docker服务及镜像开机自动启动
- CentOS 7 安装最新版本ffmpeg
- /usr/include/bits/errno.h:24:26: 致命错误:linux/errno.h:没有那个文件或目录的解决方法
- Use of undefined constant ture - assumed 'ture' (this will throw an Error in a future version of PHP
- Word如何插入CAD图形
- 谷歌邮箱SMTP ERROR: Password Command Failed: 534-5.7.14错误解决
- CentOS 7下 yum 安装MariaDB10.3教程
- 个人微信消息免打扰
- 微信公众号怎么转让给别人
- AutoCAD如何单行文字转多行文字
- 标签列表
-
- 剑侠情缘架设 (1)
- Google Adsense (1)
- OneIndex字幕 (1)
- SiteSucker (1)
- PlayTube (1)
- cn_windows_server_2019 (1)
- VPS行话 (1)
- Directadmin 1.53开心版 (1)
- OLAINDEX (1)
- OneDrive (1)
- Win 10 (1)
- 扩展桌面字体模糊 (1)
- SimpleTorrent (1)
- Aria2Drive (1)
- 火车头免登录 (1)
- 高铁采集器免登录 (1)
- QPA使用教程 (1)
- Pycharm2020.2简体中文破解版 (1)
- Pycharm 2020激活 (1)
- DD包 Win 10 LTSC 2019 (1)
- 文章归档
-
- 2022年5月 (6)
- 2022年4月 (1)
- 2022年3月 (4)
- 2022年2月 (1)
- 2021年12月 (3)
- 2021年11月 (2)
- 2021年10月 (3)
- 2021年9月 (14)
- 2021年8月 (4)
- 2021年7月 (13)
- 2021年6月 (6)
- 2021年5月 (10)
- 2021年4月 (9)
- 2021年3月 (14)
- 2021年2月 (12)
- 2021年1月 (4)
- 2020年12月 (24)
- 2020年11月 (10)
- 2020年10月 (6)
- 2020年9月 (17)
- 2020年8月 (26)
- 2020年7月 (3)
- 2020年6月 (2)
- 2020年5月 (4)
- 2020年4月 (10)
- 2020年3月 (32)
- 2020年2月 (14)
- 2020年1月 (14)
- 2019年11月 (6)
- 2019年10月 (2)
- 2019年9月 (4)
- 2019年8月 (5)
- 2019年7月 (2)
- 2019年6月 (8)
- 2019年5月 (3)
- 2019年4月 (6)
- 2019年3月 (12)
- 2019年2月 (6)
- 2019年1月 (15)
- 2018年12月 (20)
- 2018年11月 (14)
- 2018年10月 (21)
- 2018年9月 (32)
- 2018年8月 (11)
- 2018年7月 (5)
- 2018年6月 (1)
- 2018年5月 (4)
- 2018年4月 (3)
- 2018年3月 (7)
- 2018年2月 (1)
- 2018年1月 (3)
- 2017年12月 (1)
- 2017年11月 (1)
- 2017年10月 (1)
- 2017年9月 (1)
- 2017年8月 (2)
- 2017年7月 (3)
- 2017年6月 (2)
- 2017年5月 (1)
- 2017年4月 (1)
- 2017年2月 (2)
- 2017年1月 (1)
- 2016年12月 (1)
- 2016年8月 (1)
- 2016年5月 (1)
- 2016年4月 (1)
- 2016年3月 (2)
- 2015年10月 (1)
- 2015年5月 (1)
- 2014年12月 (1)
- 2012年11月 (1)
- 2011年7月 (1)
- 2010年10月 (1)
- 最新留言
-
- 已解决,谢谢
- 本次 重新采用 2019 ltsc 版本制作,由于 2021 ltsc 版本 占用内存比这个2019的多600M左右(2021 ltsc 最低内存需求:1.5G)。导致很多 SB DD系统的时候不看最低要求配置,1G内存机也用2021 ltsc 版本,从而出现不稳定。以前其实我是有发过2019 ltsc 版本,由于有BUG而下架了,现在重新封装并修复以前的那些遗留问题。现在这个 2019 ltsc 版本 最低可在 1G内存 的机子运行。
- 这才是正解!
- 楼主太厉害了!!方法有效
- 武汉实测,200M带宽没有提速到500M但是上行提速到100(重启光猫没用)
- 牛皮,楼主正解
- 让我看看吧
- 您好作者,可能是我们看见,源码的下载链接能发一下吗
- 1月20号才完成80%用户的割接,春节前完成所有满足条件用户的割接,以节省春节大量农名工回乡产生的省际流量资源占用
- 站点信息
-
- 文章总数:485
- 页面总数:1
- 分类总数:15
- 标签总数:20
- 评论总数:9
- 浏览总数:459492
已有2位网友发表了看法:
小满1221 评论于 [2020-07-06 14:44:33] 回复
您好作者,可能是我们看见,源码的下载链接能发一下吗
访客 评论于 [2020-08-22 00:51:46] 回复
让我看看吧