创建一个新的项目:进入项目的根目录执行 git 命令:
先执行
git clone -b 5.1 https://git.coding/liu21st/thinkphp5.git tp5
进入 tp5目录
cd tp5
再执行
git clone -b 5.1 https://git.coding/liu21st/framework.git thinkphp
执行更新框架命令
git pull
最后在浏览器运行看能不能正常运行
http://localhost/TP5/tp5/public/
根据官方文档安装过程遇到一个坑,
Warning: require(E:\phpstudy_pro\WWW\TP5\tp5\public/../thinkphp/base.php): failed to open stream: No such file or directory in E:\phpstudy_pro\WWW\TP5\tp5\public\index.php on line 16
Fatal error: require(): Failed opening required 'E:\phpstudy_pro\WWW\TP5\tp5\public/../thinkphp/base.php' (include_path='.;C:\php\pear') in E:\phpstudy_pro\WWW\TP5\tp5\public\index.php on line 16
是因为thinkphp文件夹没创建在tp5目录下面导致的。
完成
更多推荐
PHP TP5框架 安装运行 Warning: require(E:\phpstudy_pro\WWW\TP5\tp5\public/../think
发布评论