美文网首页
YII框架显示The requested URL /index.

YII框架显示The requested URL /index.

作者: 欢迎惠顾 | 来源:发表于2017-12-20 09:58 被阅读0次

The requested URL /index.php was not found on this server.

image.png

该项目使用YII框架.整个项目放在我本地环境下
我本地使用wamp集成环境.放在 WWW/JtlCdz 文件下.直接报这个错误:显示服务器上找不到index.php文件

我先找到index.php.修改了入口文件
为:

defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');

再先修改了.连接数据哭的文件.把数据库配置好.直接可以访问首页.并没有太麻烦

同时查看php.ini文件下的 php_openssl.dll是否开启


image.png

相关文章

网友评论

      本文标题:YII框架显示The requested URL /index.

      本文链接:https://www.haomeiwen.com/subject/hnwwwxtx.html