Note: The 64-bit server encountered the same situation today. The error message for starting PHP is as follows: Startingphp_fpmeAccelerator: Couldnotallocate67108864bytes, response. lowertheamountofmemoryrequestorincreasethelimit
Note: the 64-bit server encountered the same situation today. the error message for Starting PHP is as follows: Starting php_fpm eAccelerator: cocould not allocate 67108864 bytes, the maximum size the kernel allows is 33554432 bytes. lower the amount of memory request or increase the limit in/p
Note: If the 64-bit host encounters the same situation today
The error message for starting PHP is as follows:
Starting php_fpm eAccelerator: cocould not allocate 67108864 bytes, the maximum size the kernel allows is 33554432 bytes. Lower the amount of memory request or increase the limit in/proc/sys/kernel/shmmax.
PHP Warning: [eAccelerator] Can not create shared memory area in Unknown on line 0
PHP Fatal error: Unable to start eAccelerator module in Unknown on line 0
Failed
The solution is as follows:
/Etc/sysctl. conf added:
Kernel. shmmax = 128000000
Sysctl-p
# Description
EAccelerator and eaccelerator. shm_size = "64" set in php. ini. explanation: the shared memory size (in MB) That eaccelerator can use, that is, 64 M
In Linux, the maximum memory usage of a single process is limited by the number (in bytes) set in/proc/sys/kernel/shmmax) /proc/sys/kernel/shmmax = 33554432 (32 M)
From http://lihuipeng.blog.51cto.com/3064864/774721
Original article address: Starting php_fpm eAccelerator: cocould not allocate. Thank you for sharing it with me.