60 Star 478 Fork 206

Pear Admin / Pear Admin Think

 / 详情

#0 [0]HttpException in Controller.php line 76 控制器不存在:app\controller\Index

已完成
创建于  
2021-08-17 17:44

#0 [0]HttpException in Controller.php line 76
控制器不存在:app\controller\Index

伪静态配置正确

评论 (2)

傅哲英 创建了任务
展开全部操作日志

解决了 多应用驱动没加载: 在项目根目录 执行 php think service:discover

老哥,我的还是显示 控制器不存在:app\index\controller\admin\Php
nginx配置为

server {
        listen 100;
        listen [::]:100;

        server_name 127.0.0.1;

        root /var/www/html/Pear-Admin-Think/public/;
        index index.html index.php;

        location / {
        if (!-e $request_filename) {
                        rewrite  ^(.*)$  /index.php?s=/$1  last;
                        break;
                }
                try_files $uri $uri/ =404;
            }


        location ~ \.php$ {
                include snippets/fastcgi-php.conf;

                # With php-fpm (or other unix sockets):
                fastcgi_pass unix:/run/php/php8.0-fpm.sock;
                # With php-cgi (or other tcp sockets):
                #fastcgi_pass 127.0.0.1:9000;
        }
}

也执行了 php think service:discover。
跳转后的网址是 http://127.0.0.1:100/admin.php/login/index
想问一下,这是rewrite没成功嘛

就眠儀式 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
PHP
1
https://gitee.com/pear-admin/Pear-Admin-Think.git
git@gitee.com:pear-admin/Pear-Admin-Think.git
pear-admin
Pear-Admin-Think
Pear Admin Think

搜索帮助