티스토리 뷰
//메모리 제한 해제
//웹사이트 TimeOut 셋팅
//or
set_time_limit(600);
해당 셋팅이 적용안될경우
Apache 설정 확인
/etc/httpd/conf/httpd.conf
내용중
#######################################################################################
Timeout 420
#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
#KeepAlive On
KeepAlive Off
#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
#MaxKeepAliveRequests 100
MaxKeepAliveRequests 100
#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 20
#######################################################################################
위 내용이 없으면 추가 후 설정적용해줌
결과적으로 Apache에서 TimeOut 시간이 60초 이면 PHP에서 최대 TimeOut 시간은 60가 됨
PHP에서 60초 이상 늘려도 Apache에서 60초가 지나면 TimeOut 처리 해버림
따라서 PHP에서 TimeOut 시간을 늘려서 해당 시간만큼 적용을 하고 싶다면 Apache에서 늘리는 시간 이상으로 설정되어 있어야함.
'Web Programming > PHP' 카테고리의 다른 글
[PHP]PHPExcel-엑셀 줄바꿈 처리 (0) | 2021.03.16 |
---|