Internalservererror occurs when the image size exceeds KB.

Source: Internet
Author: User
Tags apache error log server error log
When the image is uploaded larger than kB, Internalservererror occurs. if the php image is uploaded larger than KB, an error occurs.

Hello everyone, when I upload an image, if the image size exceeds KB, the following error is reported.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at admin@phpStudy.net to inform them of the time this error occurred, and the actions you have Med just before this error.

More information about this error may be available in the server error log.


The configuration file of Apache http. conf is set to 2 M. I hope you can give me some advice.


Reply to discussion (solution)

Is the display_errors option in php. ini enabled?
A specific Error must be displayed first. only the "Internal Server Error" cannot be seen.

Go to the apache error log and check the error message.

Httpd logs are the most important.

Go to the apache error log and check the error message.

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

The maximum length is 131072. I uploaded more than images. I installed Apache and phpStudy.
In the php. ini configuration, upload_max_filesize = 2 MB, and the maximum number of files to be uploaded is 2 MB. I don't 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.