공부/Linux
php 파일업로드 크기 제한 설정 php.ini (nginx)
밥성수
2016. 2. 14. 21:20
php 파일 업로드 사이즈는 기본적인 php.ini 수정하여 되었다
(http://jasontody.tistory.com/65 참고)
그런데..
추가적으로 해줘야 될 사항들.
(용량을 크게 늘린다던지 등..)
[ /etc/php5/fpm/php.ini ]
1. file_uploads = On
2. upload_max_filesize 10M
3. post_max_size 10M
4. max_input_time 300
5. max_execution_time 300
6. memory_limit 128M
* post_max_size > upload_max_filesize
[ /etc/nginx/sites-available/default ]
1. client_max_body_size 100M