apache| Solution | upload
Recently, the forum from VBB2 to VBB3, the upload attachment size set to 2M, can upload more than 500K each attachment will be wrong, and before the use of VBB2 is normal.
Careful examination of the php.ini, of which the upload_max_filesize=8m, without any problems, then will be:
Max_execution_time = Max_input_time = 60memory_limit = 8M
The numerical value is adjusted to 120, 180, 32M respectively, still have no effect, it is very headache!
Then began to suspect that the http.conf configuration file appears to be a problem, but checked from start to finish and did not see any differences, the problem is intelligent.
One day need to add a subdomain to the server, to change the/etc/httpd/conf.d/folder under the access.conf file, found that the folder also has a php.conf, quickly opened, which is the following content:
# # 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.#<files *.php> setoutputfilter php setinputfilter php limitr Equestbody 524288</files>## Add index.php to the list of Files that would be served as directory# indexes. #DirectoryI Ndex index.php
Limitrequestbody 524288 of 524288 is exactly the same as 512KB, change it to 2097152, can not upload more than 2M attachment problem Resolution!
Recall that the previous use of VBB2 when the operating system for RHAs 2.1, with the Apache 1.x version, and then upgraded to VBB 3 before, by the way also replace the system to RHAS3, And RHAS3 from the 2.x version of the Apache, the configuration of the organization of the way some changes, perhaps their own compiler installed Apache will not appear this kind of problem, can be lazy, do not like compiling, hehe.