Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

非服务器根目录部署路径问题 #7

Closed
benjaminv opened this issue Oct 3, 2019 · 1 comment
Closed

非服务器根目录部署路径问题 #7

benjaminv opened this issue Oct 3, 2019 · 1 comment

Comments

@benjaminv
Copy link

之前回复在这下面了:#6 (comment)
干脆复制过来重新开一贴好了。以求共同探讨。

开发环境我必须装在根目录下。安装成功,也有登录页面(css文件路径不对),看了很久也不知道为什么登录不了。系统报错:
throw new HttpException(404, 'method not exists:' . get_class($instance) . '->' . $action . '()');

看了下dashboard-1.html(另外,为什么有两个dashboard文件)文件中环境参数,有两项不对,没有带上子目录:
比方说我的子目录为/erp/
完整的应该为:
PATH_INFO /erp/login/dashboard.html PATH_TRANSLATED /home/xxxxxxx/public_html/erp/login/dashboard.html
而当前为错误的:
PATH_INFO /login/dashboard.html PATH_TRANSLATED /home/xxxxxxx/public_html/login/dashboard.html
看了下这个Thinkphp 内核应该已经到了5以上,代码时间为201903, 五月份的时候TP官方还有人提子目录问题,并作者作了小改,不知道我咱们这个坑与之有没有关系,见:#实在找不到是哪个帖子了,找到了来更新。

看过的最类似的分析见:https://blog.csdn.net/devonliu/article/details/16818537
不过看年代2013,应该早修理掉了。无论如何我的子目录叫erp 并不跟app 什么的重名。

请bool1993大人抽空看一下。谢谢。

@benjaminv
Copy link
Author

这个项目应该没有人维护了。也从未看到一个成功跑起来的demo. 问题比较多,核心也比较老。就此放弃。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant