: 35(ȸ0) |
449 1,296 ִ 13,898 ü 9,038,691
|
|
|
|
|
|
|
|
|
ۼ : 10-09-01 04:26
|
9.0 PHP 4.2 ġϿ ε ڵ嵵 ڵϿϴ. 500k ̻ Ͽ ε尡 ʴ Ͼϴ. 500k ö ̻ũ ų ã ų Ͽϴ.
php.ini ε 뷮 ΰ ϰ php.ini Ͽ Ͼε 뷮 20ް ÷ ־ϴ. php.iniϿ 뷮 Ͽ ־ ϴ κ 5κԴϴ.
file_uploads = On ε带 ϴ κ 翬 ON Ǿ ־ մϴ.
upload_max_filesize = 20M ִ ε Դϴ. Ͻô 뷮ŭ Ͻø ˴ϴ.
post_max_size = 20M Post Ѱ ִ Դϴ.
max_execution_time = 300 ִ ðԴϴ. 뷮 ϼ ð ɸ 翬 ð ÷ ־ մϴ. 0 ϸ Ѵ̴ ˾Ƽ ֽʽÿ
memory_limit = 20M ڴµ ư ̺κе õǾ մϴ.
upload_max_filesize, post_max_size, memory_limit ϴµ. PHP ũ⸦ memory_limit > post_max_size > upload_man_filesize ؾ Ѵٰ Ҵ ϴ. Memory_limit post_max_size Ŀϰ post_max_size upload_man_filesize ĿѴٰ... ص µ մϴ.
̷ ϼ ġ õ մϴ.
/etc/rc.d/init.d/httpd restart
õ PHP Ǿ phpinfo() Ȯ ϴ. Ȱ Ȯ ֽϴ.
Ͼε带 ٽ Ʈ ʽÿ.. ö? ȴٸ и ʵǽô е鵵 ǰԴϴ. ϱ....
뷫 ... 켱 Ͼε ̴ α ġ α ڽϴ.
vi /var/log/httpd/error_log
α ִµ.... ֽϴ.
[Thu Aug 12 17:56:31 2004] [error] [client xxx.xxx.xxx.xxx] Requested content-length of 818331 is larger than the configured limit of 524288, referer: http://xxx.xxx.xxx.xxx/form.htm
ª Ƿ о
8 12ϳ µ ĸ xxx.xxx.xxx.xxx... Գĸ ø 818331Ʈε ̰ 524288 ѵǾ ִ ũٴ ..
~~!
ü php.ini Ͼε带 ϴ ...? ãƺҴ..
/etc/httpd/conf.d/php.conf
̳
LimitRequestBody
ֽϴ.̳ ʱⰪ 524288 ̱.. ̳ 뷫 20ް 20000000 غ.... ġ ...
ε غ... ~~ .. ö±....
::: ø :::
LimitRequestBody ġ ̸ http://httpd.apache.org/docs/mod/core.html#limitrequestbody ڼ ֽϴ.
ġ 2.0 conf.d 鼭 php.conf ϴ. conf.d ssl.conf ְ Ƹ? php.ini ð ũ upload_max < post_max < memory_max ϶ ϴ° ϴ. http://www.php.net/manual/kr/configuration.directives.php ã ֽϴ
ó: http://blog.naver.com/panic1429/40005160257
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ȨҰ | ȣ | | ʵ | ã ô± |
:::::::::::::::::::::: -Ʈ ڸ | ι | 꺻 1135, 706ȣ | TEL: 031-393-2212 | FAX: 031-393-2219 | E-mail: korea@in-best.com ::::::::::::::::::::::
Copyright (C) '2008 wego21.com All rights reserved. Designed by IN-BEST
|
|
|
|
|