YII框架显示The requested URL /index.php was not found on this server.

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

YII框架显示The requested URL /index.php was not found on this server._第1张图片
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是否开启


YII框架显示The requested URL /index.php was not found on this server._第2张图片
image.png

你可能感兴趣的:(YII框架显示The requested URL /index.php was not found on this server.)