【已解答】按照提示去除安全风险 网站变成空白页
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:系统版本:
问题描述:按照提示去除安全风险 网站变成空白页数据库打不开
相关截图(日志、错误):
- - "GET / HTTP/2.0" 200 20 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0"117.179.221.135 - - "GET /favicon.ico HTTP/2.0" 200 20 "https:///" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0"
1 - - "GET /favicon.ico HTTP/2.0" 200 20 "https://wwwcn/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0"
- - "GET / HTTP/2.0" 200 20 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0"123.6.49.15 - - "GET / HTTP/1.1" 200 31 "-" "Mozilla/5.0 (Linux; U; Android 8.1.0; zh-cn; MI 8 Build/OPM1.171019.011) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 Mobile Safari/537.36"123.6.49.15 - - "GET /favicon.ico HTTP/1.1" 200 5 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
2025/05/22 15:55:32 4563#0: *56 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 4096 bytes) in /www/wwwroot/daigeng.cn/wp-includes/functions.php on line 179" while reading response header from upstream, client: 117.179.221.135, server: daigeng.cn, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/tmp/php-cgi-80.sock:", host: "www.daigeng.cn"2025/05/22 15:55:35 4563#0: *56 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 4096 bytes) in /www/wwwroot/daigeng.cn/wp-includes/functions.php on line 9031" while reading response header from upstream, client: 117.179.221.135, server: daigeng.cn, request: "GET /favicon.ico HTTP/2.0", upstream: "fastcgi://unix:/tmp/php-cgi-80.sock:", host: "", referrer: "https://n/"2025/05/22 15:55:38 4563#0: *56 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 4096 bytes) in /www/wwwroot/daigeng.cn/wp-includes/functions.php on line 179" while reading response header from upstream, client: 117.179.221.135, server: daigeng.cn, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/tmp/php-cgi-80.sock:", host: ""
上面的错误信息是,php执行的时候内存不够
尝试增加php的内存限制,参数memory_limit ,修改后重启php
优化php代码
页:
[1]