본문 바로가기

Engineering/__00. Linux

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

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

'Engineering > __00. Linux' 카테고리의 다른 글

Ubuntu Upgrade  (0) 2016.01.08
rm: Argument list too long - Solution (펌)  (0) 2015.10.27
file 정보 확인  (0) 2015.04.07
[File System] (GPT) 16TB 이상 사용하기  (0) 2015.03.20
[fstab] fstab _netdev & cifs username  (0) 2015.03.18