게시판의 업로드 파일 한 개당, "파일 업로드 용량"을 2G 이상으로 변경하는 법 채택완료
! 그누보드5의 게시판, "파일 업로드 용량"(https://policy.glitter.kr/qa_php/board_up_limit.png)을
2G ( 2,147,483,647 bytes ) 이상으로 변경하고 싶습니다.
!. "업로드 파일 한 개당 " 용량을 늘리는 방법은 없나요?
!. nginx.conf 와 php.ini는 모두 변경하여, 2G까지는 잘 작동이 되는데, ~~
== nginx.conf
</p>
<p>. . .</p>
<p> proxy_read_timeout 1800s;</p>
<p> proxy_connect_timeout 1800s;</p>
<p> proxy_send_timeout 1800s;</p>
<p> fastcgi_read_timeout 1800s;</p>
<p> fastcgi_send_timeout 1800s;</p>
<p> resolver_timeout 5s;</p>
<p> client_header_timeout 10s;</p>
<p> client_body_timeout 1800s;</p>
<p> send_timeout 1800s;</p>
<p> keepalive_timeout 1800s 1800s;</p>
<p> client_max_body_size 20480M;</p>
<p> http2_max_client_body_buffer_size 16m;</p>
<p> server_names_hash_max_size 8192;</p>
<p> server_names_hash_bucket_size 128;</p>
<p>. . .</p>
<p>
== php.ini
</p>
<p>. . .</p>
<p>[core]</p>
<p>allow_url_fopen = 1</p>
<p>allow_url_include = 0</p>
<p>auto_detect_line_endings = 0</p>
<p>auto_globals_jit = 1</p>
<p>default_charset = UTF-8</p>
<p>default_mimetype = text/html</p>
<p>default_socket_timeout = 60</p>
<p>disable_classes =</p>
<p>disable_functions =</p>
<p>display_startup_errors = 0</p>
<p>docref_ext =</p>
<p>docref_root =</p>
<p>enable_dl = Off</p>
<p>enable_post_data_reading = 1</p>
<p>error_log_mode = 0644</p>
<p>error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED</p>
<p>expose_php = Off</p>
<p>extension_dir = /usr/local/lib/php82/modules</p>
<p>file_uploads = 1</p>
<p>hard_timeout = 1800</p>
<p>html_errors = off</p>
<p>ignore_repeated_errors = 0</p>
<p>ignore_repeated_source = 0</p>
<p>ignore_user_abort = 0</p>
<p>implicit_flush = 1</p>
<p>include_path = .:/usr/share/pear</p>
<p>log_errors = On</p>
<p>max_execution_time = 1800</p>
<p>max_file_uploads = 20</p>
<p>max_input_nesting_level = 64</p>
<p>max_input_time = -1</p>
<p>max_input_vars = 1000</p>
<p>max_multipart_body_parts = -1</p>
<p>memory_limit = 1638M</p>
<p>output_buffering = Off</p>
<p>post_max_size = 102400M</p>
<p>precision = 14</p>
<p>realpath_cache_size = 4096K</p>
<p>realpath_cache_ttl = 120</p>
<p>register_argc_argv = Off</p>
<p>report_memleaks = 1</p>
<p>report_zend_debug = 0</p>
<p>request_order = GP</p>
<p>sendmail_path = /usr/bin/ssmtp -t</p>
<p>serialize_precision = -1</p>
<p>short_open_tag = On</p>
<p>SMTP = localhost</p>
<p>smtp_port = 25</p>
<p>sys_temp_dir = /var/services/tmp</p>
<p>unserialize_max_depth = 4096</p>
<p>upload_max_filesize = 102400M</p>
<p>upload_tmp_dir = /var/services/tmp</p>
<p>variables_order = GPCS</p>
<p>xmlrpc_error_number = 0</p>
<p>xmlrpc_errors = 0</p>
<p>. . .</p>
<p>
--- 업로드 파일 한개당, 2G (2,147,483,647 bytes) 까지는 업로드가 잘 됩니다. ---
>> https://glitter.kr/gate/_board_5348164a0c8ca0db83af330e124_BMa83WeC_e9ae46cf7c940b10963820df4c0b7693ea052754/write.php?bo_table=notice">업로드 테스트 하기
>> 그누보드5의 용량의 한계치, 2G (2,147,483,647 bytes)가 설정 되어 있군요.
. ※ . . . 조언 부탁드립니다.
답변 3개
php에서 업로드 용량은 2기가가 최대치 인걸로 알고 있습니다.
설정하는 방법은 httpd.conf 또는 .htaccess에서
php_value upload_max_filesize 50M <- 예시
php_value post_max_size 100M <- 예시
요런식으로 설정해서 조절하실수있습니다.
물론 php.ini에서도 설정이 가능합니다.
php.ini에 설정하려면
upload_max_filesize = 50M ; 예시: 50MB로 설정
post_max_size = 100M ; 예시: 100MB로 설정
요런식으로 해보시기 바랍니다.
참고로 아파치 서버 기준입니다.
답변에 대한 댓글 3개
참고 하셨으면 합니다.
그렇군요 !
삽질 멈추게 해 주셔서 감사합니다.
댓글을 작성하려면 로그인이 필요합니다.
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인