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:
Max_execution_time = Max_input_time = 60memory_limit = 8M
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.