PHP 7 - apcu - It is possible that the chosen SHM segment size is higher than the operation system allows: различия между версиями

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Перейти к:навигация, поиск
(Новая страница: « === PHP 7 - apcu - It is possible that the chosen SHM segment size is higher than the operation system allows === Ошибка вида после устано…»)
 
(нет различий)

Текущая версия на 09:33, 12 октября 2019

PHP 7 - apcu - It is possible that the chosen SHM segment size is higher than the operation system allows

Ошибка вида после установки php расширения php-apcu:

PHP Fatal error:  PHP Startup: apc_shm_create: shmget(0, 67108864, 914) failed: Invalid argument. It is possible that the chosen SHM segment size is higher than the operation system allows. Linux has usually a default limit of 32MB per segment. in Unknown on line 0
PHP Fatal error:  PHP Startup: apc_shm_attach: shmat failed: in Unknown on line 0


Меняем apc.shm_size с 64MB на 16MB:

# vi /etc/php.d/apcu.ini
apc.shm_size=16M

и перезапускаем Apache:

# /etc/init.d/httpd restart