To resolve the Apache2 PHP upload file size limit in RHAS3 _php
Source: Internet
Author: User
Keywordsfile size limit upload solve issue
Apache
Recently, the forum from the VBB2 upgrade to VBB3, the upload attachment size set to 2M, can upload more than 500K attachments will be error, and the previous use of VBB2 is normal.
Carefully examine php.ini, where the upload_max_filesize=8m, without any problems, will then be one of the following:
The values are adjusted to 120, 180, 32M, or no effect, which is very headache!
And then began to suspect that the http.conf configuration file appears to be a problem, but from the beginning to the end of the inspection did not find any heterogeneous, this problem smart shelve.
One day need to add a subdomain to the server, to change the/etc/httpd/conf.d/folder under the access.conf file, found this folder there is a php.conf, quickly open, inside is the following:
# # PHP is a html-embedded scripting language which attempts to make it# easy for developers to write dynamically generate d webpages. #LoadModule php4_module modules/libphp4.soaddtype application/x-httpd-php php. php3## cause the PHP Interpreter handle files with a. php extension.#
setoutputfilter php setinputfilter php Limitrequestbody 524288
# # ADD index.php to the list of files that'll be served as directory# indexes. #Director Yindex index.php
Limitrequestbody 524288 in 524288 is exactly the same as 512KB, change it to 2097152, can not upload more than 2M accessories to solve the problem!
Recall, found before using VBB2 operating system for RHAs 2.1, with the Apache 1.x version, later upgraded to VBB 3 before, by the way also replaced the system for RHAS3, And RHAS3 comes with the Apache 2.x version, its configuration file organization change, perhaps their own compilation and installation of Apache will not appear this kind of problem, can be lazy, do not like to compile, hehe.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.