Rat's

萌音影视:一款基于laravel框架的在线影视应用
简介萌音影视是一款基于优雅的laravel框架和一点都不妹子的妹子UI的在线影视应用,特点是无数据库、无后台模式,...
扫描右侧二维码阅读全文
26
2018/09

萌音影视:一款基于laravel框架的在线影视应用

简介

萌音影视是一款基于优雅的laravel框架和一点都不妹子的妹子UI的在线影视应用,特点是无数据库、无后台模式,仅只有一个配置文件(config/web.php),而且无广告,支持vip解析,官方源,速度快,多频道,多分类。而且即将新增独立的频道、首页电视台直播、多解析接口等功能,观看时不走自己服务器流量,感觉挺不错的,有兴趣的可以搭建个玩玩。

截图

请输入图片描述
请输入图片描述
请输入图片描述

安装

Github地址:https://github.com/178146582/moeins

环境要求:Nginx/ApachePHP 5.6+curlOpenSSL扩展,Composer

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 5.6+NginxApache

再点击左侧软件管理-PHP设置-禁用函数-删除proc_openproc_get_status

2、安装Composer

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

3、安装源码
点击左侧网站,添加站点,使用命令:

cd www/wwwroot/xx.com
git clone https://github.com/178146582/moeins.git
#如果移动的时候有mv提示,直接Enter即可
mv moeins/{,.}* ./
composer install
chmod -R 777 ./

4、网站设置
进入到域名设置,点击网站目录,去除跨站攻击的,并设置运行目录为public

然后如果你是Apache服务器,项目目录下的.htaccess已经配置好重写规则,可以不管;如果你是Nginx服务器,则需要点击伪静态设置,填入以下代码:

location / {  
    try_files $uri $uri/ /index.php$is_args$query_string;  
} 

5、PHP执行以下命令

cd /www/wwwroot/xx.com
php -r "file_exists('.env') || copy('.env.example', '.env');"
php artisan key:generate

最后打开域名即可,网站相关设置去网站根目录config/web.php文件下修改。

Vultr新用户注册送100美元/16个机房按小时计费,支持支付宝,【点击查看】。
最后修改:2019 年 03 月 30 日 11 : 30 AM

发表评论 取消回复

