Engineering/__00. Linux

[PHP] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted

qahuni 2015. 5. 14. 11:24

apache 에서 특정 페이지가 열리지 않는 경우, error_log를 보면 다음과 같은 문구가 있다.


[error] [client 10.61.20.1] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted

(tried to allocate 69457921 bytes) in Unknown on line 0


이 경우 php.ini 파일의 메모리가 기본 128MB로 되어 있는 제한 때문인데 다음과 같이 늘려준다.


; Maximum amount of memory a script may consume (128MB)

; http://php.net/memory-limit

;memory_limit = 128M

memory_limit = 1024M