php FastCGI和内存耗尽错误从WordPress网站

kmynzznz  于 2023-05-05  发布在  PHP
关注(0)|答案(1)|浏览(213)

我的WordPress网站目前有多个问题。对于错误号1,我试图将内存限制增加到6GigaBytes,但错误仍然发生。任何帮助将不胜感激。
[proxy_fcgi:error] [pid 18648:tid 10874] [client 1xx.1xx.1xx.2xx:50xx4] AH01071: Got error 'PHP message: PHP Fatal error: Allowed memory size of 268987456 bytes exhausted (tried to allocate 5557364296 bytes) in /var/www/html/domain.ca/wp-includes/load.php on line 1512'

[proxy_fcgi:error] [pid 28534:tid 20008] [client 1xx.1xx.1xx.1xx:5xx85] AH01067: Failed to read FastCGI header, referer: https://domain.ca/ [proxy_fcgi:error] [pid 28534:tid 20008] (104)Connection reset by peer: [client 1xx.1xx.1xx.1xx:5xx85] AH01075: Error dispatching request to : , referer: https://domain.ca/

jv4diomz

jv4diomz1#

您可以随时升级服务器资源。
1.尝试禁用FastCGI并切换到使用PHP-FPM
1.禁用所有插件和主题,并重新激活一次一个
1.增加wp-config.php中的内存

define('WP_MEMORY_LIMIT', '256M');

1.增加php.ini中的内存

php_value memory_limit 256M

相关问题