Windows 宝塔环境 安装示例

注:该教程在windows sercer 2012 64位操作系统下测试通过,其他windows系统过程相似
这里仅仅是示例,如果示例安装成功,那么将你的域名和相应的路径值修改就可以
示例域名: www.masterlab.bt ,请根据自己的情况修改
请在HOSTS文件中添加: 127.0.0.1 www.masterlab.bt

一、宝塔环境安装

访问宝塔官方网站 https://www.bt.cn/ 下载最新的 Windows系统的版本 ,当前使用的6.4版本,如果你使用的版本不同请根据情况修改 下载好后根据提示进行安装 ,初始化设置,输入账号密码后进入面板,选择安装Apache套件(Apache2.4 Php7.3 Mysql5.7)

二、下载Masterlab代码

1.下载masterlab的最新完整代码 https://download.masterlab.vip/masterlab-last.zip , 解压到 c 盘的 c:/wwwroot 目录下,解压后的目录结构如下:

    c:/wwwroot/masterlab            
      |--   app   
      |--   bin    
      |--   lib    
      |--   travis
      |--   vendor
      |--   public   
      |--   plugin   
      |--   composer.json
      |--   env.ini-example       
      |--   LICENSE
      |--   php.ini    
      |--   README.md

2.在宝塔的面板中添加网站,同时把数据库创建了,后面安装会用上

1cut-202011242011212889.png 3.设置运行目录

1cut-202011241911482306.png 4.修改伪静态

对于Web服务器是Nginx的: 1cut-202002071702442457.png

 location  /{
        if (!-e $request_filename) {
                rewrite ^/((?!upload).*)$ /index.php/$1 last;
                break;
         }
    }

或者

location / {
    if (!-e $request_filename){
        rewrite  ^(.*)$  /index.php?s=$1  last;   break;
    }
}

对于Web服务器是Apache的:

 <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>

三、图文安装

1.访问 http://www.masterlab.bt/install/ 按照提示进行安装

1cut-202003100003059670.png

1cut-202003100003104999.png

2.登录系统,进入"管理\系统\邮件配置"页面,配置邮件发送功能,如果没有smtp服务器建议将"邮件推送功能"选项去掉

四、下载和运行 MasterlabSocket

下载文件 http://download.masterlab.vip/masterlab-socket-v1.1-windows.zip 解压到 Masterlab的 bin 目录下

 cd C:\wwwroot\masterlab\bin
 masterlab_socket.exe start -d

注:masterlab_socket.exe 是masterlab的异步和数据定时计算服务器, masterlab_socket不运行不会影响masterlab使用

