The default configuration for PHP's Memory_limit value is 128M, but sometimes the following error occurs depending on what is being processed.
FastCGI sent in stderr: "PHP message:php Fatal error:allowed memory size of 134217728 bytes exhausted (tried to allocate 39858177 bytes)
You can avoid the above error by modifying the Memory_limit value.
Modify the Memory_limit value.
# Vi/etc/php.ini
; memory_limit = 128M
Memory_limit = 256M
After modifying the php.ini file, restart Apache or Nginx.
#/etc/init.d/httpd Restart # restart Apache
#/etc/init.d/nginx Restart # restart Nginx
Memory_limit =-1 for, unrestricted.
The default configuration in/etc/php.ini is as follows.
; Maximum amount of memory a script may consume (128MB)
; Http://www.php.net/manual/en/ini.core.php#ini.memory-limit
Memory_limit = 128M
The maximum memory usage of a thread, the amount of PHP that a Web request can use.