71 条评论

  1. fish

    萌音影视没官网吗?

  2. fish

    萌音影视没官网吗

  3. 夏夏

    大佬 这啥情况
    Warning: require(/www/wwwroot/162.219.122.107/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /www/wwwroot/162.219.122.107/bootstrap/autoload.php on line 17

    Fatal error: require(): Failed opening required '/www/wwwroot/162.219.122.107/bootstrap/../vendor/autoload.php' (include_path='.:/www/server/php/71/lib/php') in /www/wwwroot/162.219.122.107/bootstrap/autoload.php on line 17

    1. Rat's
      @夏夏

      这个好像不能用了,所以别折腾了。

  4. fly

    目还有一大堆找不到的对象,目测是作者没维护了

    1. Rat's
      @fly

      不知道是不是你姿势问题,之前我都还搭建一个玩了的。

      1. fly
        @Rat's

        我进了作者群 作者回答是因为免费版不维护了……只有专业版能用

        1. Rat's
          @fly

          那估计是了

  5. fly

    (2/2) ErrorException
    Undefined offset: 34 (View: /www/wwwroot/v.jdonkey.club/resources/views/index.blade.php)

    in 12ff1e65a08064522977ae964cfd554c0dae1054.php line 85
    at CompilerEngine->handleViewException(object(ErrorException), 1)
    in PhpEngine.php line 44

    debug出来的内容……

  6. fly

    我也是Whoops, looks like something went wrong. 根目录给权限 跨站攻击 都改了……重装几次也不行

    1. Rat's
      @fly

      开启DEBUG看看,在env配置文件,改APP_DEBUG=ture

      1. fly
        @Rat's

        我明天弄吧 弄好了 我分享出来 如果遇到问题再来问问您了~

      2. fly
        @Rat's

        嗯 一会空了做 但是env配置文件有点不一样……我把key拖过去也试过 不过还是要感谢下您分享的OA系统

  7. 君竹

    依然不行又换回来了、ngint

    1. Rat's
      @君竹

      你又不放心把服务器给我,只能说别装了,不适合你。

  8. 君竹

    求助全新安装萌音新购买服务器出错
    Whoops, looks like something went wrong. 777给了php函数删了

    还有什么?》

    1. Rat's
      @君竹

      照着这个教程一步一步来的吗,包括最后一步?

      1. 君竹
        @Rat's

        不行啊apache'都不好使

      2. 君竹
        @Rat's

        compser install时候出现错误但是安装了
        Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.

      3. 君竹
        @Rat's

        还是不行啊。。。

      4. 君竹
        @Rat's

        我再试试等我

        1. Rat's
          @君竹

          你第三步,试试这个命令安装。
          cd www/wwwroot/xx.com
          composer create-project a-jue/moeins
          记得先清空根目录所有文件

          1. 君竹
            @Rat's

            第三部就用这俩个命令就行了吗?上面的命令不用了

            1. 君竹
              @君竹

              一直卡着不动。。安装命令。。。。。。

  9. 云天


    居然不能修改
    我xxxx
    我改了下网站名字什么的
    就报错了

    1. Rat's
      @云天

      这个只能说可以改,但不能乱改,有时候差一个标点符号都会报错,需要一致。

  10. oo

    我用的lnmp脚本。再把nginx的root 路径修改过后还是不能访问网站。路径改为/home/wwwroot/*.com/public

    1. Rat's
      @oo

      用的军哥的lnmp?如果是的话就参考这篇文章,设置允许跨目录访问:https://www.moerats.com/archives/752/,然后编辑php配置文件删掉禁用函数。禁用函数方法也可以参考这篇文章:https://www.moerats.com/archives/301/。

      1. oo
        @Rat's

        mv: cannot stat 'moeins/*': No such file or directory
        mv: cannot move 'moeins/.' to './.': Device or resource busy
        mv: cannot move 'moeins/..' to './..': Device or resource busy
        mv: cannot move 'moeins/.git' to './.git': Directory not empty

        1. Rat's
          @oo

          MV命令可以不用管,

        2. oo
          @oo

          目前无法处理此请求。
          HTTP ERROR 500

          1. Rat's
            @oo

            看看权限设置,还有重启下PHP。

            1. oo
              @Rat's

              谢谢。大佬已经搞好了。这个可以自动更新影视吗?

              1. Rat's
                @oo

                应该可以。

                1. oo
                  @Rat's

                  Script php artisan optimize handling the post-install-cmd event returned with error code 255.
                  重新安装了个出现了个这错误。??怎么解决

                  1. Rat's
                    @oo

                    错误信息能不能多给点?就这点不好判断。

                    1. oo
                      @Rat's

                      listen 80;

                      #listen [::]:80; server_name **; index index.html index.htm index.php default.html default.htm default.php; root /home/wwwroot/**/public; include rewrite/none.conf; #error_page 404 /404.html; location / { try_files $uri $uri/ /index.php$is_args$query_string; }

                      不好意思又来打扰了。权限也给了,php也重启了。上面的是nginx的配置文件..、访问网站还是500错误

                      1. Rat's
                        @oo

                        这个具体日志我也看不到,建议你直接用宝塔啊,军哥的lnmp有时候不会玩的是挺麻烦的。

                    2. oo
                      @Rat's

                      不好意思。问题解决了。给你贴问题的时候才注意到是“因为php页面消耗的最大内存”这个问题导致的。已解决。感谢

                      1. Rat's
                        @oo

                        解决好了就行。

                        1. 00
                          @Rat's

                          listen 80;

                          listen [::]:80; server_name ; index index.html index.htm index.php default.html default.htm default.php; root /home/wwwroot//public; include rewrite/none.conf; #error_page 404 /404.html; location / { try_files $uri $uri/ /index.php$is_args$query_string; }

                          不好意思又来打扰了。权限也给了,php也重启了。上面的是nginx的配置文件..、访问网站还是500错误

                    3. oo
                      @Rat's

                      Loading composer repositories with package information
                      Installing dependencies (including require-dev) from lock file
                      Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
                      Nothing to install or update
                      Generating optimized autoload files

                      IlluminateFoundationComposerScripts::postInstall
                      php artisan optimize
                      ?PHP Fatal error: Allowed memory size of 6291456 bytes exhausted (tried to allocate 64 bytes) in /home//vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php on line 144

                      Script php artisan optimize handling the post-install-cmd event returned with error code 255。
                      这就是全部的提示信息。对了用的是军哥的lnmp。

                    4. oo
                      @Rat's

                      mv moeins/{,.}* ./
                      composer install
                      就是文件剪切出来后安装时出现的那个错误提示