PHP TP5框架 安装运行 Warning: require(E:\phpstudy_pro\WWW\TP5\tp5\public/../thinkphp/base.php): failed to

创建一个新的项目:进入项目的根目录执行 git 命令:

先执行

git clone -b 5.1 https://git.coding.net/liu21st/thinkphp5.git tp5

进入 tp5目录

cd tp5

再执行

git clone -b 5.1 https://git.coding.net/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目录下面导致的。

完成

发布了411 篇原创文章 · 获赞 809 · 访问量 199万+

猜你喜欢

转载自blog.csdn.net/qq_35713752/article/details/104894695