大网数据广告活动
服务器运维问答

What is PHP7 error "not found or unable to stat"?

· 52CE 我爱测

I am receiving the following error log on my apache2 server: [Mon Dec 24 09:38:48.580631 2018] [php7:error] [pid 19547] [client 5.188.210.12:11267] script '/var/www/echo.php' not found or unable to stat, referer: https://www.goog…

问题原文

原帖链接 · dmuensterer · CC BY-SA 4.0

I am receiving the following error log on my apache2 server:

[Mon Dec 24 09:38:48.580631 2018] [php7:error] [pid 19547] [client 5.188.210.12:11267] script '/var/www/echo.php' not found or unable to stat, referer: https://www.google.com/ [Mon Dec 24 18:16:33.851584 2018] [php7:error] [pid 19523] [client 91.211.247.248:45013] script '/var/www/xmlrpc.php' not found or unable to stat [Tue Dec 25 03:28:48.912986 2018] [php7:error] [pid 19551] [client 185.244.25.106:47712] script '/var/www/index.php' not found or unable to stat [Tue Dec 25 04:15:30.013401 2018] [php7:error] [pid 19527] [client 118.25.71.119:37946] script '/var/www/help.php' not found or unable to stat I am sure that's just bruteforcing on existing scripts. But how can this throw a PHP7 error? What do the ports mean as I am not using any of those?

已采纳解答

原帖链接 · Michael Hampton · CC BY-SA 4.0

Apache passed the request to PHP because the URL ended in .php and Apache was configured to do so with an AddHandler directive.

The port number and IP address are of the remote system.

These are being logged because the PHP script corresponding to the URL does not exist or cannot be accessed. A 404 error is returned.

And yes, it looks like automated brute forcing attempts. You can ignore these or enable the relevant fail2ban jail.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-12-25)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。