Image upload more than 100k out Internal server error

Source: Internet
Author: User
Tags apache error log server error log
PHP image upload is larger than 100k error

Hello everyone, I upload pictures as long as the picture is larger than 100K to report the following questions.
Internal Server Error
The server encountered an internal error or misconfiguration and is unable to complete your request.

Please contact the server administrator at Admin@phpStudy.net to inform them for the time this error occurred, and the ACTI ONS performed just before this error.

More information on this error is available in the server error log.


Apache http.conf configuration file is set 2M, do not make it here, hope you pointing twos.


Reply to discussion (solution)

is the display_errors option open in php.ini?
To show the specific error first, only this "Internal Server error" is unable to see the problem

Go to the Apache error log and check for any error messages.

HTTPD logs are the most important, look first

Go to the Apache error log and check for any error messages.

httpd log in the HTTP request length 134804 (so far) exceeds Maxrequestlen (131072)

It means that the maximum length is 131072 I pass the picture more than, I installed an Apache and then installed a phpstudy.
PHP.ini configuration in upload_max_filesize = 2M run the most upload file for 2M Ah, far from the AH, do not know why?

http://www.google.com.hk/search?newwindow=1&safe=strict&biw=1525&bih=741&noj=1&q=HTTP+ request+length+exceeds+maxrequestlen+php&oq=http+request+length+exceeds+maxrequestlen+php&gs_l=serp.12 ... 16863.17338.0.117775.2.2.0.0.0.0.911.911.6-1.1.0....0...1c.1.27.serp. 2.0.0.d6blu54sg9y

http://www.nowamagic.net/librarys/veda/detail/104

  • 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.