아파치 기동시 에러 대응 : File size limit exceeded

2007/08/08 14:23

Apache 서버가 갑자기 움직이지 않게되거나,

기동이 안되고 다음과 같은 에러를 낼때 대응

 

File size limit exceeded$HTTPD -DSSL

 

이 경우에는 아파치가 만들어내는 로그의 크기가

엄청나게 커져서, ext2시스템이 인식할수 있는

파일크기의 한계인 2G를 넘어선 경우이다..

 

# tail /PATH/TO/logs/error_log
[notice] child pid 10132 exit signal File size limit exceeded (25)
[notice] child pid 10131 exit signal File size limit exceeded (25)

# ls -al /PATH/TO/logs -rw-r--r--   1 root   root   2147483647 Sep 28 11:01 access_log
-rw-r--r--   1 root   root   2147483647 Oct 13 14:03 error_log

이후에  해당 파이을 백업을 하고,  재기동을 하면 정상적으로
기동된다.
 
# mv /PATH/TO/logs/access_log /PATH/TO/logs/access_log.bak
# mv /PATH/TO/logs/error_log /PATH/TO/logs/error_log.bak
# service httpd start