kmvan / x-prober

🐘 A probe program for PHP environment (一款精美的 PHP 探針, 又名X探針、劉海探針)
https://prober.inn-studio.com
GNU General Public License v3.0
1.35k stars 263 forks source link

使用apache2 一直显示⏳ Loading... #156

Closed LAOZTK closed 3 years ago

LAOZTK commented 3 years ago
kmvan commented 3 years ago

有 php_errors.log 日志记录信息吗?

LAOZTK commented 3 years ago

log_errors on; error_log /var/log/php_errors.log; 我已经配置了这两项,但是并没有任何错误信息,甚至连错误日志文件都没有生成 从 apache2 日志中也没有得到错误

LAOZTK commented 3 years ago

附上 apache2 debug 日志

[Wed Jun 30 21:44:07.004981 2021] [deflate:debug] [pid 2947823] mod_deflate.c(867): [client 159.138.xx.xx:55376] AH01384: Zlib: Compressed 4044 to 2060 : URL /x.php [Wed Jun 30 21:44:07.344356 2021] [ssl:debug] [pid 2947823] ssl_engine_kernel.c(415): [client 159.138.xx.xx:55376] AH02034: Subsequent (No.4) HTTPS request received for child 3 (server 123456.com:443), referer: https://123456.com/x.php [Wed Jun 30 21:44:07.344488 2021] [authz_core:debug] [pid 2947823] mod_authz_core.c(815): [client 159.138.xx.xx:55376] AH01626: authorization result of Require all granted: granted, referer: https://123456.com/x.php [Wed Jun 30 21:44:07.344511 2021] [authz_core:debug] [pid 2947823] mod_authz_core.c(815): [client 159.138.xx.xx:55376] AH01626: authorization result of : granted, referer: https://123456.com/x.php [Wed Jun 30 21:44:07.345145 2021] [deflate:debug] [pid 2947823] mod_deflate.c(867): [client 159.138.xx.xx:55376] AH01384: Zlib: Compressed 4044 to 2060 : URL /x.php, referer: https://123456.com/x.php [Wed Jun 30 21:44:09.528466 2021] [ssl:debug] [pid 2947823] ssl_engine_kernel.c(415): [client 159.138.xx.xx:55376] AH02034: Subsequent (No.5) HTTPS request received for child 3 (server 123456.com:443) [Wed Jun 30 21:44:09.528635 2021] [authz_core:debug] [pid 2947823] mod_authz_core.c(815): [client 159.138.xx.xx:55376] AH01626: authorization result of Require all granted: granted [Wed Jun 30 21:44:09.528669 2021] [authz_core:debug] [pid 2947823] mod_authz_core.c(815): [client 159.138.xx.xx:55376] AH01626: authorization result of : granted [Wed Jun 30 21:44:09.529548 2021] [deflate:debug] [pid 2947823] mod_deflate.c(867): [client 159.138.xx.xx:55376] AH01384: Zlib: Compressed 4044 to 2060 : URL /x.php [Wed Jun 30 21:44:09.869658 2021] [ssl:debug] [pid 2947823] ssl_engine_kernel.c(415): [client 159.138.xx.xx:55376] AH02034: Subsequent (No.6) HTTPS request received for child 3 (server 123456.com:443), referer: https://123456.com/x.php [Wed Jun 30 21:44:09.869773 2021] [authz_core:debug] [pid 2947823] mod_authz_core.c(815): [client 159.138.xx.xx:55376] AH01626: authorization result of Require all granted: granted, referer: https://123456.com/x.php [Wed Jun 30 21:44:09.869796 2021] [authz_core:debug] [pid 2947823] mod_authz_core.c(815): [client 159.138.xx.xx:55376] AH01626: authorization result of : granted, referer: https://123456.com/x.php [Wed Jun 30 21:44:09.870427 2021] [deflate:debug] [pid 2947823] mod_deflate.c(867): [client 159.138.xx.xx:55376] AH01384: Zlib: Compressed 4044 to 2060 : URL /x.php, referer: https://123456.com/x.php [Wed Jun 30 21:44:14.879630 2021] [ssl:debug] [pid 2947823] ssl_engine_io.c(1102): [client 159.138.xx.xx:55376] AH02001: Connection closed to child 3 with standard shutdown (server 123456.com:443)

kmvan commented 3 years ago

log_errors on; error_log /var/log/php_errors.log; 我已经配置了这两项,但是并没有任何错误信息,甚至连错误日志文件都没有生成 从 apache2 日志中也没有得到错误

手动创新一个空的同名文件,然后重载httpd才会有

LAOZTK commented 3 years ago

touch /var/log/php_errors.log systemctl restart apache2 还是没有记录 image image

kmvan commented 3 years ago

有在线demo吗?

LAOZTK commented 3 years ago

有啊 一直是公网服务器上在测试

kmvan commented 3 years ago

地址贴来看看

kmvan commented 3 years ago

新建一个php文件作为测试,内容是:

<?php
var_dump((string) \filter_input(\INPUT_GET, 'action', \FILTER_SANITIZE_STRING));

保存后通过浏览器访问文件加上 ?action=test ,这时候页面会输出什么?

LAOZTK commented 3 years ago

string(4) "test"

kmvan commented 3 years ago

这就很奇怪了。有没有试过nginx?

LAOZTK commented 3 years ago

我换了个文件就正常了 白天编译了很多次 文件有点乱 可能这个文件在编译的时候有环节弄错了 啊啊啊 实在不好意思 让作者大大费心了