Wordpress: “HTTP Error.” When Uploading Files

前端 未结 12 1893
既然无缘
既然无缘 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:52

    I had a similar problem with Nginx and PHP5-FPM (and WordPress 4.1).

    Symptoms: the file (< 5MB, so relatively small) is partway through the transfer, as indicated by the progress bar, when suddenly you get the HTTP error message.

    Even if you've set upload_max_filesize in your php.ini, you should also check post_max_size is (at least) as big. Remember to restart php5-fpm.

    If it still doesn't work, edit your nginx.conf file (in Debian/Ubuntu it's /etc/nginx/nginx.conf) and add this in the http block:

    client_max_body_size 100m;
    

    Then restart Nginx.

提交回复
热议问题