ThinkPHP5项目访问admin.php提示模块不存在的解决方法
在ThinkPHP5项目中,有时访问admin.php会遇到“模块不存在”的错误。本文将分析一个实际案例,并提供解决方案。
问题描述:
一个基于ThinkPHP5框架的项目,使用Nginx作为服务器。后台入口文件为admin.php,但访问时Nginx返回“模块不存在”错误。Nginx配置文件如下:
立即学习“PHP免费学习笔记(深入)”;
server { listen 80; server_name xbby.com; location / { root e:/www/xb.necb.org.cn/public; index index.html index.htm index.php; if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; } } location ~ .php$ { root e:/www/xb.necb.org.cn/public; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param script_filename $document_root$fastcgi_script_name; include fastcgi_params; }}
登录后复制
本文来自互联网或AI生成,不代表软件指南立场。本站不负任何法律责任。