doulou0882 2013-10-02 23:09
浏览 175
已采纳

无论php.ini设置如何,PHP post max size都限制在20M

I have a debian squeeze server with Plesk Panel 11, apache and PHP 5.3.3 I want to increase maximum upload file size but when I try to upload more than 20M, in a single or multiple files, I receive the error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.

This is my settings:

memory_limit = 128M
max_execution_time = 3600
max_input_time = 3600
upload_max_filesize = 100M
post_max_size = 100M

and also

suhosin.memory_limit=0
suhosin.post.max_value_length=1000000

My apache error log does not contain any relevant reference to the error.

What could cause this 20M cap ?


I tryed a simple page with just a form with one file of 21M in test.php and test.html The pure html form is submitted successfully. The same HTML code in test.php is not. Hence it must be some problem with PHP and not apache or the server. I disabled all php extension and removed .htaccess without success. I also tryed to post data locally from the server command line with curl but I got the same error.

Could be a bug of my PHP version ? Upgrading means to go from squeeze to wheezy, and since it's a production server I can't do this so easily

  • 写回答

2条回答 默认 最新

  • doupi3874 2013-10-14 11:23
    关注

    Finally after many hours of trial and errors I found the solution! It was the line

    MaxRe­ques­tLen 
    

    in the file

    /usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php
    

    which is in effect only if PHP is loaded via fastCGI!!!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM