Wordpress: “HTTP Error.” When Uploading Files

前端 未结 12 1922
既然无缘
既然无缘 2020-12-06 06:10

I\'m running WP 3.0.1 on a shared host using PHP5. I\'m having issues uploading files that are a little larger via the media uploader in the admin section of WP.

Eve

12条回答
  •  无人及你
    2020-12-06 06:42

    One of our clients, had the same issue.

    Finally we found out that the wordpress "HTTP Error" when uploading images, was happening due to a change on the server side. The hosting comany, decided to add APC accelerate to the server in order to increase server's stability and speed. APC accelerate should work only with FastCGI and not with su, so they set PHP to run as FastCGI.

    When using PHP as FastCGI, if you try to upload a file larger than 128KB, an error "mod_fcgid: HTTP request length 131388 (so far) exceeds MaxRequestLen (131072)" occurs and causes an 550 internal server error. This happens because the value of MaxRequestLen directive is set to 131072 bytes (128KB) by default. One way to correct this (if server uses Plesk), is to edit /etc/httpd/conf.d/fcgid.conf and set MaxRequestLen to a higher value, for example 15MB (MaxRequestLen 15728640). If server uses cPanel, this change can be done via the WHM of the server.

    So, if you can upload images up to 128KB, this is the solution to your problem.

提交回复
热议问题