input size over than config in php.ini - change upload max file size ( php 업로드 파일 사이즈 올리는 방법)

change upload max file size 


service setting : nginx + php5 fpm




/etc/php5/fpm/php.ini
======================================

post_max_size = 32M
upload_max_filesize = 24M

// option
max_execution_time = 300
max_input_time = 600



/etc/nginx/nginx.conf
======================================
http {

    ...
    client_max_body_size 100m;
}





restart service
sudo pkill php5-fpm
sudo service php5-fpm start
sudo service nginx restart 

게시판에 파일업로드 할려고하니
2M 까지만 된다고 하여서 수정했습니다.

댓글

이 블로그의 인기 게시물

mount 명령 ( 읽기 권한만 있는놈 쓰기 권한 주기 )

c# mqtt client example

비글본 블랙 고정 아이피 설정