To resolve the Apache2 php upload file size limit in RHAS3

Source: Internet
Author: User
Tags file size
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.



Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.