Any solution to make these available? #51

Closed
opened 2026-01-15 11:37:15 +08:00 by yan · 8 comments
Owner

Originally created by @if1y on GitHub (Feb 10, 2021).

  • OS: CentOS 7.6.1810
  • PHP version: 7.0

Much info unavailable, as you can see from the screenshot.
Server uptime and CPU model are unavailable too.

image

Originally created by @if1y on GitHub (Feb 10, 2021). - OS: CentOS 7.6.1810 - PHP version: 7.0 Much info unavailable, as you can see from the screenshot. `Server uptime` and `CPU model` are unavailable too. ![image](https://user-images.githubusercontent.com/32222791/107468319-b4600e00-6ba2-11eb-85e6-46a80d43dd32.png)
yan added the question label 2026-01-15 11:37:15 +08:00
yan closed this issue 2026-01-15 11:37:16 +08:00
Author
Owner

@if1y commented on GitHub (Feb 10, 2021):

噢对了,因为我看 issue 区英文内容挺多,所以用了英文

@if1y commented on GitHub (Feb 10, 2021): 噢对了,因为我看 issue 区英文内容挺多,所以用了英文
Author
Owner

@kmvan commented on GitHub (Feb 10, 2021):

这种情况可能是没有 /proc 目录读取权限导致的。

@kmvan commented on GitHub (Feb 10, 2021): 这种情况可能是没有 /proc 目录读取权限导致的。
Author
Owner

@if1y commented on GitHub (Feb 10, 2021):

确实,检查发现所有者是 65534(nobody),尝试 sudo chown 也无权限,意味着是母鸡限制无解了?

@if1y commented on GitHub (Feb 10, 2021): 确实,检查发现所有者是 `65534`(nobody),尝试 `sudo chown` 也无权限,意味着是母鸡限制无解了?
Author
Owner

@kmvan commented on GitHub (Feb 10, 2021):

什么面板?什么系统?

@kmvan commented on GitHub (Feb 10, 2021): 什么面板?什么系统?
Author
Owner

@if1y commented on GitHub (Feb 10, 2021):

CentOS 7 LXC虚拟化 + 宝塔面板

@if1y commented on GitHub (Feb 10, 2021): CentOS 7 LXC虚拟化 + 宝塔面板
Author
Owner

@kmvan commented on GitHub (Feb 10, 2021):

宝塔的话,去掉防跨站选项

@kmvan commented on GitHub (Feb 10, 2021): 宝塔的话,去掉防跨站选项
Author
Owner

@if1y commented on GitHub (Feb 10, 2021):

还真是。可以了,感谢。


旧版宝塔默认不开,新版宝塔开,我都没想到防跨站。

@if1y commented on GitHub (Feb 10, 2021): 还真是。可以了,感谢。 ---------------- 旧版宝塔默认不开,新版宝塔开,我都没想到防跨站。
Author
Owner

@kmvan commented on GitHub (Feb 10, 2021):

其实可以把 /proc 目录作为允许访问,毕竟这个目录只读,而且并没什么机密信息。例如在 nginxfastcgi.conf 文件添加:

fastcgi_param  PHP_VALUE          "open_basedir=$document_root:/tmp/:/proc/";

这样每个主机名都能访问 /proc 目录,但宝塔具体 nginx 配置文件放在哪,文件名是什么,这个需要可以自己研究。

@kmvan commented on GitHub (Feb 10, 2021): 其实可以把 `/proc` 目录作为允许访问,毕竟这个目录只读,而且并没什么机密信息。例如在 `nginx` 的 `fastcgi.conf` 文件添加: ``` fastcgi_param PHP_VALUE "open_basedir=$document_root:/tmp/:/proc/"; ``` 这样每个主机名都能访问 `/proc` 目录,但宝塔具体 `nginx` 配置文件放在哪,文件名是什么,这个需要可以自己研究。
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: yan/archived-x-prober#51