아파치 웹서버 .htaccess 파일 기본 설정, 파일 리사징 오류 memory_limit 셋팅 적용
아파치 웹서버 .htaccess 파일 기본 세팅, memory_limit 셋팅, 파일 리사징 오류
리얼 서버호스팅을 사용하시거나 서버를 직접 운영하신 다면 아파치 셋팅을 마음대로 하실 수 있겠지만
호스팅사를 통하여 웹호스팅을 받고 계신다면
아파치 설정은 극히 제한적일 수 밖에 없습니다.
제가 사용 하고 있는 기본적인 .htaccess 파일 세팅입니다.
참고하세요.
###Start Kloxo PHP config Area
###Please Don't edit these comments or the content in between. kloxo uses this to recognize the lines it writes to the the file. If the above line is corrupted, it may fail to recognize them, leading to multiple lines.
<Ifmodule mod_php4.c>
php_value error_log "/home/alpha12se.phplog"
php_value upload_max_filesize 32M
php_value max_execution_time 30
php_value max_input_time 60
php_value memory_limit 32M
php_value post_max_size 54M
php_flag register_globals off
php_flag display_errors off
php_flag file_uploads on
php_flag log_errors off
php_flag output_buffering off
php_flag register_argc_argv on
php_flag magic_quotes_gpc off
php_flag magic_quotes_runtime off
php_flag magic_quotes_sybase off
php_flag mysql.allow_persistent off
php_flag register_long_arrays on
php_flag allow_url_fopen on
php_flag cgi.force_redirect on
php_flag enable_dl on
</Ifmodule>
<Ifmodule mod_php5.c>
php_value error_log "/home/alpha12se.phplog"
php_value upload_max_filesize 32M
php_value max_execution_time 0
php_value max_input_time 1800
php_value memory_limit 128M
php_value post_max_size 54M
php_flag register_globals off
php_flag display_errors off
php_flag file_uploads on
php_flag log_errors off
php_flag output_buffering off
php_flag register_argc_argv on
php_flag magic_quotes_gpc off
php_flag magic_quotes_runtime off
php_flag magic_quotes_sybase off
php_flag mysql.allow_persistent off
php_flag register_long_arrays on
php_flag allow_url_fopen on
php_flag cgi.force_redirect on
php_flag enable_dl on
</Ifmodule>
###End Kloxo PHP config Area
Deny from all
#### 아래는 테스환경임, 해당 아이피만 접근가능함
allow from 118.130.231.4
이중 한가지 설명해 드리고 싶은 내용은
php_value memory_limit 128M <== 이부분입니다.
서버에서 그림파일 리사이징을 할때 메모리한계가 작다보면 리사이징하면서 서버응답없이 죽어버리는 경우가 발생됩니다.
resizing시 가비지만 생성되어 해당 스킨이 동작하지 않는 경우가 생기는데요
이럴땐 리사이징을 하지 않는 스킨으로 수정하여 해당 게시물을 삭제하시고
위의 설정을 최대로 늘려 주시면 됩니다.
자주 발생되는 오류 중 하나입니다~
웹싸이트 유지보수, 리뉴얼 친절하고 자세하게 상담해 드립니다~
댓글이나 연락주세요~~^^
'유지보수' 카테고리의 다른 글
php 슈퍼전역 변수 환경변수 출력값 GLOBALS _SERVER _POST _REQUEST _GET _ENV _FILES _COOKIE _SESSION (0) | 2016.04.19 |
---|---|
홈페이지 이전, 복사, 이미지 교체 문구수정, 한글 깨짐 문제 유지보수 작업 (0) | 2016.04.19 |
소설 구독 결제 간소화 홈페이지 유지보수 기능개선 작업 (0) | 2016.04.15 |
로그인이 안될때 mysql set old_passwords 서버셋팅이 1일때(old) 강제 셋팅 방법 (코드삽입) (0) | 2016.04.15 |
유튜브 z-index 우선순위 문제 해결 방법, 유투브 tv화면 디자인, 홈페이지 리뉴얼 상담 (0) | 2016.04.14 |