[nginx + php-fpm] File upload size > Linux/Apm

본문 바로가기
사이트 내 전체검색

Linux/Apm

[nginx + php-fpm] File upload size

페이지 정보

작성자 sbLAB 댓글 0건 조회 250회 작성일 24-04-23 22:56

본문

[PHP]

# cd /etc/php/8.1/fpm 

# nano php.ini

-----------------

max_execution_time = 600 

max_file_uploads = 500  

max_input_time = 600  

upload_max_filesize = 700M  

post_max_size = 770M

memory_limit = 512M

-----------------------

# systemctl restart php8.1-fpm


[NGINX] 

# cd /etc/nginx

# nano nginx.conf

------------------ 

http { .. } 범위 또는 server {...} 범위에 아래 설정

client_max_body_size 1000M; 

client_body_timeout 600;

------------------

# service nginx restart


※nginx 웹서버 아래에서 php-fpm 서비스가 존재하므로 nginx 업로드 파일 사이즈 설정에 php가 영향을 받음, nginx 설정이 우선임.


댓글목록

등록된 댓글이 없습니다.

회원로그인

접속자집계

오늘
18
어제
528
최대
1,279
전체
224,720

그누보드5
Copyright © sebom.com All rights reserved.