HestiaCP - баг панели - PHP Warning: Failed to set memory limit to 256 bytes (Current memory usage is 2097152 bytes) in Unknown on line 0: различия между версиями

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск
(Новая страница: «=== HestiaCP - баг панели - PHP Warning: Failed to set memory limit to 256 bytes (Current memory usage is 2097152 bytes) in Unknown on line 0 === Ош...»)
 
 
Строка 1: Строка 1:
 +
[[Файл:B_1.gif |link=https://bit.ly/3tbFsd6| Доступная цена]]
 +
 
=== HestiaCP - баг панели - PHP Warning: Failed to set memory limit to 256 bytes (Current memory usage is 2097152 bytes) in Unknown on line 0 ===
 
=== HestiaCP - баг панели - PHP Warning: Failed to set memory limit to 256 bytes (Current memory usage is 2097152 bytes) in Unknown on line 0 ===
  

Текущая версия на 09:58, 3 ноября 2023

Доступная цена

HestiaCP - баг панели - PHP Warning: Failed to set memory limit to 256 bytes (Current memory usage is 2097152 bytes) in Unknown on line 0

Ошибка

# php -i | grep php.ini
PHP Warning:  Failed to set memory limit to 256 bytes (Current memory usage is 2097152 bytes) in Unknown on line 0
Configuration File (php.ini) Path => /etc/php/8.1/cli
Loaded Configuration File => /etc/php/8.1/cli/php.ini

Это баг в конфиге php.ini панели hestiaCP.

Нужно заменить

memory_limit = 256

на

memory_limit = 256M

в файлах

76K     /etc/php/5.6/cli/php.ini
76K     /etc/php/5.6/fpm/php.ini
76K     /etc/php/7.0/cli/php.ini
76K     /etc/php/7.0/fpm/php.ini
76K     /etc/php/7.1/cli/php.ini
76K     /etc/php/7.1/fpm/php.ini
76K     /etc/php/7.2/cli/php.ini
76K     /etc/php/7.2/fpm/php.ini
76K     /etc/php/7.3/cli/php.ini
76K     /etc/php/7.3/fpm/php.ini
76K     /etc/php/7.4/cli/php.ini
76K     /etc/php/7.4/fpm/php.ini
76K     /etc/php/8.0/cli/php.ini
76K     /etc/php/8.0/fpm/php.ini
76K     /etc/php/8.1/cli/php.ini
76K     /etc/php/8.1/fpm/php.ini
76K     /etc/php/8.2/cli/php.ini
76K     /etc/php/8.2/fpm/php.ini

и перезапустить сервисы PHP-FPM:

# systemctl restart php8.2-fpm.service
# systemctl restart php8.1-fpm.service
# systemctl restart php8.0-fpm.service
# systemctl restart php7.4-fpm.service
# systemctl restart php7.3-fpm.service
# systemctl restart php7.2-fpm.service
# systemctl restart php7.0-fpm.service
# systemctl restart php5.6-fpm.service