Masterlab - 404
404
您所访问的页面不存在或出错了
help->pageIndex no found;
debug
Sql:
Array
(
)
TRACE:
Array
(
)
GET:
Array
(
    [md] => install-windows-bt6.4
    [_target] => Array
        (
            [0] => help
        )

)
POST:
Array
(
)
FILES:
Array
(
)
Include: 113
Array
(
    [0] => /data/www/masterlab-site/public/index.php
    [1] => /data/www/masterlab-site/app/globals.php
    [2] => /data/www/masterlab-site/vendor/autoload.php
    [3] => /data/www/masterlab-site/vendor/composer/autoload_real.php
    [4] => /data/www/masterlab-site/vendor/composer/ClassLoader.php
    [5] => /data/www/masterlab-site/vendor/composer/autoload_static.php
    [6] => /data/www/masterlab-site/vendor/ralouphie/getallheaders/src/getallheaders.php
    [7] => /data/www/masterlab-site/vendor/guzzlehttp/promises/src/functions_include.php
    [8] => /data/www/masterlab-site/vendor/guzzlehttp/promises/src/functions.php
    [9] => /data/www/masterlab-site/vendor/guzzlehttp/psr7/src/functions_include.php
    [10] => /data/www/masterlab-site/vendor/guzzlehttp/psr7/src/functions.php
    [11] => /data/www/masterlab-site/vendor/symfony/polyfill-mbstring/bootstrap.php
    [12] => /data/www/masterlab-site/vendor/guzzlehttp/guzzle/src/functions_include.php
    [13] => /data/www/masterlab-site/vendor/guzzlehttp/guzzle/src/functions.php
    [14] => /data/www/masterlab-site/vendor/adbario/php-dot-notation/src/helpers.php
    [15] => /data/www/masterlab-site/vendor/symfony/polyfill-php80/bootstrap.php
    [16] => /data/www/masterlab-site/vendor/danielstjules/stringy/src/Create.php
    [17] => /data/www/masterlab-site/vendor/symfony/polyfill-ctype/bootstrap.php
    [18] => /data/www/masterlab-site/vendor/mtdowling/jmespath.php/src/JmesPath.php
    [19] => /data/www/masterlab-site/vendor/songshenzong/support/src/StringsHelpers.php
    [20] => /data/www/masterlab-site/vendor/songshenzong/support/src/BashEchoHelpers.php
    [21] => /data/www/masterlab-site/vendor/hornet/framework/src/framework/bootstrap.php
    [22] => /data/www/masterlab-site/vendor/hornet/framework/src/framework/function.php
    [23] => /data/www/masterlab-site/vendor/hornet/framework/src/framework/FilterSqlInject.php
    [24] => /data/www/masterlab-site/vendor/hornet/framework/src/framework/HornetCoreException.php
    [25] => /data/www/masterlab-site/vendor/hornet/framework/src/framework/HornetLogicException.php
    [26] => /data/www/masterlab-site/vendor/hornet/framework/src/framework/ErrorHandler.php
    [27] => /data/www/masterlab-site/vendor/hornet/framework/src/framework/HornetEngine.php
    [28] => /data/www/masterlab-site/vendor/hornet/framework/src/framework/protocol/Iprotocol.php
    [29] => /data/www/masterlab-site/vendor/hornet/framework/src/framework/protocol/Api.php
    [30] => /data/www/masterlab-site/vendor/hornet/framework/src/framework/protocol/Ajax.php
    [31] => /data/www/masterlab-site/app/function/autoload.php
    [32] => /data/www/masterlab-site/app/function/array.php
    [33] => /data/www/masterlab-site/app/function/common.php
    [34] => /data/www/masterlab-site/app/function/cryptojs-aes.php
    [35] => /data/www/masterlab-site/app/function/sql.php
    [36] => /data/www/masterlab-site/app/function/string.php
    [37] => /data/www/masterlab-site/app/function/system.php
    [38] => /data/www/masterlab-site/app/function/time.php
    [39] => /data/www/masterlab-site/app/function/upload_image.php
    [40] => /data/www/masterlab-site/app/function/web.php
    [41] => /data/www/masterlab-site/app/function/response_error.php
    [42] => /data/www/masterlab-site/app/function/excel.php
    [43] => /data/www/masterlab-site/vendor/symfony/yaml/Yaml.php
    [44] => /data/www/masterlab-site/vendor/symfony/yaml/Parser.php
    [45] => /data/www/masterlab-site/vendor/symfony/yaml/Inline.php
    [46] => /data/www/masterlab-site/vendor/symfony/yaml/Unescaper.php
    [47] => /data/www/masterlab-site/app/config/app.cfg.php
    [48] => /data/www/masterlab-site/app/constants.php
    [49] => /data/www/masterlab-site/app/config/common.cfg.php
    [50] => /data/www/masterlab-site/app/config/session.cfg.php
    [51] => /data/www/masterlab-site/app/ctrl/Help.php
    [52] => /data/www/masterlab-site/app/ctrl/BaseCtrl.php
    [53] => /data/www/masterlab-site/vendor/symfony/event-dispatcher/EventDispatcher.php
    [54] => /data/www/masterlab-site/vendor/symfony/event-dispatcher/EventDispatcherInterface.php
    [55] => /data/www/masterlab-site/vendor/symfony/event-dispatcher-contracts/EventDispatcherInterface.php
    [56] => /data/www/masterlab-site/app/model/SettingModel.php
    [57] => /data/www/masterlab-site/app/model/BaseDictionaryModel.php
    [58] => /data/www/masterlab-site/app/model/CacheModel.php
    [59] => /data/www/masterlab-site/app/model/DbModel.php
    [60] => /data/www/masterlab-site/app/model/BaseModel.php
    [61] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php
    [62] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/Configuration.php
    [63] => /data/www/masterlab-site/vendor/doctrine/event-manager/lib/Doctrine/Common/EventManager.php
    [64] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/MySQL/Driver.php
    [65] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php
    [66] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php
    [67] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver.php
    [68] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/ExceptionConverterDriver.php
    [69] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/VersionAwarePlatformDriver.php
    [70] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
    [71] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Connection.php
    [72] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/TransactionIsolationLevel.php
    [73] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/ParameterType.php
    [74] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/FetchMode.php
    [75] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/Query/Expression/ExpressionBuilder.php
    [76] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Connection.php
    [77] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php
    [78] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/ServerInfoAwareConnection.php
    [79] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOQueryImplementation.php
    [80] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Statement.php
    [81] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php
    [82] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Statement.php
    [83] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/ResultStatement.php
    [84] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Result.php
    [85] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatementImplementations.php
    [86] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/Events.php
    [87] => /data/www/masterlab-site/lib/MyRedis.php
    [88] => /data/www/masterlab-site/vendor/doctrine/dbal/lib/Doctrine/DBAL/SQLParserUtils.php
    [89] => /data/www/masterlab-site/app/classes/UserAuth.php
    [90] => /data/www/masterlab-site/app/ctrl/Resource.php
    [91] => /data/www/masterlab-site/lib/parsedown/Parsedown.php
    [92] => /data/www/masterlab-site/app/view/help.php
    [93] => /data/www/masterlab-site/app/view/common/header-meta.php
    [94] => /data/www/masterlab-site/app/view/common/header-style.php
    [95] => /data/www/masterlab-site/app/view/common/header-script.php
    [96] => /data/www/masterlab-site/app/view/common/body-header.php
    [97] => /data/www/masterlab-site/app/view/common/common-footer.php
    [98] => /data/www/masterlab-site/app/view/common/siteFooter.php
    [99] => /data/www/masterlab-site/app/view/modal/login.php
    [100] => /data/www/masterlab-site/app/view/modal/signup.php
    [101] => /data/www/masterlab-site/app/view/modal/get-started.php
    [102] => /data/www/masterlab-site/app/view/modal/try.php
    [103] => /data/www/masterlab-site/app/view/modal/trial.php
    [104] => /data/www/masterlab-site/app/view/modal/buy-premium.php
    [105] => /data/www/masterlab-site/app/view/modal/loading.php
    [106] => /data/www/masterlab-site/app/view/modal/signup-failed.php
    [107] => /data/www/masterlab-site/app/view/modal/existing-account.php
    [108] => /data/www/masterlab-site/app/view/modal/unsupported-browser.php
    [109] => /data/www/masterlab-site/app/view/modal/calculate.php
    [110] => /data/www/masterlab-site/app/view/modal/sso-signup.php
    [111] => /data/www/masterlab-site/app/view/modal/i18n.php
    [112] => /data/www/masterlab-site/app/view/exception.php
)